diff src/util.c @ 25:c56db1b46b0d

[gaim-migrate @ 34] A crap load more of memleak fixes. There's still several more. I've mailed Peter Techian about these. Hopefully he'll pick up on them. Thanks again for the Patch, Pete. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 24 Mar 2000 08:55:32 +0000
parents e5cc6e691bff
children b9e90a914e20
line wrap: on
line diff
--- a/src/util.c	Fri Mar 24 06:59:03 2000 +0000
+++ b/src/util.c	Fri Mar 24 08:55:32 2000 +0000
@@ -304,6 +304,9 @@
 
         if (!(general_options & OPT_GEN_LOG_ALL)) {
 
+		g_free(buf);
+		g_free(buf2);
+
                 l = find_log_info(c->name);
                 if (!l)
                         return NULL;
@@ -379,6 +382,9 @@
 		fprintf(fd, "IM Sessions with %s", c->name );
 		fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n" );
         }
+
+	g_free(buf);
+	g_free(buf2);
         return fd;
 }