Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use correct function to free allocated mem

  • Loading branch information
pmandin committed Sep 5, 2006
1 parent aa97ae7 commit ead5515abf3a412e75f49eb913d25535d3154a5b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cdrom/linux/SDL_syscdrom.c
@@ -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, ',');
@@ -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, ',');

0 comments on commit ead5515

Please sign in to comment.