Skip to content
Snippets Groups Projects
Select Git revision
  • 4db7ebf857a3fb98b0d6527478f5da5f32f6ef9a
  • buster default protected
  • bullseye
  • master protected
4 results

0017-Fix-memory-leak-in-test_check_nt_time_string_lifetim.patch

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    0017-Fix-memory-leak-in-test_check_nt_time_string_lifetim.patch 896 B
    From 1b31d18c574e820d50c80e6973e8d6031a305410 Mon Sep 17 00:00:00 2001
    From: Sumit Bose <sbose@redhat.com>
    Date: Tue, 30 Jan 2018 14:39:46 +0100
    Subject: [PATCH 17/30] Fix memory leak in test_check_nt_time_string_lifetime
    
    The test added with 650e5d33ef31437a049fb454ad3dc5457c56abe7 introduced
    a small memory leak.
    
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    ---
     library/adutil.c | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/library/adutil.c b/library/adutil.c
    index 14df42e..a27bd68 100644
    --- a/library/adutil.c
    +++ b/library/adutil.c
    @@ -734,6 +734,7 @@ test_check_nt_time_string_lifetime (void)
     			  (time (NULL) + 10 + AD_TO_UNIX_TIME_CONST) * 1000 * 1000 *10)
     		!= -1);
     	assert (!_adcli_check_nt_time_string_lifetime (time_str, 0));
    +	free (time_str);
     
     	/* This test will fail some time after 2200AD as a reminder to reflect
     	 * why adcli is still needed. */
    -- 
    2.11.0