Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

geniuspaste: Fix an invalid memory free

  • Loading branch information...
commit b30cb657611b6f4429393aa98bf39f6be6b16002 1 parent 1f44137
@b4n b4n authored frlan committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 geniuspaste/src/geniuspaste.c
View
5 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.