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 parent7bfec16 commit1a604c3Copy full SHA for 1a604c3
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.23 1999/07/17 20:17:01 momjian Exp $
+ * $Id: crypt.c,v 1.23.2.1 2001/02/07 23:42:27 tgl Exp $
13
14
*-------------------------------------------------------------------------
15
*/
@@ -59,6 +59,7 @@ crypt_getpwdreloadfilename()
59
bufsize=strlen(pwdfilename)+strlen(CRYPT_PWD_RELOAD_SUFX)+1;
60
rpfnam= (char*)palloc(bufsize);
61
snprintf(rpfnam,bufsize,"%s%s",pwdfilename,CRYPT_PWD_RELOAD_SUFX);
62
+pfree(pwdfilename);
63
64
returnrpfnam;
65
}
@@ -79,6 +80,8 @@ crypt_openpwdfile()
79
80
pwdfile=AllocateFile(filename,"rb");
81
#endif
82
83
+pfree(filename);
84
+
85
returnpwdfile;
86
87
@@ -131,6 +134,7 @@ crypt_loadpwdfile()
131
134
132
135
filename=crypt_getpwdreloadfilename();
133
136
result=unlink(filename);
137
138
139
/*
140
* We want to delete the flag file before reading the contents of the