[gp11] Fix memory leak in gp11_slot_get_token_info()
authorEric Sesterhenn <eric.sesterhenn@lsexperts.de>
Wed, 21 Oct 2009 01:54:00 +0000 (01:54 +0000)
committerStef Walter <stef@memberwebs.com>
Wed, 21 Oct 2009 01:54:00 +0000 (01:54 +0000)
Signed-off-by: Stef Walter <stef@memberwebs.com>
gp11/gp11-slot.c

index 722c90d..22381a1 100644 (file)
@@ -620,6 +620,7 @@ gp11_slot_get_token_info (GP11Slot *self)
                        tokeninfo->utc_time = -1;
                else
                        tokeninfo->utc_time = timegm (&tm);
+               g_free (string);
        } else {
                tokeninfo->utc_time = -1;
        }