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>
Thu, 19 Sep 2019 19:31:48 +0000 (15:31 -0400)
commit3edb4f827e70927f42a95c5f1f4d514ec077550e
tree2a1a06b11cfe9af5195d78a8cd79573dd7ec937e
parentd45a350f47486db8c065f96412c76210ed49c812
Fix: leak of lttng_elf_shdr in lttng-elf.c

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>
src/common/lttng-elf.c
This page took 0.024997 seconds and 4 git commands to generate.