projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: elf: leaks on error paths
[lttng-ust.git]
/
liblttng-ust
/
lttng-ust-elf.c
diff --git
a/liblttng-ust/lttng-ust-elf.c
b/liblttng-ust/lttng-ust-elf.c
index 026d65cec362ce757994d2d500a295d6839ba44b..ce58539e67880e853224a862c6aaed3ca6094b7a 100644
(file)
--- a/
liblttng-ust/lttng-ust-elf.c
+++ b/
liblttng-ust/lttng-ust-elf.c
@@
-478,6
+478,7
@@
int lttng_ust_elf_get_build_id_from_segment(
*found = _found;
return 0;
error:
+ free(_build_id);
return -1;
}
@@
-624,10
+625,8
@@
end:
return 0;
error:
- if (section_name) {
- free(section_name);
- }
-
+ free(_filename);
+ free(section_name);
return -1;
}
This page took
0.02241 seconds
and
4
git commands to generate.