clear password later for LogStreamer
This commit is contained in:
ganyang
2023-03-07 21:17:06 +08:00
committed by 仲夏十三
parent 93cf8543c1
commit c7525214eb

View File

@ -1154,8 +1154,6 @@ static void BaseBackup(void)
/* Error message already written in GetConnection() */
exit(1);
ClearAndFreePasswd();
/*
* Run IDENTIFY_SYSTEM so we can get the timeline
*/
@ -1335,6 +1333,7 @@ static void BaseBackup(void)
StartLogStreamer((const char *)xlogstart, timeline, sysidentifier);
}
ClearAndFreePasswd();
/* free sysidentifier after use */
PQfreemem(sysidentifier);
sysidentifier = NULL;