summaryrefslogtreecommitdiff
path: root/src/darray.h
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2017-12-12 14:43:24 +0200
committerRan Benita <ran234@gmail.com>2017-12-12 14:44:01 +0200
commit2963e29f0efbc9414d6f908dcfbf57ee30dc22a9 (patch)
tree3e347114abfd297a26f208f25a5a98a84a3aabee /src/darray.h
parent26453b84732da870f5695ee347970b337cfea9c1 (diff)
downloadxorg-lib-libxkbcommon-2963e29f0efbc9414d6f908dcfbf57ee30dc22a9.tar.gz
xkbcomp/ast-build: fix memory leak when appending multi-keysyms
`syms` was not freed. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/darray.h')
-rw-r--r--src/darray.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/darray.h b/src/darray.h
index be0319f..5896d21 100644
--- a/src/darray.h
+++ b/src/darray.h
@@ -110,6 +110,9 @@ typedef darray (unsigned long) darray_ulong;
#define darray_copy(arr_to, arr_from) \
darray_from_items((arr_to), (arr_from).item, (arr_from).size)
+#define darray_concat(arr_to, arr_from) \
+ darray_append_items((arr_to), (arr_from).item, (arr_from).size)
+
/*** String buffer ***/
#define darray_append_string(arr, str) do { \