5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
11 lines
306 B
Diff
11 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);
|
|
}
|
|
|