apfl_ctx_destroy: Do nothing on NULL input

This commit is contained in:
Laria 2022-01-08 22:09:43 +01:00
parent 6439f4f8ce
commit ac3af0baf1

View file

@ -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);
}