ofdm_mapper: avoid double free error when stopping the flow graph

Thanks to Daniel Maier for reporting the bug.
This commit is contained in:
Bastian Bloessl
2014-08-18 07:38:39 +02:00
parent 2035fdfce0
commit 14cdb07865
+1
View File
@@ -157,6 +157,7 @@ int general_work(int noutput, gr_vector_int& ninput_items,
if(d_symbols_offset == d_symbols_len) { if(d_symbols_offset == d_symbols_len) {
d_symbols_offset = 0; d_symbols_offset = 0;
free(d_symbols); free(d_symbols);
d_symbols = 0;
} }
return i; return i;