From: fennecdjay Date: Fri, 23 Aug 2019 21:44:29 +0000 (+0200) Subject: :shirt: Use xfree X-Git-Tag: nightly~2270 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a060edf264636e935e9b379ced2159ad4125e528;p=gwion.git :shirt: Use xfree --- 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;