We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7c8beef commit0d5f7ceCopy full SHA for 0d5f7ce
src/backend/libpq/crypt.c
@@ -9,7 +9,7 @@
9
* Dec 17, 1997 - Todd A. Brandys
10
*Orignal Version Completed.
11
*
12
- * $Id: crypt.c,v 1.17 1999/05/25 16:08:58 momjian Exp $
+ * $Id: crypt.c,v 1.18 1999/05/27 04:09:45 momjian Exp $
13
14
*-------------------------------------------------------------------------
15
*/
@@ -147,8 +147,8 @@ crypt_loadpwdfile()
147
{/* free the old data only if this is a
148
* reload */
149
while (pwd_cache_count--)
150
-pfree((void*)pwd_cache[pwd_cache_count]);
151
-pfree((void*)pwd_cache);
+free((void*)pwd_cache[pwd_cache_count]);
+free((void*)pwd_cache);
152
pwd_cache=NULL;
153
pwd_cache_count=0;
154
}
@@ -170,7 +170,7 @@ crypt_loadpwdfile()
170
buffer[result]='\0';
171
172
pwd_cache= (char**)realloc((void*)pwd_cache,sizeof(char*)* (pwd_cache_count+1));
173
-pwd_cache[pwd_cache_count++]=pstrdup(buffer);
+pwd_cache[pwd_cache_count++]=strdup(buffer);
174
175
FreeFile(pwd_file);
176