soup-request-file: plug leak
authorXan Lopez <xlopez@igalia.com>
Thu, 5 May 2011 20:44:32 +0000 (13:44 -0700)
committerXan Lopez <xlopez@igalia.com>
Thu, 5 May 2011 20:44:32 +0000 (13:44 -0700)
We are needlessly duplicating a string that we never free.

libsoup/soup-request-file.c

index a57331e..d49d374 100644 (file)
@@ -93,7 +93,7 @@ soup_request_file_ensure_file (SoupRequestFile  *file,
 
        uri = soup_request_get_uri (SOUP_REQUEST (file));
        if (uri->scheme == SOUP_URI_SCHEME_FILE) {
-               gchar *decoded_uri = soup_uri_decode (g_strdup (uri->path));
+               gchar *decoded_uri = soup_uri_decode (uri->path);
 
                if (decoded_uri) {
                        file->priv->gfile = g_file_new_for_path (decoded_uri);