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

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