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

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