diff options
Diffstat (limited to 'games/frotz/sfrotz.memcorrupt.diff')
-rw-r--r-- | games/frotz/sfrotz.memcorrupt.diff | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/games/frotz/sfrotz.memcorrupt.diff b/games/frotz/sfrotz.memcorrupt.diff new file mode 100644 index 0000000000..a7d49a1ac7 --- /dev/null +++ b/games/frotz/sfrotz.memcorrupt.diff @@ -0,0 +1,19 @@ +diff -Naur -x '.*.swp' frotz-2.52/src/sdl/sf_util.c frotz-2.52.patched/src/sdl/sf_util.c +--- frotz-2.52/src/sdl/sf_util.c 2020-05-10 19:51:48.000000000 -0400 ++++ frotz-2.52.patched/src/sdl/sf_util.c 2020-12-16 18:33:26.144268039 -0500 +@@ -380,7 +380,6 @@ + static char *new_dirname(const char *path) + { + char *p = strdup(path), *p2 = strdup(dirname(p)); +- free(p); + return p2; + } + +@@ -392,7 +391,6 @@ + static char *new_basename(const char *path) + { + char *p = strdup(path), *p2 = strdup(basename(p)); +- free(p); + return p2; + } + |