# HG changeset patch # User Daniel Atallah # Date 1191561491 0 # Node ID ca0d0e4f8c91e37ff389e0a8dc15e76fcccb675a # Parent ee8016f8208efe829e80b9bd9e38b957b54240bd Fix a small leak in the log_reader plugin. diff -r ee8016f8208e -r ca0d0e4f8c91 libpurple/plugins/log_reader.c --- 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");