[lttng-dev] rculfhash: memory leak

Денис Корешков dynamic-wind at mail.ru
Wed Jun 22 10:26:22 UTC 2016


 Hello,
there's a small memory leak in the rculfhash observed under FreeBSD-10 when destroying a table. 
The line
pthread_mutex_init(&ht->resize_mutex, NULL);
actually calloc's some memory for resize_mutex, and there should be a call to pthread_mutex_destroy(3) in cds_lfht_destroy to free it. There's no such call in the latest (0.9.2) Userspace RCU.
Cheers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160622/aadd1d2b/attachment.html>


More information about the lttng-dev mailing list