projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5220a
)
add_one_audio_file(): Fix an fd leak.
author
Andre Noll
<maan@systemlinux.org>
Thu, 13 Nov 2008 19:14:56 +0000
(20:14 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Thu, 13 Nov 2008 19:14:56 +0000
(20:14 +0100)
This bug bites if one tries to add more than 1024 new files with a single add
command.
aft.c
patch
|
blob
|
history
diff --git
a/aft.c
b/aft.c
index 1b23823e77dd34bcc7acd11dba6e6eca2d56d7db..2d40c235df8cf51fab7c2134e6bce1499769c9bf 100644
(file)
--- a/
aft.c
+++ b/
aft.c
@@
-1816,6
+1816,7
@@
static int add_one_audio_file(const char *path, void *private_data)
afhi_ptr = &afhi;
}
munmap(map.data, map.size);
+ close(fd);
if (pad->flags & ADD_FLAG_VERBOSE) {
send_ret = send_va_buffer(pad->fd, "adding %s\n", path);
if (send_ret < 0)