Fix: leak of lttng_elf_shdr in lttng-elf.c
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 17:18:32 +0000 (13:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 17:18:32 +0000 (13:18 -0400)
Most lttng_elf_shdr uses in lttng-elf.c end-up leaking the header.
Since those headers instances are always short-lived and relatively
small, these leaks are fixed by not using dynamic allocations and
instead using automatic storage.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.026555 seconds and 5 git commands to generate.