mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
pnmenc: Fix string memory leak
header being allocated is not freed resulting in leak https://bugzilla.gnome.org/show_bug.cgi?id=759520
This commit is contained in:
parent
1b2a9a9c84
commit
6cb6903f82
1 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,7 @@ gst_pnmenc_handle_frame (GstVideoEncoder * encoder, GstVideoCodecFrame * frame)
|
||||||
GstPnmenc *pnmenc;
|
GstPnmenc *pnmenc;
|
||||||
guint size, pixels;
|
guint size, pixels;
|
||||||
GstMapInfo omap, imap;
|
GstMapInfo omap, imap;
|
||||||
gchar *header;
|
gchar *header = NULL;
|
||||||
GstVideoInfo *info;
|
GstVideoInfo *info;
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
guint i_rowstride, o_rowstride;
|
guint i_rowstride, o_rowstride;
|
||||||
|
@ -284,6 +284,7 @@ gst_pnmenc_handle_frame (GstVideoEncoder * encoder, GstVideoCodecFrame * frame)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
g_free (header);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue