From: Jérémie Galarneau Date: Sat, 23 Jul 2016 19:59:30 +0000 (-0400) Subject: Fix: don't assert on lib unload failure X-Git-Tag: v2.0.0-pre1~921 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=93830bc19f9db43f419eeecd8d292a5902d1c712 Fix: don't assert on lib unload failure A library's load event might have been missed because of discarded events. In this scenario, it is expected that its mapping will not be found on unload. Signed-off-by: Jérémie Galarneau --- diff --git a/lib/debug-info.c b/lib/debug-info.c index 21223864..6acf1746 100644 --- a/lib/debug-info.c +++ b/lib/debug-info.c @@ -746,8 +746,8 @@ void handle_lib_unload_event(struct debug_info *debug_info, } key_ptr = (gpointer) &baddr; - assert(g_hash_table_remove(proc_dbg_info_src->baddr_to_bin_info, - key_ptr)); + (void) g_hash_table_remove(proc_dbg_info_src->baddr_to_bin_info, + key_ptr); end: return; }