projects
/
platform
/
upstream
/
libsoup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f25c450
)
soup-request-file: plug leak
author
Xan Lopez
<xlopez@igalia.com>
Thu, 5 May 2011 20:44:32 +0000
(13:44 -0700)
committer
Xan 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
patch
|
blob
|
history
diff --git
a/libsoup/soup-request-file.c
b/libsoup/soup-request-file.c
index
a57331e
..
d49d374
100644
(file)
--- 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);