From af2aab9ee1b8bd62bdce31b1df64b3fec55906a4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 24 Mar 2005 03:10:31 +0000 Subject: Plug some more small leaks. svn path=/trunk/; revision=13889 --- disabled_protos.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'disabled_protos.c') diff --git a/disabled_protos.c b/disabled_protos.c index 4ccbe45e24..ebda7a273b 100644 --- a/disabled_protos.c +++ b/disabled_protos.c @@ -102,7 +102,8 @@ read_disabled_protos_list(char **gpath_return, int *gopen_errno_return, *gopen_errno_return = errno; *gread_errno_return = 0; *gpath_return = gff_path; - } + } else + g_free(gff_path); } /* Construct the pathname of the user's disabled protocols file. */ @@ -130,7 +131,8 @@ read_disabled_protos_list(char **gpath_return, int *gopen_errno_return, *open_errno_return = errno; *read_errno_return = 0; *path_return = ff_path; - } + } else + g_free(ff_path); } } -- cgit v1.2.3