fixed memory leaks

This commit is contained in:
TLINDEN
2014-08-07 00:02:43 +02:00
parent 8954df7110
commit 9672785271
9 changed files with 60 additions and 24 deletions

View File

@@ -95,6 +95,10 @@ void fatal(PCPCTX *ptx, const char * fmt, ...) {
void fatals_reset(PCPCTX *ptx) {
ptx->pcp_errset = 0;
if(ptx->pcp_err != NULL) {
free(ptx->pcp_err);
ptx->pcp_err = NULL;
}
}
void fatals_ifany(PCPCTX *ptx) {