[gnome-keyring] test-padding: Don't leak egg_padding_pkcs1_pad_02 return value



commit dbc6af0ea986a4840e6a8a06d632435332c6d2a4
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Wed Oct 1 22:35:39 2014 +0200

    test-padding: Don't leak egg_padding_pkcs1_pad_02 return value
    
    egg_padding_pkcs1_pad_02 returns newly allocated data which must be
    g_free'ed after use.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738508

 egg/test-padding.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/egg/test-padding.c b/egg/test-padding.c
index aecdd37..54a526c 100644
--- a/egg/test-padding.c
+++ b/egg/test-padding.c
@@ -114,6 +114,7 @@ test_pkcs1_two_padding (void)
        g_assert (result[5] == 0x00);
        g_assert (result[6] == 'T');
        g_assert (result[7] == 'E');
+       g_free (vesult);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]