projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: Double free in utils_partial_realpath error path
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 735d97f99c0ae675826853aa7a400a90f26afb05..217d8c65d070a22ac3a0265cf63fbba1dc0a0e3f 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-176,6
+176,10
@@
char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
error:
free(resolved_path);
free(cut_path);
+ free(try_path);
+ if (try_path_prev != try_path) {
+ free(try_path_prev);
+ }
return NULL;
}
This page took
0.02304 seconds
and
4
git commands to generate.