Skip to content

Commit

Permalink
Use correct function to free allocated mem
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Sep 5, 2006
1 parent e9c5383 commit 0f50748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdrom/linux/SDL_syscdrom.c
Expand Up @@ -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, ',');
Expand All @@ -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, ',');
Expand Down

0 comments on commit 0f50748

Please sign in to comment.