diff options
Diffstat (limited to 'libavdevice/iec61883.c')
-rw-r--r-- | libavdevice/iec61883.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c index c45ae9ae5c..721dca38ee 100644 --- a/libavdevice/iec61883.c +++ b/libavdevice/iec61883.c @@ -120,6 +120,7 @@ static int iec61883_callback(unsigned char *data, int length, packet->buf = av_malloc(length); if (!packet->buf) { + av_free(packet); ret = -1; goto exit; } |