kumquat-buildroot/package/libpwquality/0002-Fix-memory-leak-in-settings-when-using-bad-word-list.patch
Stefan Sørensen 462040443c libpwquality: new package
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-05-11 23:16:19 +02:00

27 lines
713 B
Diff

From b1f2f1f71894fa0af92041fb4d5b6146101d63e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
Date: Thu, 2 Feb 2017 11:17:26 +0100
Subject: [PATCH] Fix memory leak in settings when using bad word list.
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
---
Status: accepted upstream, not yet released.
diff --git a/src/settings.c b/src/settings.c
index 5c38b30..4b026b1 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -46,6 +46,7 @@ pwquality_free_settings(pwquality_settings_t *pwq)
{
if (pwq) {
free(pwq->dict_path);
+ free(pwq->bad_words);
free(pwq);
}
}
--
2.9.3