From 97afa209a5870e39d3c45dd826dea0be84ab989b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 10 Sep 2019 22:48:06 +0200 Subject: [PATCH] :bug: Fix freearg_dottmpl --- src/lib/func.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/func.c b/src/lib/func.c index 7d34c9dd..dde379b3 100644 --- a/src/lib/func.c +++ b/src/lib/func.c @@ -292,7 +292,8 @@ static FREEARG(freearg_xork) { static FREEARG(freearg_dottmpl) { struct dottmpl_ *dt = (struct dottmpl_*)instr->m_val; - free_type_list(((Gwion)gwion)->mp, dt->tl); + if(dt->tl) + free_type_list(((Gwion)gwion)->mp, dt->tl); mp_free(((Gwion)gwion)->mp, dottmpl, dt); } -- 2.43.0