Check if jrec_pool/clrec_pool are NULL or not
This commit is contained in:
parent
dc16dd98fb
commit
9083f3cb93
1 changed files with 2 additions and 2 deletions
|
|
@ -118,8 +118,8 @@ void free_context(Sj3Context* ctx) {
|
|||
|
||||
freework(ctx);
|
||||
|
||||
free(ctx->jrec_pool);
|
||||
free(ctx->clrec_pool);
|
||||
if(ctx->jrec_pool != NULL) free(ctx->jrec_pool);
|
||||
if(ctx->clrec_pool != NULL) free(ctx->clrec_pool);
|
||||
|
||||
free(ctx->stdy);
|
||||
free(ctx->work);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue