projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: do not link against libtool .o objects
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 30a5f106ba8b19ec6ebbf26a059ff20fd278062c..1e52ae0aa073640a34f8b035376bb6b5119d5660 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-190,7
+190,9
@@
error:
free(resolved_path);
free(cut_path);
free(try_path);
- free(try_path_prev);
+ if (try_path_prev != try_path) {
+ free(try_path_prev);
+ }
return NULL;
}
@@
-852,6
+854,7
@@
int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size,
PERROR("Closing tracefile");
goto error;
}
+ *stream_fd = -1;
if (count > 0) {
/*
This page took
0.026245 seconds
and
5
git commands to generate.