Ticket #4179: mc-4179-cid-serialize.c-fix-resource-leak.patch

File mc-4179-cid-serialize.c-fix-resource-leak.patch, 666 bytes (added by and, 12 months ago)
  • lib/serialize.c

    From 2cbecafae56983f7421ad6475de940c2ff2582b5 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Mon, 24 May 2021 17:41:08 +0000
    Subject: [PATCH] (serialize.c) fix resource leak
    
    Fix Resource leak
    
    Found by Coverity
    Coverity id #331818
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     lib/serialize.c | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/lib/serialize.c b/lib/serialize.c
    index 63d1c68a2..4c06eb9a7 100644
    a b mc_serialize_config (mc_config_t * data, GError ** error) 
    251251 
    252252        g_strfreev (params); 
    253253    } 
     254    g_strfreev (groups); 
    254255    return g_string_free (buffer, FALSE); 
    255256} 
    256257