From d571b24d1b5da0efa5af5c5f9f1da6321101aa80 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 3 Dec 2015 14:41:27 +0100 Subject: fix memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/librarian.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librarian.c b/src/librarian.c index 5c34e56..7c1bd8f 100644 --- a/src/librarian.c +++ b/src/librarian.c @@ -760,8 +760,8 @@ int main(int argc, char *argv[]) free_this[free_this_ptr++] = data, data = NULL; } if (f_locate) { - while (found_files_count) - t (printf("%s\n", found_files[--found_files_count].path) < 0); + for (n = 0; n < found_files_count; n++) + t (printf("%s\n", found_files[n].path) < 0); goto done; } -- cgit v1.2.3-70-g09d2