mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Fix a memory leak
This commit is contained in:
parent
e04fc36f22
commit
ce1bd43cda
@ -137,6 +137,8 @@ SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename,
|
|||||||
|
|
||||||
status = unmarshall_sec_desc(ctx, data.dptr, data.dsize, &psd);
|
status = unmarshall_sec_desc(ctx, data.dptr, data.dsize, &psd);
|
||||||
|
|
||||||
|
SAFE_FREE(data.dptr);
|
||||||
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
DEBUG(0, ("unmarshall_sec_desc failed: %s\n",
|
DEBUG(0, ("unmarshall_sec_desc failed: %s\n",
|
||||||
nt_errstr(status)));
|
nt_errstr(status)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user