diff src/protocols/toc/toc.c @ 7606:08c9d0dcf906

[gaim-migrate @ 8229] " Some things allocated with g_malloc() were being free()'d instead of g_free()'d This patch fixes the ones I managed to find." --Stu Tomlinson (nosnilmot) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 23 Nov 2003 15:32:25 +0000
parents 1930e3d00ecd
children 0555e59dfba9
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Sun Nov 23 15:25:04 2003 +0000
+++ b/src/protocols/toc/toc.c	Sun Nov 23 15:32:25 2003 +0000
@@ -309,7 +309,7 @@
 		}
 
 	/* Allocate a string */
-	ret = (char *)malloc((j+1) * sizeof(char));
+	ret = (char *)g_malloc((j+1) * sizeof(char));
 
 	/* Copy the string */
 	for (i=0, j=0; msg[i]; i++)
@@ -436,7 +436,7 @@
 
 	ret = toc_write(tdt->toc_fd, obuf, slen);
 	free(obuf);
-	free(escaped);
+	g_free(escaped);
 
 	return ret;
 }