[geany/geany-plugins] b30cb6: geniuspaste: Fix an invalid memory free
Colomban Wendling
git-noreply at xxxxx
Sun Aug 26 09:13:17 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Frank Lanitz <frank at frank.uvena.de>
Date: Sun, 26 Aug 2012 09:13:17
Commit: b30cb657611b6f4429393aa98bf39f6be6b16002
https://github.com/geany/geany-plugins/commit/b30cb657611b6f4429393aa98bf39f6be6b16002
Log Message:
-----------
geniuspaste: Fix an invalid memory free
Modified Paths:
--------------
geniuspaste/src/geniuspaste.c
Modified: geniuspaste/src/geniuspaste.c
5 files changed, 2 insertions(+), 3 deletions(-)
===================================================================
@@ -377,9 +377,8 @@ static void paste(GeanyDocument * doc, const gchar * website)
* e.g. sprunge.us/xxxx?c
*/
gchar *ft_tmp = g_ascii_strdown(f_type, -1);
- gchar *temp_body = g_strstrip(p_url);
- SETPTR(p_url, g_strdup_printf("%s?%s", temp_body, ft_tmp));
- g_free(temp_body);
+ g_strstrip(p_url);
+ SETPTR(p_url, g_strdup_printf("%s?%s", p_url, ft_tmp));
g_free(ft_tmp);
}
@@ 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