OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8985e4a
)
avdevice/iec61883: free packet on buffer allocation error
author
Marton Balint
<cus@passwd.hu>
Wed, 8 Feb 2017 22:37:42 +0000
(23:37 +0100)
committer
Marton Balint
<cus@passwd.hu>
Sun, 19 Feb 2017 15:41:43 +0000
(16:41 +0100)
Fixes Coverity CID
1396416
.
Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/iec61883.c
patch
|
blob
|
history
diff --git
a/libavdevice/iec61883.c
b/libavdevice/iec61883.c
index
c45ae9a
..
721dca3
100644
(file)
--- 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;
}