From 7ce0104da894efd4d43f25ae1f0e3454d085d9c8 Mon Sep 17 00:00:00 2001
From: Daan De Meyer <daan.j.demeyer@gmail.com>
Date: Fri, 31 May 2024 11:33:12 +0200
Subject: [PATCH 7020/9500] cryptsetup-generator: Fix memory leak

---
 src/cryptsetup/cryptsetup-generator.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index 904e4cd..1446ea3 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -578,6 +578,8 @@ static crypto_device* crypt_device_free(crypto_device *d) {
         free(d->uuid);
         free(d->keyfile);
         free(d->keydev);
+        free(d->headerdev);
+        free(d->datadev);
         free(d->name);
         free(d->options);
         return mfree(d);
-- 
2.33.0

