diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-27 08:34:51 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-27 14:35:20 +0900 |
commit | 75f79cd2d80b6f81f6c5c765b9e310708c01a517 (patch) | |
tree | 5cce6a5d26cb73fbc7ba4c7e689065b33f3bd9b7 /src | |
parent | 95ca39f04efa278ac93881e6e364a6ae520b03e7 (diff) | |
download | systemd-75f79cd2d80b6f81f6c5c765b9e310708c01a517.tar.gz |
mount-util: use mfree()
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/mount-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/mount-util.h b/src/shared/mount-util.h index 6202008a81..033fcd1f47 100644 --- a/src/shared/mount-util.h +++ b/src/shared/mount-util.h @@ -5,6 +5,7 @@ #include <stdio.h> #include <unistd.h> +#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); |