Fix: don't free unallocated index
authorJulien Desfossez <jdesfossez@efficios.com>
Sat, 18 Aug 2012 13:16:42 +0000 (09:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 18 Aug 2012 13:16:42 +0000 (09:16 -0400)
commit37fcdd1964a5e821b24da7641d34775b90b5c711
treea6c6fd81530dfccaed6ebcb0cbca03523e1ba8e2
parentbcbfb8bf88ea9afbecd8a79708939fb8b79e5734
Fix: don't free unallocated index

When opening a mmap trace, the index is not created so does not need to
be freed, just add a check before freeing it.
For clarity, this patch also allocates the packet_real_index just after
the packet_cycles_index instead of waiting for the convert timestamp
function.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c
This page took 0.023761 seconds and 4 git commands to generate.