summaryrefslogtreecommitdiff
path: root/system/curlftpfs/patches/curlftpfs-0.9.2-memleak-591298.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/curlftpfs/patches/curlftpfs-0.9.2-memleak-591298.patch')
-rw-r--r--system/curlftpfs/patches/curlftpfs-0.9.2-memleak-591298.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/curlftpfs/patches/curlftpfs-0.9.2-memleak-591298.patch b/system/curlftpfs/patches/curlftpfs-0.9.2-memleak-591298.patch
new file mode 100644
index 0000000000..94f46ba5c3
--- /dev/null
+++ b/system/curlftpfs/patches/curlftpfs-0.9.2-memleak-591298.patch
@@ -0,0 +1,15 @@
+@@ -, +, @@
+---
+ ftpfs.c | 2 2 + 0 - 0 !
+ 1 file changed, 2 insertions(+)
+--- b/ftpfs.c
++++ b/ftpfs.c
+@@ -615,6 +615,8 @@ static void free_ftpfs_file(struct ftpfs
+ sem_destroy(&fh->data_need);
+ sem_destroy(&fh->data_written);
+ sem_destroy(&fh->ready);
++ if (fh->buf.size) { buf_free(&fh->buf); }
++ if (fh->stream_buf.size) { buf_free(&fh->stream_buf); }
+ free(fh);
+ }
+