diff --git a/libcustomext2fs/source/mem_allocate.h b/libcustomext2fs/source/mem_allocate.h index 0d1132eb..4554b8b4 100644 --- a/libcustomext2fs/source/mem_allocate.h +++ b/libcustomext2fs/source/mem_allocate.h @@ -17,7 +17,8 @@ extern __inline__ void* mem_align (size_t a, size_t size) { } extern __inline__ void mem_free (void* mem) { - MEM2_free(mem); + //using normal free, it will decide which free to use (just to be on the safe side) + free(mem); } #endif /* _MEM_ALLOCATE_H */ diff --git a/libcustomfat/mem_allocate.h b/libcustomfat/mem_allocate.h index bf478c2c..622a25ab 100644 --- a/libcustomfat/mem_allocate.h +++ b/libcustomfat/mem_allocate.h @@ -43,7 +43,8 @@ static inline void* _FAT_mem_align (size_t size) { } static inline void _FAT_mem_free (void* mem) { - MEM2_free(mem); + //using normal free, it will decide which free to use (just to be on the safe side) + free(mem); } #endif // _MEM_ALLOCATE_H diff --git a/libcustomntfs/mem_allocate.h b/libcustomntfs/mem_allocate.h index f7c4ad2d..07681005 100644 --- a/libcustomntfs/mem_allocate.h +++ b/libcustomntfs/mem_allocate.h @@ -38,7 +38,8 @@ static inline void* ntfs_align (size_t size) static inline void ntfs_free (void* mem) { - MEM2_free(mem); + //using normal free, it will decide which free to use (just to be on the safe side) + free(mem); } #endif /* _MEM_ALLOCATE_H */