summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clirap.c
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/libsmb/clirap.c
parent7c6d77dd883df958f9231f28d0080573e08e8add (diff)
downloadsamba-c0c299cb267f6c559a0a407fde536aa32efc29f6.tar.gz
samba-c0c299cb267f6c559a0a407fde536aa32efc29f6.tar.xz
samba-c0c299cb267f6c559a0a407fde536aa32efc29f6.zip
Fix a memleak found by the IBM checker.
Michael (This used to be commit b4a37a66bbd8f5346de743d4ab427d6671e29075)
Diffstat (limited to 'source3/libsmb/clirap.c')
-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 54504f608da..aab77a3d54f 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;