From 0f50748a2fd4caa2d01149094f7fbab441eea883 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Tue, 5 Sep 2006 19:31:48 +0000 Subject: [PATCH] Use correct function to free allocated mem --- src/cdrom/linux/SDL_syscdrom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdrom/linux/SDL_syscdrom.c b/src/cdrom/linux/SDL_syscdrom.c index 4d3e70cd0..2535b2803 100644 --- a/src/cdrom/linux/SDL_syscdrom.c +++ b/src/cdrom/linux/SDL_syscdrom.c @@ -218,7 +218,7 @@ static void CheckMounts(const char *mtab) if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) { tmp = SDL_strstr(mntent->mnt_opts, "fs="); if ( tmp ) { - SDL_free(mnt_type); + SDL_stack_free(mnt_type); mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); if ( mnt_type ) { tmp = SDL_strchr(mnt_type, ','); @@ -229,7 +229,7 @@ static void CheckMounts(const char *mtab) } tmp = SDL_strstr(mntent->mnt_opts, "dev="); if ( tmp ) { - SDL_free(mnt_dev); + SDL_stack_free(mnt_dev); mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); if ( mnt_dev ) { tmp = SDL_strchr(mnt_dev, ',');