Free palloc'd StringInfoData data

This commit is contained in:
Ian Barwick
2019-05-28 13:04:04 +09:00
parent c153e2fc02
commit d54f0d66fb

View File

@@ -787,8 +787,8 @@ repmgrd_pause(PG_FUNCTION_ARGS)
elog(WARNING, _("unable to write to file %s"), REPMGRD_STATE_FILE);
}
pfree(buf.data);
resetStringInfo(&buf);
FreeFile(file);
PG_RETURN_VOID();