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:
deaef3c
)
Fix: memleak in utils_partial_realpath
author
Antoine Busque
<abusque@efficios.com>
Sun, 13 Sep 2015 04:18:44 +0000
(
00:18
-0400)
committer
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 04:35:35 +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 7a09259ebc6b8de4657f804146bb795c35ac023e..d4ff94c7a09680308516e9cd6301b6ce8003844d 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-52,7
+52,7
@@
LTTNG_HIDDEN
char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
{
- char *cut_path, *try_path = NULL, *try_path_prev = NULL;
+ char *cut_path
= NULL
, *try_path = NULL, *try_path_prev = NULL;
const char *next, *prev, *end;
/* Safety net */
@@
-171,6
+171,7
@@
char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
error:
free(resolved_path);
+ free(cut_path);
return NULL;
}
This page took
0.027336 seconds
and
4
git commands to generate.