libpurple/plugins/log_reader.c

branch
release-2.2.2
changeset 20211
e896680c43d1
parent 19090
f14418fec130
child 20221
28e31ee832cd
--- a/libpurple/plugins/log_reader.c	Fri Oct 19 17:41:09 2007 +0000
+++ b/libpurple/plugins/log_reader.c	Fri Oct 19 17:41:48 2007 +0000
@@ -2271,6 +2271,7 @@
 			                   "Error reading talk.ini\n");
 			if (error)
 				g_error_free(error);
+			g_free(path);
 		} else {
 			char *line = contents;
 			while (*contents) {
@@ -2318,6 +2319,9 @@
 	                        "default", "logs", NULL);
 #endif
 
+	/*XXX: Why do we even bother allocating it ? */
+	g_free(path);
+
 
 	/* Add QIP log directory preference. */
 	purple_prefs_add_none("/plugins/core/log_reader/qip");

mercurial