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

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