Commit 477dde8e authored by Patrice Mandin's avatar Patrice Mandin

Use correct function to free allocated mem

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402068
parent bf2a2d71
...@@ -222,7 +222,7 @@ CheckMounts(const char *mtab) ...@@ -222,7 +222,7 @@ 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, ',');
...@@ -233,7 +233,7 @@ CheckMounts(const char *mtab) ...@@ -233,7 +233,7 @@ 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