Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

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 aa97ae7 commit ead5515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdrom/linux/SDL_syscdrom.c
Expand Up @@ -222,7 +222,7 @@ 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 @@ -233,7 +233,7 @@ 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 ead5515

Please sign in to comment.