[haiku-commits] haiku: hrev52874 - src/add-ons/kernel/file_systems/btrfs

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 15 Feb 2019 14:20:49 -0500 (EST)

hrev52874 adds 1 changeset to branch 'master'
old head: f4dca556adff9b54f53f9f82ca31e8f6add73477
new head: 50428c35add93a899f2a0760f0fc2d0722960f50
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=50428c35add9+%5Ef4dca556adff

----------------------------------------------------------------------------

50428c35add9: btrfs: Fix double-free in Inode::_Read().
  
  extent_data is now held by a MemoryDeleter, so thus with this line
  it would have been freed twice.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52874
Commit:      50428c35add93a899f2a0760f0fc2d0722960f50
URL:         https://git.haiku-os.org/haiku/commit/?id=50428c35add9
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Fri Feb 15 19:19:07 2019 UTC

----------------------------------------------------------------------------

1 file changed, 1 deletion(-)
src/add-ons/kernel/file_systems/btrfs/Inode.cpp | 1 -

----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/file_systems/btrfs/Inode.cpp 
b/src/add-ons/kernel/file_systems/btrfs/Inode.cpp
index e2474c46b7..470cc5b921 100644
--- a/src/add-ons/kernel/file_systems/btrfs/Inode.cpp
+++ b/src/add-ons/kernel/file_systems/btrfs/Inode.cpp
@@ -347,7 +347,6 @@ Inode::ReadAt(off_t pos, uint8* buffer, size_t* _length)
                panic("unknown extent compression; %d\n", compression);
                return B_BAD_DATA;
        }
-       free(extent_data);
        return B_OK;
 
 }


Other related posts:

  • » [haiku-commits] haiku: hrev52874 - src/add-ons/kernel/file_systems/btrfs - waddlesplash