chiark / gitweb /
Prep v230: src/logind.c: Do not call manager_free(m) if an error lead to m still...
authorSven Eden <yamakuzure@gmx.net>
Wed, 7 Jun 2017 06:02:10 +0000 (08:02 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
src/login/logind.c

index 4c0b1df..4006bf1 100644 (file)
@@ -1392,7 +1392,8 @@ finish:
                   "STOPPING=1\n"
                   "STATUS=Shutting down...");
 
-        manager_free(m);
+        if (m)
+                manager_free(m);
 
         return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
 }