summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_sam.c4
-rw-r--r--source3/auth/auth_server.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index b61fde4206..fb77a7a5c6 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -151,11 +151,11 @@ NTSTATUS smb_password_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *use
}
}
- free(workstation_list);
+ SAFE_FREE(workstation_list);
if (invalid_ws)
return NT_STATUS_INVALID_WORKSTATION;
} else {
- free(workstation_list);
+ SAFE_FREE(workstation_list);
}
} else {
return NT_STATUS_NO_MEMORY;
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index 7ed4cf60ad..e4c91c4dcb 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -77,7 +77,7 @@ struct cli_state *server_cryptkey(void)
}
}
- free(pserver);
+ SAFE_FREE(pserver);
if (!connected_ok) {
DEBUG(0,("password server not available\n"));