Skip to content

Commit

Permalink
Avoid the possibility of a double free. Fix by Carlo Ascani
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaime Casanova authored and Jaime Casanova committed Apr 27, 2012
1 parent 3c5d82b commit b09eff9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repmgrd.c
Expand Up @@ -456,7 +456,10 @@ checkNodeConfiguration(char *conninfo)
exit(ERR_BAD_CONFIG);
}
}
PQclear(res);
else
{
PQclear(res);
}
}


Expand Down

0 comments on commit b09eff9

Please sign in to comment.