mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
Fix another memory leak spotted by Tom Jansen.
This commit is contained in:
parent
4b89fdecfc
commit
6e2c06a6e6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user