diff --git a/tests/array-slice-ll.cpp b/tests/array-slice-ll.cpp index ea4e9aded..e13967aad 100644 --- a/tests/array-slice-ll.cpp +++ b/tests/array-slice-ll.cpp @@ -248,5 +248,9 @@ int main(int argc, char *argv[]) { }; // if (write_files) ... else ... + for (int n = 0; n < no; n++) { + geometric_object_destroy(objects[n]); + } + return 0; }