avcodec/h264_metadata_bsf: Fix invalid av_freep
[ffmpeg.git] / libavcodec / h264_metadata_bsf.c
index 9901765..cef054b 100644 (file)
@@ -528,7 +528,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *pkt)
                 if (err < 0) {
                     av_log(bsf, AV_LOG_ERROR, "Failed to attach extracted "
                            "displaymatrix side data to packet.\n");
-                    av_freep(matrix);
+                    av_free(matrix);
                     goto fail;
                 }
             }