Fix: null dereference on error path for create_ctx_type
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 17 Jan 2017 15:08:47 +0000 (10:08 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Jan 2017 23:37:39 +0000 (18:37 -0500)
commit326cf26a600fa17813b830322f2beb9a74955a1e
treead8a9792b69c61e6360b71bc1504e8557be5b13f
parente05228002adc81ad96805b992d4d34c1066fba56
Fix: null dereference on error path for create_ctx_type

When zmalloc of type->opt fail the destroy_ctx_type would result in a
null dereference.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/add_context.c
This page took 0.025657 seconds and 4 git commands to generate.