vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 50324c5b7be0e25e3b0f4b3b429a324959f94cdb
parent 6ca8ccd0b978d0bcdca9a5de888ce9e568fb9efa
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 13 May 2020 09:12:17 +0200

test/core: fix memory leak in array test

Diffstat:
Mcore/array-test.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/core/array-test.c b/core/array-test.c @@ -146,6 +146,7 @@ static void test_pointers(void) { ok(array_add(&arr, &byte) && (ptr = array_get(&arr, 0)) && *ptr == byte, "Add byte element"); ok(!array_get_ptr(&arr, 0) && errno == ENOTSUP, "Get pointer from non-pointer array"); + array_release(&arr); array_init(&arr); ok(array_length(&arr) == 0 && array_get_ptr(&arr, 0) == NULL && errno == EINVAL,