]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/export-raw.c
tree-wide: use mfree more
[thirdparty/systemd.git] / src / import / export-raw.c
index 28c87594d68dcde59873205bf4c8261cdd97fc3c..a3dbce195419ed8cd3dc74adc161bdb52ddad19d 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 /***
   This file is part of systemd.
 
@@ -36,6 +34,7 @@
 #include "fd-util.h"
 #include "fileio.h"
 #include "import-common.h"
+#include "missing.h"
 #include "ratelimit.h"
 #include "string-util.h"
 #include "util.h"
@@ -88,9 +87,7 @@ RawExport *raw_export_unref(RawExport *e) {
 
         free(e->buffer);
         free(e->path);
-        free(e);
-
-        return NULL;
+        return mfree(e);
 }
 
 int raw_export_new(