]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r3138: Fix from Sorin Manolache <sorinm@gmail.com> for memory leak.
authorJeremy Allison <jra@samba.org>
Fri, 22 Oct 2004 18:38:57 +0000 (18:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:01 +0000 (10:53 -0500)
Jeremy.

source/libsmb/libsmbclient.c

index 2c813a8481c5b6fe2c293aa0908c5975daa83033..2b0115eaaa46cb4897ac188ce32aae86fa50c0f0 100644 (file)
@@ -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;
                 }