Commit 473f24de authored by Patrice Mandin's avatar Patrice Mandin

Use correct function to free allocated mem

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402067
parent b601827c
...@@ -218,7 +218,7 @@ static void CheckMounts(const char *mtab) ...@@ -218,7 +218,7 @@ static void CheckMounts(const char *mtab)
if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) { if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) {
tmp = SDL_strstr(mntent->mnt_opts, "fs="); tmp = SDL_strstr(mntent->mnt_opts, "fs=");
if ( tmp ) { if ( tmp ) {
SDL_free(mnt_type); SDL_stack_free(mnt_type);
mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
if ( mnt_type ) { if ( mnt_type ) {
tmp = SDL_strchr(mnt_type, ','); tmp = SDL_strchr(mnt_type, ',');
...@@ -229,7 +229,7 @@ static void CheckMounts(const char *mtab) ...@@ -229,7 +229,7 @@ static void CheckMounts(const char *mtab)
} }
tmp = SDL_strstr(mntent->mnt_opts, "dev="); tmp = SDL_strstr(mntent->mnt_opts, "dev=");
if ( tmp ) { if ( tmp ) {
SDL_free(mnt_dev); SDL_stack_free(mnt_dev);
mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
if ( mnt_dev ) { if ( mnt_dev ) {
tmp = SDL_strchr(mnt_dev, ','); tmp = SDL_strchr(mnt_dev, ',');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment