changeset 7722:db1542e84ee6

[gaim-migrate @ 8367] let's not allocate from one pool, and free to another, eh? committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 03 Dec 2003 07:12:59 +0000
parents 20d0c025312a
children 9235eecc9f74
files src/util.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Wed Dec 03 07:11:52 2003 +0000
+++ b/src/util.c	Wed Dec 03 07:12:59 2003 +0000
@@ -251,8 +251,8 @@
 gaim_quotedp_decode(const char *str, char **ret_str, int *ret_len)
 {
 	char *p, *n, *new;
-	
-	n = new = malloc(strlen (str));
+
+	n = new = g_malloc(strlen (str));
 
 	for (p = (char *)str; *p; p++, n++) {
 		if (*p == '=') {
@@ -269,7 +269,7 @@
 
 	if (ret_len)
 		*ret_len = n - new;
-	
+
 	/* Resize to take less space */
 	/* new = realloc(new, n - new); */
 
@@ -309,7 +309,7 @@
 	char *charset, *encoding, *word, *decoded;
 	char *n, *new;
 
-	n = new = malloc(strlen(str));
+	n = new = g_malloc(strlen(str));
 	charset = word = NULL;
 
 	/* Here we will be looking for encoded words and if they seem to be