X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=blobdiff_plain;f=src%2Fshared%2Fmount-util.h;fp=src%2Fshared%2Fmount-util.h;h=033fcd1f47a0008f14735109e2e142ccf657ea24;hp=6202008a81db0c90bbed2a4f3def7ea89f79bbbd;hb=75f79cd2d80b6f81f6c5c765b9e310708c01a517;hpb=95ca39f04efa278ac93881e6e364a6ae520b03e7 diff --git a/src/shared/mount-util.h b/src/shared/mount-util.h index 6202008a81d..033fcd1f47a 100644 --- a/src/shared/mount-util.h +++ b/src/shared/mount-util.h @@ -5,6 +5,7 @@ #include #include +#include "alloc-util.h" #include "errno-util.h" #include "macro.h" @@ -93,7 +94,6 @@ static inline char* umount_and_rmdir_and_free(char *p) { PROTECT_ERRNO; (void) umount_recursive(p, 0); (void) rmdir(p); - free(p); - return NULL; + return mfree(p); } DEFINE_TRIVIAL_CLEANUP_FUNC(char*, umount_and_rmdir_and_free);