mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
Fix a memleak found by the IBM checker.
Michael
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user