mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
raspi/codec: fix memleak when skipping packets
This commit is contained in:
@@ -203,8 +203,10 @@ void codec_queue_add_item(struct codec_t* codec, struct packet_t* packet, int ms
|
|||||||
|
|
||||||
codec->queue_count++;
|
codec->queue_count++;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr,"Dropping packet - codec is stopped.\n");
|
// fprintf(stderr,"Dropping packet - codec is stopped.\n");
|
||||||
|
free(packet->buf);
|
||||||
free(packet);
|
free(packet);
|
||||||
|
free(new);
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_mutex_unlock(&codec->queue_mutex);
|
pthread_mutex_unlock(&codec->queue_mutex);
|
||||||
|
Reference in New Issue
Block a user