mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-18 04:10:57 +01:00
fixed memory leaks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user