]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/replace-var.c
tree-wide: use mfree more
[thirdparty/systemd.git] / src / basic / replace-var.c
index 8c3279b376fc720966b8ad1be5f4a0a7950aa72a..0d21423a9c67aced489c89ff60e6abaa77f0416a 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 /***
   This file is part of systemd.
 
@@ -109,6 +107,5 @@ char *replace_var(const char *text, char *(*lookup)(const char *variable, void*u
         return r;
 
 oom:
-        free(r);
-        return NULL;
+        return mfree(r);
 }