fix three-year-old huuuuge memory leak

Hadn't run Valgrind in a while. There's another too, but much smaller
and harder to track down.
This commit is contained in:
Eric House 2017-06-07 08:07:42 -07:00
parent f06e7bdd98
commit 6f0fb66a0d
2 changed files with 3 additions and 1 deletions

View file

@ -248,7 +248,8 @@ CookieRef::_Reconnect( int clientVersion, DevID* devID, HostID hid,
logf( XW_LOGINFO, "%s: failing because spot taken", __func__ );
} else {
if ( alreadyHere ) {
logf( XW_LOGERROR, "%s: dropping because already here", __func__ );
logf( XW_LOGERROR, "%s: NOT dropping because already here (but should fix client!)",
__func__ );
}
pushReconnectEvent( clientVersion, devID, hid, nPlayersH, nPlayersS,

View file

@ -884,6 +884,7 @@ DBMgr::execParams( QueryBuilder& qb )
PQresStatus(PQresultStatus(result)),
PQresultErrorMessage(result) );
}
PQclear( result );
return success;
}