lib: plugin: reset pointers to `NULL` on destruction
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 30 Nov 2018 20:55:33 +0000 (15:55 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:09:17 +0000 (00:09 -0400)
commitc0b02692cf9e08ba31fd40558931575c197477b2
tree93196272b13e6e1dee014a16a6d53fa3fdcf9843
parent53b97e38829b387a4e336a160c82e2f2a14421dc
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.024716 seconds and 5 git commands to generate.