rtsp-client: mikey memory leaks
authorAleix Conchillo Flaqué <aleix@oblong.com>
Thu, 30 Oct 2014 04:01:39 +0000 (21:01 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 30 Oct 2014 10:34:56 +0000 (10:34 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=739383

gst/rtsp-server/rtsp-client.c

index 2b5895b..934a3a7 100644 (file)
@@ -1607,6 +1607,7 @@ handle_mikey_data (GstRTSPClient * client, GstRTSPContext * ctx,
     gst_caps_unref (caps);
   }
   gst_mikey_message_unref (msg);
+  gst_buffer_unref (key);
 
   return TRUE;
 
@@ -1694,7 +1695,9 @@ handle_keymgmt (GstRTSPClient * client, GstRTSPContext * ctx, gchar * keymgmt)
         handle_mikey_data (client, ctx, data, size);
       }
     }
+    g_strfreev (split);
   }
+  g_strfreev (specs);
   return TRUE;
 }