diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index 7e39fef..b322699 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -466,7 +466,7 @@ sw buf_parse_brackets (s_buf *buf, s_call *dest)
buf_save_restore_rpos(buf, &save);
call_clean(&tmp);
clean:
- list_delete(dimensions);
+ list_delete_all(dimensions);
buf_save_clean(buf, &save);
return r;
}