Skip to content

Commit 831f02e

Browse files
committed
Fix file handle leak in history code.
Fixes issue #1 Reported by James Turner.
1 parent de81907 commit 831f02e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

history.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ proceed_history(void) {
211211
if (SIMPLEQ_EMPTY(&hf->hf_tasks) &&
212212
hf->hf_last_access < time(NULL)) {
213213
LIST_REMOVE(hf, hf_entry);
214+
close(hf->hf_fd);
214215
free(hf->hf_path);
215216
free(hf);
216217
}

0 commit comments

Comments
 (0)