projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test: fix a potential memory leak
[platform/upstream/libxkbcommon.git]
/
test
/
common.c
diff --git
a/test/common.c
b/test/common.c
index
c371272
..
fbe72a7
100644
(file)
--- a/
test/common.c
+++ b/
test/common.c
@@
-247,8
+247,10
@@
test_get_context(enum test_context_flags test_flags)
return NULL;
path = test_get_path("");
- if (!path)
+ if (!path) {
+ xkb_context_unref(ctx);
return NULL;
+ }
xkb_context_include_path_append(ctx, path);
free(path);