From 192bc700159440ee3c0d917f589e86d4c174a5cb Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 23 Jun 2019 15:48:13 +0200 Subject: [PATCH] :art: Poolize VM_Shred->name --- src/vm/vm_shred.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm/vm_shred.c b/src/vm/vm_shred.c index 02e4fc76..c755ab8a 100644 --- a/src/vm/vm_shred.c +++ b/src/vm/vm_shred.c @@ -17,12 +17,12 @@ struct Stack_ { static inline struct ShredInfo_ *new_shredinfo(MemPool p, const m_str name) { struct ShredInfo_ *info = mp_calloc(p, ShredInfo); info->mp = p; - info->name = strdup(name); + info->name = mstrdup(p, name); return info; } static inline void free_shredinfo(MemPool mp, struct ShredInfo_ *info) { - free(info->name); + free_mstr(mp, info->name); if(info->args) { const Vector v = info->args; LOOP_OPTIM -- 2.43.0