mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix a memleak in cli_qfilename (only used in smbtorture)
This commit is contained in:
parent
ef3c132b84
commit
7e0cca19fe
@ -970,11 +970,16 @@ bool cli_qfilename(struct cli_state *cli, int fnum, char *name, size_t namelen)
|
||||
}
|
||||
|
||||
if (!rdata || data_len < 4) {
|
||||
SAFE_FREE(rparam);
|
||||
SAFE_FREE(rdata);
|
||||
return False;
|
||||
}
|
||||
|
||||
clistr_pull(cli, name, rdata+4, namelen, IVAL(rdata, 0), STR_UNICODE);
|
||||
|
||||
SAFE_FREE(rparam);
|
||||
SAFE_FREE(rdata);
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user