aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c')
-rw-r--r--sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c b/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c
new file mode 100644
index 000000000000..42f6e1c4ee12
--- /dev/null
+++ b/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c
@@ -0,0 +1,19 @@
+--- ./ftpfs.c.orig 2008-04-30 01:05:47.000000000 +0200
++++ ./ftpfs.c 2010-01-08 19:14:39.000000000 +0100
+@@ -611,10 +611,12 @@
+ curl_easy_cleanup(fh->write_conn);
+ g_free(fh->full_path);
+ g_free(fh->open_path);
+- sem_destroy(&fh->data_avail);
+- sem_destroy(&fh->data_need);
+- sem_destroy(&fh->data_written);
+- sem_destroy(&fh->ready);
++ if (fh->data_avail) {
++ sem_destroy(&fh->data_avail);
++ sem_destroy(&fh->data_need);
++ sem_destroy(&fh->data_written);
++ sem_destroy(&fh->ready);
++ }
+ free(fh);
+ }
+