Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2017-02-09 01:37:42 +0300
committerMarton Balint <cus@passwd.hu>2017-02-19 18:41:43 +0300
commit4556dad2b7379a527134db519ab60111abefaf10 (patch)
tree5baef51ce75564f277e6f7de970fb5407d7e33bc /libavdevice/iec61883.c
parent8985e4af2bba6b2eb901693a6202e998b9929a68 (diff)
avdevice/iec61883: free packet on buffer allocation error
Fixes Coverity CID 1396416. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice/iec61883.c')
-rw-r--r--libavdevice/iec61883.c1
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;
}