changeset 22124:df77b89a4025

Fix a memleak that doesn't matter because it's in a child process destined for death
author Mark Doliner <mark@kingant.net>
date Wed, 16 Jan 2008 07:32:30 +0000
parents 0a0fa9fd5feb
children 70c84d8ccc57 22908b354baf
files libpurple/dnssrv.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dnssrv.c	Wed Jan 16 06:58:48 2008 +0000
+++ b/libpurple/dnssrv.c	Wed Jan 16 07:32:30 2008 +0000
@@ -358,9 +358,12 @@
 	/* Child */
 	if (pid == 0)
 	{
+		g_free(query);
+
 		close(out[0]);
 		close(in[1]);
 		resolve(in[0], out[1]);
+		/* resolve() does not return */
 	}
 
 	close(out[1]);