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

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