mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
OK, so not freeing these was a mistake. I'll try to be less exuberent next
time :-)
This commit is contained in:
parent
ba76564c2a
commit
8c3cf2db95
@ -546,6 +546,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int
|
||||
*ecode = ERRaccess;
|
||||
DEBUG(0,( "make_connection: connection to %s denied due to security descriptor.\n",
|
||||
service ));
|
||||
conn_free(conn);
|
||||
return NULL;
|
||||
} else {
|
||||
conn->read_only = True;
|
||||
@ -556,6 +557,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int
|
||||
|
||||
if (!vfs_init(conn)) {
|
||||
DEBUG(0, ("vfs_init failed for service %s\n", lp_servicename(SNUM(conn))));
|
||||
conn_free(conn);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user