diff options
Diffstat (limited to 'disabled_protos.c')
-rw-r--r-- | disabled_protos.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } } |