From c60f4ecd117202f22719ede718d379f08fde7ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 9 Jun 2014 10:10:01 +0100 Subject: [PATCH] gdp: don't print already-freed string CID 1221987 --- gst/gdp/dataprotocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gdp/dataprotocol.c b/gst/gdp/dataprotocol.c index 420cdffd7e..721cc60c64 100644 --- a/gst/gdp/dataprotocol.c +++ b/gst/gdp/dataprotocol.c @@ -559,8 +559,8 @@ gst_dp_event_from_packet_1_0 (guint header_length, const guint8 * header, g_strndup ((gchar *) payload, GST_DP_HEADER_PAYLOAD_LENGTH (header)); s = gst_structure_from_string (string, NULL); if (s == NULL) { - g_free (string); GST_WARNING ("Could not parse payload string: %s", string); + g_free (string); return NULL; }