Skip to content

Commit ae3fdbe

Browse files
add free in error case CID 327286
1 parent 74b63b6 commit ae3fdbe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ssl_certman.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,8 @@ int CM_SaveCertCache(WOLFSSL_CERT_MANAGER* cm, const char* fname)
13281328
WOLFSSL_MSG("Cert cache file write failed");
13291329
ret = FWRITE_ERROR;
13301330
}
1331+
}
1332+
if (mem != NULL) {
13311333
XFREE(mem, cm->heap, DYNAMIC_TYPE_TMP_BUFFER);
13321334
}
13331335

0 commit comments

Comments
 (0)