projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Add OSX clock_gettime compat
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index df55dc9fb65880db9dc75373c390634849e0fd34..1e52ae0aa073640a34f8b035376bb6b5119d5660 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-189,6
+189,10
@@
char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
error:
free(resolved_path);
free(cut_path);
error:
free(resolved_path);
free(cut_path);
+ free(try_path);
+ if (try_path_prev != try_path) {
+ free(try_path_prev);
+ }
return NULL;
}
return NULL;
}
@@
-850,6
+854,7
@@
int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size,
PERROR("Closing tracefile");
goto error;
}
PERROR("Closing tracefile");
goto error;
}
+ *stream_fd = -1;
if (count > 0) {
/*
if (count > 0) {
/*
@@
-1347,7
+1352,7
@@
end:
static const char *get_man_bin_path(void)
{
static const char *get_man_bin_path(void)
{
- char *env_man_path = getenv(DEFAULT_MAN_BIN_PATH_ENV);
+ char *env_man_path =
lttng_secure_
getenv(DEFAULT_MAN_BIN_PATH_ENV);
if (env_man_path) {
return env_man_path;
if (env_man_path) {
return env_man_path;
This page took
0.024584 seconds
and
4
git commands to generate.