Fix some compiler warnings.

This commit is contained in:
Milan Broz
2018-07-19 12:49:59 +02:00
parent 081aa18f39
commit 1112da76f1
3 changed files with 5 additions and 2 deletions

View File

@@ -1036,6 +1036,7 @@ static void crypt_free_type(struct crypt_device *cd)
crypt_free_volume_key(cd->u.integrity.journal_mac_key);
} else if (!cd->type) {
free(cd->u.none.active_name);
cd->u.none.active_name = NULL;
}
crypt_set_null_type(cd);