Blame SOURCES/0001-Fix-memory-leak-in-test_check_nt_time_string_lifetim.patch

776d17
From e2ae8bc7454a52e2b929f9b09ad9be21e377342b Mon Sep 17 00:00:00 2001
776d17
From: Sumit Bose <sbose@redhat.com>
776d17
Date: Tue, 30 Jan 2018 14:39:46 +0100
776d17
Subject: [PATCH 1/9] Fix memory leak in test_check_nt_time_string_lifetime
776d17
776d17
The test added with 650e5d33ef31437a049fb454ad3dc5457c56abe7 introduced
776d17
a small memory leak.
776d17
776d17
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
776d17
---
776d17
 library/adutil.c | 1 +
776d17
 1 file changed, 1 insertion(+)
776d17
776d17
diff --git a/library/adutil.c b/library/adutil.c
776d17
index 21ccd27..cd40f45 100644
776d17
--- a/library/adutil.c
776d17
+++ b/library/adutil.c
776d17
@@ -501,6 +501,7 @@ test_check_nt_time_string_lifetime (void)
776d17
 			  (time (NULL) + 10 + AD_TO_UNIX_TIME_CONST) * 1000 * 1000 *10)
776d17
 		!= -1);
776d17
 	assert (!_adcli_check_nt_time_string_lifetime (time_str, 0));
776d17
+	free (time_str);
776d17
 
776d17
 	/* This test will fail some time after 2200AD as a reminder to reflect
776d17
 	 * why adcli is still needed. */
776d17
-- 
776d17
2.14.4
776d17