diff --git a/libkc3/kc3.c b/libkc3/kc3.c
index 1454edf..fbc1f67 100644
--- a/libkc3/kc3.c
+++ b/libkc3/kc3.c
@@ -664,7 +664,7 @@ s_str * kc3_system (const s_list * const *list, s_str *dest)
assert(! "kc3_system: empty argument list");
return NULL;
}
- argv = alloc((len + 1) * sizeof(char *));
+ argv = alloc_map((len + 1) * sizeof(char *));
a = argv;
l = *list;
while (l) {
@@ -717,8 +717,9 @@ s_str * kc3_system (const s_list * const *list, s_str *dest)
clean:
while (a > argv) {
a--;
- free(*a);
+ alloc_free(*a);
}
+ alloc_unmap(argv, (len + 1) * sizeof(char *));
return r;
#endif
}
diff --git a/test/Makefile b/test/Makefile
index 9b23a4d..b71676b 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -130,16 +130,16 @@ test_cov:
time ./libkc3_test_cov
IKC3=${SRC_TOP}/ikc3/ikc3_cov time ./ikc3_test
KC3S=${SRC_TOP}/kc3s/kc3s_cov time ./ekc3_test
- IKC3=${SRC_TOP}/ikc3s/ikc3s_cov time ./json_test
- IKC3=${SRC_TOP}/ikc3s/ikc3s_cov time ./markdown_test
+ IKC3=${SRC_TOP}/ikc3/ikc3_cov time ./json_test
+ IKC3=${SRC_TOP}/ikc3/ikc3_cov time ./markdown_test
KC3S=${SRC_TOP}/kc3s/kc3s_cov time ./http_test
test_debug: libkc3_test_debug
time ./libkc3_test_debug
IKC3=${SRC_TOP}/ikc3/ikc3_debug time ./ikc3_test
KC3S=${SRC_TOP}/kc3s/kc3s_debug time ./ekc3_test
- IKC3=${SRC_TOP}/ikc3s/ikc3s_debug time ./json_test
- IKC3=${SRC_TOP}/ikc3s/ikc3s_debug time ./markdown_test
+ IKC3=${SRC_TOP}/ikc3/ikc3_debug time ./json_test
+ IKC3=${SRC_TOP}/ikc3/ikc3_debug time ./markdown_test
KC3S=${SRC_TOP}/kc3s/kc3s_debug time ./http_test
test_ekc3: