blob: 38a77ac9a6641a96c19701e41f2cd419939307c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Fix a memory leak. See Bug #587250.
--- a/ftpfs.c 2008-04-30 01:05:47.000000000 +0200
+++ a/ftpfs.c.slesimple 2010-01-01 22:12:10.000000000 +0100
@@ -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);
}
|