projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c4a95
)
DecoderStack: Fix memory leak
author
Soeren Apel
<soeren@apelpie.net>
Wed, 22 Mar 2017 22:26:21 +0000
(23:26 +0100)
committer
Soeren Apel
<soeren@apelpie.net>
Wed, 22 Mar 2017 22:26:21 +0000
(23:26 +0100)
pv/data/decoderstack.cpp
patch
|
blob
|
history
diff --git
a/pv/data/decoderstack.cpp
b/pv/data/decoderstack.cpp
index f393a1bb84dc06b7034235a88cb110b5879c96a9..3499baf22205cb1d0338f8d77d8645ab7d437cbd 100644
(file)
--- a/
pv/data/decoderstack.cpp
+++ b/
pv/data/decoderstack.cpp
@@
-317,8
+317,10
@@
void DecoderStack::decode_data(
if (srd_session_send(session, i, chunk_end, chunk,
(chunk_end - i) * unit_size, unit_size) != SRD_OK) {
error_message_ = tr("Decoder reported an error");
+ delete[] chunk;
break;
}
+ delete[] chunk;
{
lock_guard<mutex> lock(output_mutex_);