--- libsdl1.2-1.2.11/src/cdrom/linux/SDL_syscdrom.c	2006-12-19 21:19:19.000000000 +0100
+++ SDL-1.2.11/src/cdrom/linux/SDL_syscdrom.c	2006-05-01 10:02:43.000000000 +0200
@@ -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_stack_free(mnt_type);
+					SDL_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_stack_free(mnt_dev);
+					SDL_free(mnt_dev);
 					mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
 					if ( mnt_dev ) {
 						tmp = SDL_strchr(mnt_dev, ',');
