修复内存泄漏问题

This commit is contained in:
duzhuolin
2023-07-27 22:35:43 +08:00
parent d65e08d529
commit e83e4397e6

View File

@ -123,6 +123,8 @@ BuildErrorCode libpqGetParameters(void)
}
str2 = run_simple_query("SHOW enable_incremental_checkpoint");
if (str2 == NULL) {
pg_free(str);
str = NULL;
return BUILD_FATAL;
}
if (strcmp(str, "on") != 0 && strcmp(str2, "on") != 0) {