diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-07 03:40:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-07 03:40:57 +0200 |
commit | c9eac8062e6c68f854837f644aa6045f2a97c151 (patch) | |
tree | b4194a637852ed7673eae9f2f7ecdde5276cf18e | |
parent | b60938e4fd0504df5d1bf46e7ba0772c78904a67 (diff) | |
download | ffmpeg-c9eac8062e6c68f854837f644aa6045f2a97c151.tar.gz |
avcodec/avpacket: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/avpacket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 9978712bb8..3c26046dad 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -272,7 +272,7 @@ void av_packet_free_side_data(AVPacket *pkt) { int i; for (i = 0; i < pkt->side_data_elems; i++) - av_free(pkt->side_data[i].data); + av_freep(&pkt->side_data[i].data); av_freep(&pkt->side_data); pkt->side_data_elems = 0; } |