From a060edf264636e935e9b379ced2159ad4125e528 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 23 Aug 2019 23:44:29 +0200 Subject: [PATCH] :shirt: Use xfree --- src/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.c b/src/compile.c index e9cc9e07..679ee399 100644 --- a/src/compile.c +++ b/src/compile.c @@ -62,7 +62,7 @@ static m_bool _compiler_open(struct Compiler* c) { if(c->type == COMPILE_NAME) { m_str name = c->name; c->name = realpath(name, NULL); - free(name); + xfree(name); return c->name ? !!(c->file = fopen(c->name, "r")) : -1; } else if(c->type == COMPILE_MSTR) return (c->file = fmemopen(c->data, strlen(c->data), "r")) ? 1 : - 1; -- 2.43.0