diff options
author | Marton Balint <cus@passwd.hu> | 2017-02-09 01:37:42 +0300 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2017-02-19 18:41:43 +0300 |
commit | 4556dad2b7379a527134db519ab60111abefaf10 (patch) | |
tree | 5baef51ce75564f277e6f7de970fb5407d7e33bc /libavdevice | |
parent | 8985e4af2bba6b2eb901693a6202e998b9929a68 (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')
-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; } |