From 6c8ccbd73a9b39fef78d15ee0b3dbb310cc87b8f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Mar 2019 06:40:33 +0530 Subject: [PATCH] ... --- kittens/choose/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/choose/main.c b/kittens/choose/main.c index f84f1cb11..85ee5995e 100644 --- a/kittens/choose/main.c +++ b/kittens/choose/main.c @@ -130,7 +130,7 @@ run_search(Options *opts, GlobalData *global, const char * const *lines, const s ALLOC_VEC(text_t, chars, 8192 * 20); if (chars.data == NULL) return 1; ALLOC_VEC(Candidate, candidates, 8192); - if (candidates.data == NULL) { FREE_VEC(candidates) return 1; } + if (candidates.data == NULL) { FREE_VEC(chars) return 1; } for (size_t i = 0; i < num_lines; i++) { sz = sizes[i];