X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=3499baf22205cb1d0338f8d77d8645ab7d437cbd;hb=1138e9359d88d51ed610f2e0bd007c021b9e59bb;hp=f393a1bb84dc06b7034235a88cb110b5879c96a9;hpb=b8c4a95bc26d2976ea80001846d1ab7eb15cd3d5;p=pulseview.git diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index f393a1bb..3499baf2 100644 --- 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 lock(output_mutex_);