avcodec/utils: free last_pkt_props on avcodec_open2() failure
[ffmpeg.git] / libavcodec / utils.c
index bc153c1..b8a8c0a 100644 (file)
@@ -1077,6 +1077,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
 #endif
     av_frame_free(&avci->buffer_frame);
     av_packet_free(&avci->buffer_pkt);
+    av_packet_free(&avci->last_pkt_props);
     av_fifo_freep(&avci->pkt_props);
 
     av_packet_free(&avci->ds.in_pkt);