X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpjpegdec.c;h=83aa70d0c9726324e64aea8a68eb58d887efb241;hb=1a115a31d430b71973b1e1556fcf767417449f09;hp=4c7764412f0f09d6e61d66e659addbd1db3ef2df;hpb=fc63d5ceb357c4b760cb02772de0b50d0557140f;p=ffmpeg diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c index 4c7764412f0..83aa70d0c97 100644 --- a/libavformat/mpjpegdec.c +++ b/libavformat/mpjpegdec.c @@ -126,7 +126,7 @@ static int mpjpeg_read_probe(AVProbeData *p) ret = (parse_multipart_header(pb, &size, "--", NULL) >= 0) ? AVPROBE_SCORE_MAX : 0; - av_free(pb); + avio_context_free(&pb); return ret; }