mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
mount-util: use mfree()
This commit is contained in:
parent
95ca39f04e
commit
75f79cd2d8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user