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:49 +0000 (11:35 -0400)
commitd6f956db3c0e55643fa547b6bebb82089a6615a7
tree3ca756e24362b0027b183da182b92d6198bf36fe
parent6e80c5ef08ec5705b72eff37685fd0ab5feabeb8
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.026384 seconds and 4 git commands to generate.