Skip to content
Snippets Groups Projects
Commit 7ad742b2 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avfilter/vf_signalstats: fix avframe leak on error


Fixes CID1257014
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 8280b7db
No related branches found
No related tags found
No related merge requests found
...@@ -132,8 +132,10 @@ static AVFrame *alloc_frame(enum AVPixelFormat pixfmt, int w, int h) ...@@ -132,8 +132,10 @@ static AVFrame *alloc_frame(enum AVPixelFormat pixfmt, int w, int h)
frame->width = w; frame->width = w;
frame->height = h; frame->height = h;
if (av_frame_get_buffer(frame, 32) < 0) if (av_frame_get_buffer(frame, 32) < 0) {
av_frame_free(&frame);
return NULL; return NULL;
}
return frame; return frame;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment