mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
Free palloc'd StringInfoData data
This commit is contained in:
2
repmgr.c
2
repmgr.c
@@ -787,8 +787,8 @@ repmgrd_pause(PG_FUNCTION_ARGS)
|
|||||||
elog(WARNING, _("unable to write to file %s"), REPMGRD_STATE_FILE);
|
elog(WARNING, _("unable to write to file %s"), REPMGRD_STATE_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfree(buf.data);
|
||||||
|
|
||||||
resetStringInfo(&buf);
|
|
||||||
FreeFile(file);
|
FreeFile(file);
|
||||||
|
|
||||||
PG_RETURN_VOID();
|
PG_RETURN_VOID();
|
||||||
|
|||||||
Reference in New Issue
Block a user