mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: curlftpfs: Add patches to fix bugs.
* gnu/packages/file-systems.scm (curlftpfs)[source]: Add patches. * gnu/packages/patches/curlftpfs-fix-error-closing-file.patch, gnu/packages/patches/curlftpfs-fix-file-names.patch, gnu/packages/patches/curlftpfs-fix-memory-leak.patch, gnu/packages/patches/curlftpfs-fix-no_verify_hostname.patch: New files. * gnu/local.mk (dist_patch_DATA): Add them.
This commit is contained in:
parent
affea88cf5
commit
8244aea182
6 changed files with 159 additions and 2 deletions
23
gnu/packages/patches/curlftpfs-fix-memory-leak.patch
Normal file
23
gnu/packages/patches/curlftpfs-fix-memory-leak.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
From 2d01202eee44d8bad5bb982e72829b4a98d58bcd Mon Sep 17 00:00:00 2001
|
||||
From: Joseph Lansdowne <j49137@gmail.com>
|
||||
Date: Thu, 4 Apr 2019 20:37:06 +0100
|
||||
Subject: [PATCH] fix memory leak
|
||||
|
||||
---
|
||||
ChangeLog | 1 +
|
||||
ftpfs.c | 2 ++
|
||||
2 files changed, 3 insertions(+)
|
||||
|
||||
diff --git a/ftpfs.c b/ftpfs.c
|
||||
index 34f8c38..020e559 100644
|
||||
--- a/ftpfs.c
|
||||
+++ b/ftpfs.c
|
||||
@@ -607,6 +607,8 @@ static int finish_write_thread(struct ftpfs_file *fh)
|
||||
|
||||
|
||||
static void free_ftpfs_file(struct ftpfs_file *fh) {
|
||||
+ buf_free(&fh->buf);
|
||||
+ buf_free(&fh->stream_buf);
|
||||
if (fh->write_conn)
|
||||
curl_easy_cleanup(fh->write_conn);
|
||||
g_free(fh->full_path);
|
Loading…
Add table
Add a link
Reference in a new issue