rtsp: Don't leak authorization string
authorEdward Hervey <edward@centricular.com>
Mon, 28 Nov 2016 15:51:23 +0000 (16:51 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 28 Nov 2016 15:51:23 +0000 (16:51 +0100)
gst-libs/gst/rtsp/gstrtspmessage.c

index 523ddd5..a11e120 100644 (file)
@@ -1232,6 +1232,8 @@ gst_rtsp_auth_credentials_free (GstRTSPAuthCredential ** credentials)
       }
       g_free ((*p)->params);
     }
+    if ((*p)->authorization)
+      g_free ((*p)->authorization);
     g_free (*p);
     p++;
   }