From: Tobias Brunner Date: Mon, 20 Apr 2015 09:19:52 +0000 (+0200) Subject: leak-detective: Use passed callback to report leaks X-Git-Tag: 5.3.1dr1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4d2c9f1871715f113d20fb2b178a07845ce7294;p=thirdparty%2Fstrongswan.git leak-detective: Use passed callback to report leaks This prevented `stroke memusage` from reporting the leaks on the console. Instead, they were sent to the callbacks set up by libstrongswan. Fixes a426851f6362 ("leak-detective: Use callback functions to report leaks and usage information"). --- diff --git a/src/libstrongswan/utils/leak_detective.c b/src/libstrongswan/utils/leak_detective.c index e4cd3d7d64..99f4843ad6 100644 --- a/src/libstrongswan/utils/leak_detective.c +++ b/src/libstrongswan/utils/leak_detective.c @@ -691,8 +691,8 @@ static int print_traces(private_leak_detective_t *this, { if (!thresh_count || entry->count >= thresh_count) { - this->report_cb(this->report_data, entry->count, - entry->bytes, entry->backtrace, detailed); + cb(user, entry->count, entry->bytes, entry->backtrace, + detailed); } } }