[geany/geany-plugins] 6e1f08: added g_free () before return statement in order to free p_url
Enrico Trotta
git-noreply at xxxxx
Sat May 5 16:23:35 UTC 2012
Branch: refs/heads/master
Author: Enrico Trotta <enrico.trt at gmail.com>
Committer: Enrico Trotta <enrico.trt at gmail.com>
Date: Sat, 05 May 2012 16:23:35
Commit: 6e1f08f676301062577556e3767a21b0ce85d60a
https://github.com/geany/geany-plugins/commit/6e1f08f676301062577556e3767a21b0ce85d60a
Log Message:
-----------
added g_free () before return statement in order to free p_url
Modified Paths:
--------------
geniuspaste/src/geniuspaste.c
Modified: geniuspaste/src/geniuspaste.c
5 files changed, 3 insertions(+), 2 deletions(-)
===================================================================
@@ -230,7 +230,8 @@ static void paste(const gchar * website)
status = soup_session_send_message(session, msg);
p_url = g_strdup(msg->response_body->data);
-
+ g_free(f_content);
+
if(status == SOUP_STATUS_OK) {
/*
@@ -257,6 +258,7 @@ static void paste(const gchar * website)
} else {
dialogs_show_msgbox(GTK_MESSAGE_ERROR, "Unable to paste the code on codepad.org\n"
"Retry or select another pastebin.");
+ g_free(p_url);
return;
}
@@ -290,7 +292,6 @@ static void paste(const gchar * website)
"Error code: %d\n", status);
}
- g_free(f_content);
g_free(p_url);
}
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Plugins-Commits
mailing list