1
0
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:
Volker Lendecke 2008-09-08 22:39:16 +02:00 committed by Volker Lendecke
parent ef3c132b84
commit 7e0cca19fe

View File

@ -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;
}