# HG changeset patch # User Nathan Walp # Date 1070435579 0 # Node ID db1542e84ee6220baf0768e88027f3c6d68cc7a4 # Parent 20d0c025312a955170b89731574af42c4e675d2c [gaim-migrate @ 8367] let's not allocate from one pool, and free to another, eh? committer: Tailor Script diff -r 20d0c025312a -r db1542e84ee6 src/util.c --- 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