]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/cryptsetup/cryptsetup.c
macro: introduce TAKE_PTR() macro
[thirdparty/systemd.git] / src / cryptsetup / cryptsetup.c
index 7255ff418c8f002768913f4440be43ded7325a12..69bbf525fe06554286ec838bcfc21888ec52035a 100644 (file)
@@ -402,8 +402,7 @@ static int get_password(const char *vol, const char *src, usec_t until, bool acc
                 *p = c;
         }
 
-        *ret = passwords;
-        passwords = NULL;
+        *ret = TAKE_PTR(passwords);
 
         return 0;
 }