Permalink
Browse files

geniuspaste: Fix an invalid memory free

  • Loading branch information...
1 parent 1f44137 commit b30cb657611b6f4429393aa98bf39f6be6b16002 @b4n b4n committed with frlan Aug 25, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 geniuspaste/src/geniuspaste.c
@@ -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);
}

0 comments on commit b30cb65

Please sign in to comment.