summaryrefslogtreecommitdiff
path: root/src/login/logind-user.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-03-13 09:20:24 +0100
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:23:22 +0100
commitd76bb3c179b7a32b109e39aa87ff09c8f5a8c178 (patch)
tree928f2ffcd363c0847053d5168d25a87c0a1606f5 /src/login/logind-user.c
parenta56317566353ab14adc5f68da93af51d880b6ffd (diff)
Unifiy free() usage
This commit substitutes all occurrences of free(foo); foo = NULL; with foo = mfree(foo);
Diffstat (limited to 'src/login/logind-user.c')
-rw-r--r--src/login/logind-user.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
index e5833ef50..63adc8210 100644
--- a/src/login/logind-user.c
+++ b/src/login/logind-user.c
@@ -590,8 +590,7 @@ static int user_remove_runtime_path(User *u) {
if (r < 0)
log_error_errno(r, "Failed to remove runtime directory %s: %m", u->runtime_path);
- free(u->runtime_path);
- u->runtime_path = NULL;
+ u->runtime_path = mfree(u->runtime_path);
return r;
}