Fix: clear error counter before adding to lists
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Nov 2021 21:05:10 +0000 (17:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Nov 2021 21:05:10 +0000 (17:05 -0400)
commitc4e310594ea3bd6d5110bcda972c0920e95a6eaf
tree4d08f9c759299d0c9b04b9ce59b85a8390900e6c
parent51d248b5aae42e872ba2b8eac38df6cae381c078
Fix: clear error counter before adding to lists

Adding to lists should be the last thing in the create function,
otherwise errors on error counter clear may lead to use-after-free
due to presence of freed objects in linked lists.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia6fb83cd053c2122939add6c330834199514b0e5
src/lttng-events.c
This page took 0.025835 seconds and 4 git commands to generate.