aboutsummaryrefslogtreecommitdiffstats
path: root/src/librarian.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-03 14:41:27 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-03 14:41:27 +0100
commitd571b24d1b5da0efa5af5c5f9f1da6321101aa80 (patch)
treeb3dd8004464a17e1f93aa3c1e13be5a4e0e0e491 /src/librarian.c
parentm (diff)
downloadlibrarian-d571b24d1b5da0efa5af5c5f9f1da6321101aa80.tar.gz
librarian-d571b24d1b5da0efa5af5c5f9f1da6321101aa80.tar.bz2
librarian-d571b24d1b5da0efa5af5c5f9f1da6321101aa80.tar.xz
fix memory leak
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/librarian.c')
-rw-r--r--src/librarian.c4
1 files 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;
}