summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-10-22 18:38:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:01 -0500
commitb35f48ad8ee63e44c70d0b198ccff39306ebdf74 (patch)
tree916b509b43352ac4efbb0b2384bb5c94cbf8cf3d /source/libsmb
parente7691f4862da141f530a8e8b1364b9c02e8dc732 (diff)
downloadsamba-b35f48ad8ee63e44c70d0b198ccff39306ebdf74.tar.gz
samba-b35f48ad8ee63e44c70d0b198ccff39306ebdf74.tar.xz
samba-b35f48ad8ee63e44c70d0b198ccff39306ebdf74.zip
r3138: Fix from Sorin Manolache <sorinm@gmail.com> for memory leak.
Jeremy.
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/libsmbclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/libsmb/libsmbclient.c b/source/libsmb/libsmbclient.c
index 2c813a8481c..2b0115eaaa4 100644
--- a/source/libsmb/libsmbclient.c
+++ b/source/libsmb/libsmbclient.c
@@ -596,6 +596,7 @@ SMBCSRV *smbc_server(SMBCCTX *context,
*/
c.port = 445;
if (!cli_connect(&c, server_n, &ip)) {
+ cli_shutdown(&c);
errno = ENETUNREACH;
return NULL;
}