Make cli_struct a talloc parent
authorVolker Lendecke <vl@samba.org>
Thu, 28 Feb 2008 13:03:38 +0000 (14:03 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 28 Feb 2008 13:20:17 +0000 (14:20 +0100)
source/libsmb/clientgen.c

index ccd1cc67d527b5f9a33c24eb0569e7fa7c3107c8..592f050e90b854eeeda9ff7649d4c9511a05958a 100644 (file)
@@ -537,7 +537,7 @@ struct cli_state *cli_initialise(void)
                return NULL;
        }
 
-       cli = SMB_MALLOC_P(struct cli_state);
+       cli = talloc(NULL, struct cli_state);
        if (!cli) {
                return NULL;
        }
@@ -695,7 +695,7 @@ void cli_shutdown(struct cli_state *cli)
        cli->fd = -1;
        cli->smb_rw_error = SMB_READ_OK;
 
-       SAFE_FREE(cli);
+       TALLOC_FREE(cli);
 }
 
 /****************************************************************************