- leak detective is usable, but does not show static function names

- a script which gets address via ldd and resolves address via addr2line would be nice
- fixed a leak in child_sa with new detective ;-)
This commit is contained in:
Martin Willi
2006-04-13 13:24:45 +00:00
parent 2cb7d3cab2
commit 9d7597bb12
7 changed files with 33 additions and 12 deletions
Binary file not shown.
+3 -4
View File
@@ -263,12 +263,11 @@ void signal_handler(int signal)
for (i = 0; i < size; i++)
{
logger->log(logger, ERROR, "\t%s", strings[i]);
logger->log(logger, ERROR, " %s", strings[i]);
}
free (strings);
charon->kill(charon, "SIGSEGV received");
/* kill ourselve the hard way, anything other may result in more SIGSEGVs*/
kill(getpid(), SIGKILL);
}
/**
+2
View File
@@ -447,6 +447,8 @@ static status_t add_policies(private_child_sa_t *this, linked_list_t *my_ts_list
{
my_iter->destroy(my_iter);
other_iter->destroy(other_iter);
policy->my_net->destroy(policy->my_net);
policy->other_net->destroy(policy->other_net);
free(policy);
return status;
}