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:45 +0000 (18:37 -0500)
commite74bc0ba0ea42594eaad0c4d4dd95a9dbe7d4334
treeaafef9c0127450a6a55c20aaed3480652e482b86
parentbe1cf54cbb1a5c31a103c2a2ae8267b40f2a2b98
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.026396 seconds and 4 git commands to generate.