Don't leak path on header parsing.
authorJens Georg <mail@jensge.org>
Thu, 14 Jul 2011 09:58:17 +0000 (11:58 +0200)
committerJens Georg <mail@jensge.org>
Thu, 14 Jul 2011 09:58:17 +0000 (11:58 +0200)
libgssdp/gssdp-client.c

index 0854b8b..ba52027 100644 (file)
@@ -853,6 +853,9 @@ parse_http_request (char                *buf,
 
                 g_free (req_method);
 
+                if (path)
+                        g_free (path);
+
                 return TRUE;
         } else {
                 soup_message_headers_free (*headers);