changeset 23295:f8e0a90dd153

Plug a small and unlikely leak.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 06 Jun 2008 06:31:53 +0000
parents 47492dabcb4a
children 78c832e03324
files libpurple/protocols/yahoo/yahoo_profile.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_profile.c	Fri Jun 06 03:04:05 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo_profile.c	Fri Jun 06 06:31:53 2008 +0000
@@ -745,6 +745,7 @@
 				p += 1; /* skip only the ' ' */
 				q = strchr(p, ' ');
 				if (q) {
+					g_free(it);
 					it = g_strndup(p, q - p);
 				}
 			}