summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/pnm/gstpnmenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/pnm/gstpnmenc.c b/gst/pnm/gstpnmenc.c
index 6352cc241..d88627359 100644
--- a/gst/pnm/gstpnmenc.c
+++ b/gst/pnm/gstpnmenc.c
@@ -174,7 +174,7 @@ gst_pnmenc_handle_frame (GstVideoEncoder * encoder, GstVideoCodecFrame * frame)
GstPnmenc *pnmenc;
guint size, pixels;
GstMapInfo omap, imap;
- gchar *header;
+ gchar *header = NULL;
GstVideoInfo *info;
GstFlowReturn ret = GST_FLOW_OK;
guint i_rowstride, o_rowstride;
@@ -284,6 +284,7 @@ gst_pnmenc_handle_frame (GstVideoEncoder * encoder, GstVideoCodecFrame * frame)
goto done;
done:
+ g_free (header);
return ret;
}