From 2963e29f0efbc9414d6f908dcfbf57ee30dc22a9 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 12 Dec 2017 14:43:24 +0200 Subject: xkbcomp/ast-build: fix memory leak when appending multi-keysyms `syms` was not freed. Signed-off-by: Ran Benita --- src/darray.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/darray.h') 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 { \ -- cgit v1.2.1