gnome-keyring r1506 - in trunk: . gp11/tests
- From: nnielsen svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-keyring r1506 - in trunk: . gp11/tests
- Date: Sat, 7 Feb 2009 18:04:05 +0000 (UTC)
Author: nnielsen
Date: Sat Feb 7 18:04:05 2009
New Revision: 1506
URL: http://svn.gnome.org/viewvc/gnome-keyring?rev=1506&view=rev
Log:
Don't use freed memory in test.
Modified:
trunk/ChangeLog
trunk/gp11/tests/unit-test-gp11-slot.c
Modified: trunk/gp11/tests/unit-test-gp11-slot.c
==============================================================================
--- trunk/gp11/tests/unit-test-gp11-slot.c (original)
+++ trunk/gp11/tests/unit-test-gp11-slot.c Sat Feb 7 18:04:05 2009
@@ -54,8 +54,6 @@
g_assert (65 == info->firmware_version_major);
g_assert (165 == info->firmware_version_minor);
- gp11_slot_info_free (info);
-
if (info->flags & CKF_TOKEN_PRESENT) {
token = gp11_slot_get_token_info (slot);
g_assert (token != NULL && "no token info");
@@ -82,6 +80,8 @@
gp11_token_info_free (token);
}
+
+ gp11_slot_info_free (info);
}
gp11_list_unref_free (slots);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]