diff options
author | Jeremy Allison <jra@samba.org> | 2008-01-23 15:23:16 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-01-23 15:23:16 -0800 |
commit | ffc84a10447a1bd3329b874b9e1bd4c6e6c2ff66 (patch) | |
tree | 9819d8fdfb0bff63410e9dfb2a8eadd76c913aaf /source3 | |
parent | fe8a8f47e0eefd064031e87fec4cdd2736716550 (diff) | |
download | samba-ffc84a10447a1bd3329b874b9e1bd4c6e6c2ff66.tar.gz samba-ffc84a10447a1bd3329b874b9e1bd4c6e6c2ff66.tar.bz2 samba-ffc84a10447a1bd3329b874b9e1bd4c6e6c2ff66.zip |
Don't leak memory in error path.
Jeremy.
(This used to be commit 2df0cdaafdced798f81e30d34371aa1d8e963208)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliconnect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index fd860ae7f0..f3926b777b 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -892,6 +892,7 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user, if (realm && *realm) { if (asprintf(&principal, "%s$@%s", machine, realm) < 0) { + SAFE_FREE(machine); SAFE_FREE(realm); return ADS_ERROR_NT(NT_STATUS_NO_MEMORY); } |