lib: plugin: reset pointers to `NULL` on destruction
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 30 Nov 2018 20:55:33 +0000 (15:55 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:36 +0000 (18:19 -0400)
commitc6578b037c207e0501396da2374a982c6c028e4f
treedb7f5518fc6186dfc1930f5fef7921b4b7cdda9b
parent1248f5eaf4446fd890efc5d87a3e2bb4d25172f4
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.029055 seconds and 4 git commands to generate.