mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Major code cleanup following the pg_password insertion...
...malloc/free -> palloc/pfree ...fopen/fclose -> AllocateFile/FreeFile
This commit is contained in:
@@ -56,7 +56,7 @@ verify_password(char *user, char *password, Port *port,
|
||||
return STATUS_ERROR;
|
||||
}
|
||||
|
||||
pw_file_fullname = (char *) malloc(strlen(DataDir) + strlen(pw_file_name) + 2);
|
||||
pw_file_fullname = (char *) palloc(strlen(DataDir) + strlen(pw_file_name) + 2);
|
||||
strcpy(pw_file_fullname, DataDir);
|
||||
strcat(pw_file_fullname, "/");
|
||||
strcat(pw_file_fullname, pw_file_name);
|
||||
|
Reference in New Issue
Block a user