1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avdevice/iec61883: free packet on buffer allocation error

Fixes Coverity CID 1396416.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2017-02-08 23:37:42 +01:00
parent 8985e4af2b
commit 4556dad2b7

View File

@ -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;
}