diff options
Diffstat (limited to 'src/format.c')
-rw-r--r-- | src/format.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/format.c b/src/format.c index 0c463b0..b691dc7 100644 --- a/src/format.c +++ b/src/format.c @@ -101,6 +101,8 @@ static const struct HXmap_ops func_entry_ops = { EXPORT_SYMBOL void HXformat_free(struct HXformat_map *blk) { + if (blk == NULL) + return; HXmap_free(blk->vars); HXmap_free(blk->funcs); free(blk); |