aboutsummaryrefslogtreecommitdiffstats
path: root/disabled_protos.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-24 03:10:31 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-24 03:10:31 +0000
commit1302f555fd7ff576ee540a3aff8a36f2a25d4f43 (patch)
treeaae0daeba24812b94b41e3b6ab44c27b75451239 /disabled_protos.c
parent5df6d75443780f18aff65f1bb6dc7fb1fe30b4f0 (diff)
Plug some more small leaks.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13889 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'disabled_protos.c')
-rw-r--r--disabled_protos.c6
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);
}
}