From: Thibault, Daniel Date: Mon, 30 Jan 2012 21:58:22 +0000 (-0500) Subject: Fixing memory leaks in add-context command X-Git-Tag: v2.0-pre19~27 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=5eb00805632a8721bd15247847caa053e9858719;hp=5eb00805632a8721bd15247847caa053e9858719;p=lttng-tools.git Fixing memory leaks in add-context command Besides enforcing the return values and outputting --help to stdout, the problem lay with the instances of struct ctx_type *type being created but not assigned to the doubly-linked list under various error conditions. Signed-off-by: Daniel U. Thibault Signed-off-by: David Goulet ---