fixed segfault when fatals_ifany() called multiple times

This commit is contained in:
TLINDEN
2014-02-13 20:19:32 +01:00
parent a3aa740dd0
commit 01cf82b2df
2 changed files with 7 additions and 2 deletions

View File

@@ -54,7 +54,10 @@ void fatals_ifany() {
if(errno) {
fprintf(stderr, "Error: %s\n", strerror(errno));
}
free(PCP_ERR);
PCP_EXIT = 1;
}
}
void fatals_done() {
free(PCP_ERR);
}