diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/login/logind-user.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c index 00c2a22490..32b2045696 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -527,9 +527,7 @@ static int user_stop_service(User *u) { return r; } - free(u->service_job); - u->service_job = job; - + free_and_replace(u->service_job, job); return r; } |