mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix a memleak found by the IBM checker.
Michael
This commit is contained in:
parent
d7a7b79320
commit
b4a37a66bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user