Avoid the possibility of a double free. Fix by Carlo Ascani

This commit is contained in:
Jaime Casanova
2012-04-27 02:08:40 -05:00
parent 3c5d82b9ef
commit b09eff9f76

View File

@@ -456,7 +456,10 @@ checkNodeConfiguration(char *conninfo)
exit(ERR_BAD_CONFIG);
}
}
PQclear(res);
else
{
PQclear(res);
}
}