Fix: java application context segmentation fault
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 May 2021 14:28:02 +0000 (10:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 May 2021 15:35:11 +0000 (11:35 -0400)
commit239128ca4ff4270a87d03f7098ebb6bf48b6aec7
tree3ca756e24362b0027b183da182b92d6198bf36fe
parentd0e8dd3951870f4341b50598afd0fd7c42516866
Fix: java application context segmentation fault

Type mismatch for application context private data causes segmentation
faults in the lttng-ust java testsuite.

This can be solved by using the private data provided by the application
context rather than struct lttng_ust_app_ctx, which is not needed
anymore.

This also fixes a memory leak on context add error.

Those issues were introduced by the 2.13 development cycle refactorings.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I19c4e2d0ef6bcb7d4f9c2ffa43a9425661df05c1
src/lib/lttng-ust/lttng-context-provider.c
This page took 0.024935 seconds and 4 git commands to generate.