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:20:25 +0000 (16:20 -0400)
commit200d100e05ed8e10c47f971939042f2406df92ef
tree3d40004925605bd9927c3208d6197a88f553554a
parentb4edfa8157bb45827c3236809e550b4d13c0ae22
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.051336 seconds and 4 git commands to generate.