This is actually harmless since in the situation pgpool child process
exits and the leaked memory is gone anyway. I just want to shut off
Coverity's complain.
if(front_end_fd > 0)
{
POOL_CONNECTION *cp;
- StartupPacket *sp;
+ volatile StartupPacket *sp;
/*
* we do not want to report socket error, as above errors
FlushErrorState();
ereport(FATAL,
(errmsg("%s",error_msg),errdetail("%s",error_detail),errhint("%s",error_hint)));
+ pfree(sp);
}
PG_END_TRY();
}