changeset 20784:ca0d0e4f8c91

Fix a small leak in the log_reader plugin.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 05 Oct 2007 05:18:11 +0000
parents ee8016f8208e
children 6da14d538231
files libpurple/plugins/log_reader.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c	Fri Oct 05 04:03:57 2007 +0000
+++ b/libpurple/plugins/log_reader.c	Fri Oct 05 05:18:11 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");