2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

4844. [test] Address memory leaks in libatf-c. [RT #46798]

This commit is contained in:
Mark Andrews
2017-12-08 12:33:53 +11:00
parent 8444b4856a
commit 1c794002f5
4 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
4844. [test] Address memory leaks in libatf-c. [RT #46798]
4843. [bug] dnssec-signzone free hashlist on exit. [RT #46791]
4842. [bug] Conditionally compile opensslecdsa_link.c to avoid

View File

@@ -364,6 +364,7 @@ atf_map_insert(atf_map_t *m, const char *key, void *value, bool managed)
if (atf_is_error(err)) {
if (managed)
free(value);
free(me->m_key);
free(me);
}
}

View File

@@ -285,6 +285,7 @@ list_tcs(const atf_tp_t *tp)
atf_utils_free_charpp(vars);
}
free(tcs);
}
/* ---------------------------------------------------------------------

View File

@@ -614,7 +614,9 @@ void
atf_tc_fini(atf_tc_t *tc)
{
atf_map_fini(&tc->pimpl->m_vars);
atf_map_fini(&tc->pimpl->m_config);
free(tc->pimpl);
tc->pimpl = NULL;
}
/*