projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f450cde
)
return of soup_uri_to_string must be free
author
Sébastien Marie
<semarie@users.noreply.github.com>
Tue, 28 Oct 2014 05:36:24 +0000
(06:36 +0100)
committer
Sébastien Marie
<semarie@users.noreply.github.com>
Tue, 28 Oct 2014 05:40:10 +0000
(06:40 +0100)
thank to @fanglingsu
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
dbb2192
..
027cd3c
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1495,11
+1495,13
@@
static void read_from_stdin(void)
static void session_request_queued_cb(SoupSession *session, SoupMessage *msg, gpointer data)
{
- SoupURI
*suri = soup_message_get_uri(msg);
- c
onst char
*uri = soup_uri_to_string(suri, false);
+ SoupURI *suri = soup_message_get_uri(msg);
+ c
har
*uri = soup_uri_to_string(suri, false);
autocmd_run(AU_REQUEST_QUEUED, uri, NULL);
+ g_free(uri);
+
#ifdef DEBUG
SoupMessageHeadersIter iter;
const char *name, *value;