• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/curlftpfs/0002-free_ftpfs_file-memleak-fix.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Borrowed from the curlftpfs_0.9.2-5 Debian package.
2
​
3
Fix a memory leak. See Bug #587250.
4
--- a/ftpfs.c   2008-04-30 01:05:47.000000000 +0200
5
+++ a/ftpfs.c.slesimple 2010-01-01 22:12:10.000000000 +0100
6
@@ -615,6 +615,8 @@ static void free_ftpfs_file(struct ftpfs
7
   sem_destroy(&fh->data_need);
8
   sem_destroy(&fh->data_written);
9
   sem_destroy(&fh->ready);
10
+  if (fh->buf.size) { buf_free(&fh->buf); }
11
+  if (fh->stream_buf.size) { buf_free(&fh->stream_buf); }
12
   free(fh);
13
 }
14
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.