1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Make cli_struct a talloc parent

This commit is contained in:
Volker Lendecke 2008-02-28 14:03:38 +01:00
parent b0d1db95e5
commit e69244a5c8

View 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);
}
/****************************************************************************