projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63d53ec
)
fuse_free_buf(): to check flags of each buffer, rather than only 0th
author
Albert Chen
<hselin.chen@gmail.com>
Wed, 13 Feb 2019 09:42:15 +0000
(
01:42
-0800)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Wed, 13 Feb 2019 09:42:15 +0000
(09:42 +0000)
Fixes: #360
lib/fuse.c
[changed mode: 0644->0755]
patch
|
blob
|
history
diff --git
a/lib/fuse.c
b/lib/fuse.c
old mode 100644
(file)
new mode 100755
(executable)
index
b5f4e25
..
a40e995
--- a/
lib/fuse.c
+++ b/
lib/fuse.c
@@
-1777,7
+1777,7
@@
static void fuse_free_buf(struct fuse_bufvec *buf)
size_t i;
for (i = 0; i < buf->count; i++)
- if (!(buf->buf[
0
].flags & FUSE_BUF_IS_FD))
+ if (!(buf->buf[
i
].flags & FUSE_BUF_IS_FD))
free(buf->buf[i].mem);
free(buf);
}