From b84e6e549b17c5a23da7a413ed191e3f252fd646 Mon Sep 17 00:00:00 2001 From: dzaima Date: Tue, 1 Jun 2021 23:53:38 +0300 Subject: [PATCH] =?UTF-8?q?fix=20refcount=20in=20=E2=80=A2file.List?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/file.c b/src/utils/file.c index 3edf7eb9..e68caaf8 100644 --- a/src/utils/file.c +++ b/src/utils/file.c @@ -105,5 +105,6 @@ B file_list(B path) { char* name = c->d_name; if (name[0]=='.'? !(name[1]==0 || (name[1]=='.'&&name[2]==0)) : true) res = vec_add(res, m_str8l(name)); } + dec(path); return res; }