apfl_ctx_destroy: Do nothing on NULL input
This commit is contained in:
parent
6439f4f8ce
commit
ac3af0baf1
1 changed files with 4 additions and 0 deletions
|
|
@ -146,6 +146,10 @@ apfl_ctx_new(void)
|
|||
void
|
||||
apfl_ctx_destroy(apfl_ctx ctx)
|
||||
{
|
||||
if (ctx == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
apfl_hashmap_destroy(ctx->scope);
|
||||
free(ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue