cryptsetup: fix minor memory leak

This commit is contained in:
Lennart Poettering 2020-04-29 19:08:03 +02:00
parent c6b1d7d1da
commit 2424fb7e7b

View file

@ -956,11 +956,12 @@ static int run(int argc, char *argv[]) {
if (r != -EAGAIN)
return r;
/* Passphrase not correct? Let's try again! */
/* Key not correct? Let's try again! */
key_file = NULL;
key_data = erase_and_free(key_data);
key_data_size = 0;
arg_pkcs11_uri = NULL;
arg_pkcs11_uri = mfree(arg_pkcs11_uri);
}
if (arg_tries != 0 && tries >= arg_tries)