[gnome-keyring] test-import: Don't leak args.pReserved



commit 9421bf589095380286bed90bca67f6ae2746ce0b
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Wed Oct 1 22:48:23 2014 +0200

    test-import: Don't leak args.pReserved
    
    It's allocated with g_strdup_printf and must thus be freed after use.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738508

 pkcs11/gnome2-store/test-import.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/gnome2-store/test-import.c b/pkcs11/gnome2-store/test-import.c
index 7c24cae..da0476f 100644
--- a/pkcs11/gnome2-store/test-import.c
+++ b/pkcs11/gnome2-store/test-import.c
@@ -62,6 +62,7 @@ setup (Test *test,
 
        test->funcs = gkm_gnome2_store_get_functions ();
        rv = (test->funcs->C_Initialize) (&args);
+       g_free (args.pReserved);
        gkm_assert_cmprv (rv, ==, CKR_OK);
 
        /* And now need to log in */


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