srd_dbg("empty buffer");
return SRD_ERR_ARG;
}
+ if (unitsize == 0) {
+ srd_dbg("unitsize 0");
+ return SRD_ERR_ARG;
+ }
((struct srd_decoder_inst *)di)->data_unitsize = unitsize;
Py_DecRef(di->py_inst);
g_free(di->inst_id);
g_free(di->dec_channelmap);
+ g_free(di->channel_samples);
g_slist_free(di->next_di);
for (l = di->pd_output; l; l = l->next) {
pdo = l->data;