Fix: add missing destroy functions to queues/stack APIs
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Jun 2016 20:20:25 +0000 (16:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Jun 2016 20:28:28 +0000 (16:28 -0400)
commit026aaf45e156cae3b0d97df55bc1a04ef77c538e
treeeb2cc76872f6023b40f14609124501f6d6a1e647
parente23b05e58294714b21a8fcad3a891899845c7efc
Fix: add missing destroy functions to queues/stack APIs

Queues and stack APIs that invoke pthread_mutex_init() should have a
"destroy" counterpart which calls pthread_mutex_destroy(), ortherwise
this causes small memory leaks on platforms where pthread_mutex_init
performs memory allocation.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 files changed:
lfstack.c
urcu/lfstack.h
urcu/static/lfstack.h
urcu/static/wfcqueue.h
urcu/static/wfqueue.h
urcu/static/wfstack.h
urcu/wfcqueue.h
urcu/wfqueue.h
urcu/wfstack.h
wfcqueue.c
wfqueue.c
wfstack.c
This page took 0.026006 seconds and 4 git commands to generate.