mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-07 19:05:47 +00:00
fixed some leak
This commit is contained in:
@@ -1328,6 +1328,8 @@ int decode_frame(struct coded_data *cdata, void *decode_data)
|
||||
}
|
||||
}
|
||||
|
||||
assert(ret == TRUE);
|
||||
|
||||
pthread_mutex_lock(&decoder->lock);
|
||||
{
|
||||
while (decoder->work_to_do) {
|
||||
@@ -1371,6 +1373,10 @@ cleanup:
|
||||
for(i = 0; i < (int) (sizeof(pckt_list) / sizeof(struct linked_list *)); ++i) {
|
||||
ll_destroy(pckt_list[i]);
|
||||
|
||||
if(ret != TRUE) {
|
||||
free(fec_buffers[i]);
|
||||
}
|
||||
|
||||
frame_size += buffer_len[i];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user