From fef54c658d32a6aa5b6f29a95d11757c68f2b9ac Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 8 Nov 2016 17:33:03 +0100 Subject: [PATCH] Memory leak fixes. --- coreapi/nat_policy.c | 1 + tester/vcard_tester.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/coreapi/nat_policy.c b/coreapi/nat_policy.c index a16bc8104..d7f176beb 100644 --- a/coreapi/nat_policy.c +++ b/coreapi/nat_policy.c @@ -41,6 +41,7 @@ static void linphone_nat_policy_destroy(LinphoneNatPolicy *policy) { if (policy->stun_addrinfo) bctbx_freeaddrinfo(policy->stun_addrinfo); if (policy->stun_resolver_context) { sal_resolve_cancel(policy->stun_resolver_context); + sal_resolver_context_unref(policy->stun_resolver_context); } } diff --git a/tester/vcard_tester.c b/tester/vcard_tester.c index f0449e6e4..150e41768 100644 --- a/tester/vcard_tester.c +++ b/tester/vcard_tester.c @@ -798,8 +798,8 @@ test_t vcard_tests[] = { TEST_NO_TAG("vCard creation for existing friends", linphone_vcard_update_existing_friends_test), TEST_NO_TAG("vCard phone numbers and SIP addresses", linphone_vcard_phone_numbers_and_sip_addresses), #ifdef SQLITE_STORAGE_ENABLED - TEST_ONE_TAG("Friends working if no db set", friends_if_no_db_set, "LeaksMemory"), - TEST_ONE_TAG("Friends storage migration from rc to db", friends_migration, "LeaksMemory"), + TEST_NO_TAG("Friends working if no db set", friends_if_no_db_set), + TEST_NO_TAG("Friends storage migration from rc to db", friends_migration), TEST_NO_TAG("Friends storage in sqlite database", friends_sqlite_storage), #endif TEST_NO_TAG("CardDAV clean", carddav_clean), // This is to ensure the content of the test addressbook is in the correct state for the following tests