Skip to content

Commit

Permalink
asan: add log for double free (#395)
Browse files Browse the repository at this point in the history
Signed-off-by: Ric Li <ming3.li@intel.com>
  • Loading branch information
ricmli authored Aug 4, 2023
1 parent 2499fda commit a578ad6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/mt_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ void mt_rte_free(void* p) {
}
}
mt_pthread_mutex_unlock(&g_bt_mutex);
if (bt_info == NULL) { /* not found */
err("%s, \033[31m%p already freed\033[0m\n", __func__, p);
}
rte_free(p);
}
#endif
Expand Down

0 comments on commit a578ad6

Please sign in to comment.