r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
[samba.git] / source3 / utils / pdbedit.c
index a098039cd07996cc18e13f2f3b7d911b5b91c32d..2e7fbc1812d602d0a842108a67910e1a5eb794aa 100644 (file)
@@ -508,10 +508,10 @@ static int new_machine (struct pdb_methods *in, const char *machine_in)
        if ((pwd = getpwnam_alloc(NULL, machineaccount))) {
                if (!NT_STATUS_IS_OK(pdb_init_sam_pw( &sam_pwent, pwd))) {
                        fprintf(stderr, "Could not init sam from pw\n");
-                       talloc_free(pwd);
+                       TALLOC_FREE(pwd);
                        return -1;
                }
-               talloc_free(&pwd);
+               TALLOC_FREE(pwd);
        } else {
                if (!NT_STATUS_IS_OK(pdb_init_sam (&sam_pwent))) {
                        fprintf(stderr, "Could not init sam from pw\n");