Fix double free and out of order delete session
authorDavid Goulet <dgoulet@efficios.com>
Tue, 17 Jan 2012 22:05:10 +0000 (17:05 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 17 Jan 2012 22:05:10 +0000 (17:05 -0500)
commit7db205b58015723f2ec7d966400d189c63fea01b
treeccc55d2dbddfb8982f33ab71762dcffcac2adb32
parentbcfa8a05018b339b9b5609fe975a3a7b29cc0c6e
Fix double free and out of order delete session

Failing to create metadata, the data structure was freed but the pointer
was not set to NULL. When deleting the metadata of that session (that
has failed), the pointer was not NULL creating a "valid" pointer for the
check and creating a double free error. This failure happens when the
session daemon reached the maximum number of open files.

Also, on destroy trace, the ust app session was freed and deref. just
after creating an invalid pointer access.

Finally, set the started flag of a ust app session to 0 when stopping
the session.

Signed-off-by: David Goulet <dgoulet@efficios.com>
lttng-sessiond/ust-app.c
This page took 0.034355 seconds and 4 git commands to generate.