summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-09 22:25:52 +0100
committerMichael Adam <obnox@samba.org>2008-01-09 22:25:52 +0100
commitc0c299cb267f6c559a0a407fde536aa32efc29f6 (patch)
tree0124b5822288bf1cda411b4847e98defb3dc15c7 /source3
parent7c6d77dd883df958f9231f28d0080573e08e8add (diff)
downloadsamba-c0c299cb267f6c559a0a407fde536aa32efc29f6.tar.gz
samba-c0c299cb267f6c559a0a407fde536aa32efc29f6.tar.bz2
samba-c0c299cb267f6c559a0a407fde536aa32efc29f6.zip
Fix a memleak found by the IBM checker.
Michael (This used to be commit b4a37a66bbd8f5346de743d4ab427d6671e29075)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clirap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 54504f608d..aab77a3d54 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -297,6 +297,7 @@ bool cli_NetServerEnum(struct cli_state *cli, char *workgroup, uint32 stype,
STR_TERMINATE|STR_UPPER);
if (len == (size_t)-1) {
+ SAFE_FREE(last_entry);
return false;
}
p += len;