projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Remove dependency on glibc 2.12 caused by pthread_setname_np
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 2f4ec903a2f9b849f1d0c32121400dfda5368844..3c9e70ddad6439ee362d9187c751151eca60d32a 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-124,7
+124,8
@@
char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
/* Free the allocated memory */
free(cut_path);
/* Free the allocated memory */
free(cut_path);
- };
+ cut_path = NULL;
+ }
/* Allocate memory for the resolved path if necessary */
if (resolved_path == NULL) {
/* Allocate memory for the resolved path if necessary */
if (resolved_path == NULL) {
@@
-161,6
+162,8
@@
char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
/* Free the allocated memory */
free(cut_path);
free(try_path_prev);
/* Free the allocated memory */
free(cut_path);
free(try_path_prev);
+ cut_path = NULL;
+ try_path_prev = NULL;
/*
* Else, we just copy the path in our resolved_path to
* return it as is
/*
* Else, we just copy the path in our resolved_path to
* return it as is
This page took
0.023072 seconds
and
4
git commands to generate.