about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/curlftpfs/suse-bug-955687.patch
blob: b198c586e0cb1234f17bfae53ccfe9b3c1ab75c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/ftpfs.c
+++ b/ftpfs.c
@@ -614,6 +614,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);
 }