diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-20 22:20:25 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-20 22:22:30 +0100 |
commit | 4b09d2b4d3958b58b020c1ae21fcd932e1eb6c37 (patch) | |
tree | abba9eb25d2d7d4c9804ba56741e08e40b0fe417 /p11-kit/tests | |
parent | 57d8f36a6cfbde5a9a783f11f2b75f19005c23e1 (diff) |
Fix memory leaks reported by 'make leakcheck'
Diffstat (limited to 'p11-kit/tests')
-rw-r--r-- | p11-kit/tests/pin-test.c | 1 | ||||
-rw-r--r-- | p11-kit/tests/test-iter.c | 1 | ||||
-rw-r--r-- | p11-kit/tests/test-modules.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/p11-kit/tests/pin-test.c b/p11-kit/tests/pin-test.c index 758acf4..dd020bc 100644 --- a/p11-kit/tests/pin-test.c +++ b/p11-kit/tests/pin-test.c @@ -109,7 +109,6 @@ test_pin_read (CuTest *tc) p11_kit_pin_unregister_callback ("/the/pin_source", callback_one, &data); - p11_kit_pin_ref (pin); p11_kit_pin_unref (pin); } diff --git a/p11-kit/tests/test-iter.c b/p11-kit/tests/test-iter.c index 81aa06c..ccfce2c 100644 --- a/p11-kit/tests/test-iter.c +++ b/p11-kit/tests/test-iter.c @@ -983,6 +983,7 @@ test_load_attributes_none (CuTest *tc) attrs = p11_attrs_buildn (NULL, NULL, 0); rv = p11_kit_iter_load_attributes (iter, attrs, 0); CuAssertTrue (tc, rv == CKR_OK); + p11_attrs_free (attrs); } CuAssertTrue (tc, rv == CKR_CANCEL); diff --git a/p11-kit/tests/test-modules.c b/p11-kit/tests/test-modules.c index 5bdbaa4..3f0e4e0 100644 --- a/p11-kit/tests/test-modules.c +++ b/p11-kit/tests/test-modules.c @@ -96,6 +96,8 @@ test_no_duplicates (CuTest *tc) CuAssert (tc, "shouldn't be reached", 0); if (!p11_dict_set (paths, path, "")) CuAssert (tc, "shouldn't be reached", 0); + + free (path); } p11_dict_free (paths); |