lib: plugin: reset pointers to `NULL` on destruction
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 30 Nov 2018 20:55:33 +0000 (15:55 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commitdb5504f973efded14c592f5404cce39c9b566329
tree93196272b13e6e1dee014a16a6d53fa3fdcf9843
parent238b7404b66983c6ba15c3a44bfbf642f20bdabe
lib: plugin: reset pointers to `NULL` on destruction

When an object's member is destroyed, internally, reset its pointer
to `NULL` immediately. This makes it possible to log partial objects
during destruction while keeping Valgrind's memcheck happy.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
include/babeltrace/plugin/plugin-internal.h
lib/plugin/plugin-so.c
This page took 0.02568 seconds and 4 git commands to generate.