projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d9d15
)
Fix: prevent dangling pointer in utils_partial_realpath
author
Antoine Busque
<abusque@efficios.com>
Wed, 16 Sep 2015 06:58:40 +0000
(
02:58
-0400)
committer
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 04:35:36 +0000
(
00:35
-0400)
Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/utils.c
patch
|
blob
|
blame
|
history
diff --git
a/src/common/utils.c
b/src/common/utils.c
index d4ff94c7a09680308516e9cd6301b6ce8003844d..bf6751ebb95c4e121d4e8a2bf9c45dd858d4efe2 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-121,6
+121,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.030668 seconds
and
4
git commands to generate.