mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
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:
parent
f06e7bdd98
commit
6f0fb66a0d
2 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -884,6 +884,7 @@ DBMgr::execParams( QueryBuilder& qb )
|
|||
PQresStatus(PQresultStatus(result)),
|
||||
PQresultErrorMessage(result) );
|
||||
}
|
||||
PQclear( result );
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue