[libsoup/gnome-3-0] soup-request-file: plug leak
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/gnome-3-0] soup-request-file: plug leak
- Date: Mon, 23 May 2011 20:00:59 +0000 (UTC)
commit 6a0e46c46c79cd69314ae2fbb42ebef549290e93
Author: Xan Lopez <xlopez igalia com>
Date: Thu May 5 13:44:32 2011 -0700
soup-request-file: plug leak
We are needlessly duplicating a string that we never free.
libsoup/soup-request-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-request-file.c b/libsoup/soup-request-file.c
index a57331e..d49d374 100644
--- a/libsoup/soup-request-file.c
+++ b/libsoup/soup-request-file.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]