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:
authorwm4 <nfxjfg@googlemail.com>2014-08-30 17:39:15 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-08-30 18:38:14 +0400
commitb173f5c15572cc82f68128599722e689df4ff137 (patch)
tree156b2e4e0076dd9c62dc090ccbc26756f1b079e5 /libavformat/oggdec.c
parente2cd28c9265e21b1eeeceaece1da4109712e7555 (diff)
oggdec: fix invalid free on error
The read_packet callback passes a pointer to a stack-allocated AVPacket. Attempting to free it with av_free() makes no sense. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index f17393bfa8..8f146e49fe 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -817,7 +817,6 @@ retry:
return psize;
fail:
av_free_packet(pkt);
- av_free(pkt);
return AVERROR(ENOMEM);
}