Fix a possible double free that would cause a segfault in

checkNodeConfiguration()
This commit is contained in:
Carlo Ascani
2011-07-26 18:22:06 -05:00
committed by Jaime Casanova
parent 158214acae
commit c983fdf83c
2 changed files with 6 additions and 5 deletions

View File

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