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)
commit22fae25a70cc5e87ab76e5e2071c88c0c181e2c3
tree89023d0bd78aa2da80cc3432a13dffeb69ca7e70
parent7ea24db3075a52487a76894057db56eba29581b3
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.032477 seconds and 4 git commands to generate.