projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: prevent dangling pointer in utils_partial_realpath
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 2f4ec903a2f9b849f1d0c32121400dfda5368844..9fcceab1f3149c2c5e17a3e68d4ee1b60fc4932c 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-124,6
+124,7
@@
char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
/* Free the allocated memory */
free(cut_path);
+ cut_path = NULL;
};
/* Allocate memory for the resolved path if necessary */
This page took
0.023325 seconds
and
4
git commands to generate.