diff options
author | Richard Sharpe <sharpe@samba.org> | 2001-11-27 10:42:39 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2001-11-27 10:42:39 +0000 |
commit | 7527ec3ffd1aa4ec0bb7f99e0b40676e32391391 (patch) | |
tree | a711c92fc10b6371492cae529f9d04978138ebcc | |
parent | b1cf8f6cdafe1e9f6c2140617d42178bf5d4cf24 (diff) | |
download | samba-7527ec3ffd1aa4ec0bb7f99e0b40676e32391391.tar.gz samba-7527ec3ffd1aa4ec0bb7f99e0b40676e32391391.tar.bz2 samba-7527ec3ffd1aa4ec0bb7f99e0b40676e32391391.zip |
Fix another memory leak spotted by Tom Jansen.
(This used to be commit 6e2c06a6e6173e68a75fd1adfaa73fe9a9210fef)
-rw-r--r-- | source3/libsmb/libsmbclient.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index a85d9e45fc..33aeb62af8 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -309,6 +309,7 @@ struct smbc_server *smbc_server(char *server, char *share, /* have to open a new connection */ if (!cli_initialise(&c) || !cli_connect(&c, server_n, &ip)) { + if (c.initialised) cli_shutdown(&c); errno = ENOENT; return NULL; } |