Use correct function to free allocated mem
authorPatrice Mandin <patmandin@gmail.com>
Tue, 05 Sep 2006 19:32:35 +0000
changeset 201841a5fc1825b9
parent 2017 df06e6eb65c6
child 2019 d20f4510c718
Use correct function to free allocated mem
src/cdrom/linux/SDL_syscdrom.c
     1.1 --- a/src/cdrom/linux/SDL_syscdrom.c	Sat Sep 02 21:50:04 2006 +0000
     1.2 +++ b/src/cdrom/linux/SDL_syscdrom.c	Tue Sep 05 19:32:35 2006 +0000
     1.3 @@ -222,7 +222,7 @@
     1.4              if (SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0) {
     1.5                  tmp = SDL_strstr(mntent->mnt_opts, "fs=");
     1.6                  if (tmp) {
     1.7 -                    SDL_free(mnt_type);
     1.8 +                    SDL_stack_free(mnt_type);
     1.9                      mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
    1.10                      if (mnt_type) {
    1.11                          tmp = SDL_strchr(mnt_type, ',');
    1.12 @@ -233,7 +233,7 @@
    1.13                  }
    1.14                  tmp = SDL_strstr(mntent->mnt_opts, "dev=");
    1.15                  if (tmp) {
    1.16 -                    SDL_free(mnt_dev);
    1.17 +                    SDL_stack_free(mnt_dev);
    1.18                      mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
    1.19                      if (mnt_dev) {
    1.20                          tmp = SDL_strchr(mnt_dev, ',');