mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
f1dceb0919
Fixes this bug in particular: https://sourceforge.net/p/curlftpfs/bugs/70/
12 lines
306 B
Diff
12 lines
306 B
Diff
--- 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);
|
|
}
|
|
|