projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6628cf0
)
Don't leak include_paths in context
author
Daniel Stone
<daniel@fooishbar.org>
Thu, 29 Mar 2012 00:41:40 +0000
(
01:41
+0100)
committer
Daniel Stone
<daniel@fooishbar.org>
Thu, 29 Mar 2012 00:41:40 +0000
(
01:41
+0100)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/context.c
patch
|
blob
|
history
diff --git
a/src/context.c
b/src/context.c
index 0c5da919c25cf519aa194dd5740c1aedfbeb0e10..fbb93e445a0e7cc09f3b156735e74aa1269f47f2 100644
(file)
--- a/
src/context.c
+++ b/
src/context.c
@@
-101,6
+101,7
@@
xkb_context_include_path_append_default(struct xkb_context *context)
if (err <= 0)
return 1;
(void) xkb_context_include_path_append(context, user_path);
+ free(user_path);
return 1;
}
@@
-117,6
+118,8
@@
xkb_context_include_path_clear(struct xkb_context *context)
free(context->include_paths[i]);
context->include_paths[i] = NULL;
}
+ free(context->include_paths);
+ context->include_paths = NULL;
context->num_include_paths = 0;
}