From 42b455d449f83a7af4a2c51d0e6fac16ac8b9c60 Mon Sep 17 00:00:00 2001 From: wntrmute Date: Sun, 21 Mar 2010 11:09:34 +0000 Subject: [PATCH] add new elements for devkitARM r29, use internal deallocaters git-svn-id: https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libfat@4025 258c5a1a-4f63-435d-9564-e8f6d34ab52c --- source/libfat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/libfat.c b/source/libfat.c index 71af368..09aae70 100644 --- a/source/libfat.c +++ b/source/libfat.c @@ -61,7 +61,9 @@ static const devoptab_t dotab_fat = { _FAT_statvfs_r, _FAT_ftruncate_r, _FAT_fsync_r, - NULL /* Device data */ + NULL, /* Device data */ + NULL, + NULL }; bool fatMount (const char* name, const DISC_INTERFACE* interface, sec_t startSector, uint32_t cacheSize, uint32_t SectorsPerPage) { @@ -220,11 +222,11 @@ void fatGetVolumeLabel (const char* name, char *label) { for(i=0;buf[i]!='\0' && buf[i]!=':';i++); if (!devops || strncasecmp(buf,devops->name,i)) { - free(buf); + _FAT_mem_free(buf); return; } - free(buf); + _FAT_mem_free(buf); // Perform a quick check to make sure we're dealing with a libfat controlled device if (devops->open_r != dotab_fat.open_r) { -- 2.11.4.GIT