aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2004-11-06 11:35:57 +0800
committeralfred <alfred@FreeBSD.org>2004-11-06 11:35:57 +0800
commit3e9ec41a39be9a6c7b3f5562349bd165423092a9 (patch)
tree955c6a88c8f62fe40c6af2f46301def81ee5e88e
parentf3cbb008dcbbd87eeb9ccb42978f8d5974608568 (diff)
downloadfreebsd-ports-gnome-3e9ec41a39be9a6c7b3f5562349bd165423092a9.tar.gz
freebsd-ports-gnome-3e9ec41a39be9a6c7b3f5562349bd165423092a9.tar.zst
freebsd-ports-gnome-3e9ec41a39be9a6c7b3f5562349bd165423092a9.zip
Fix a double free(3) bug locally.
PR: ports/73353
-rw-r--r--devel/sdl12/files/patch-al10
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/sdl12/files/patch-al b/devel/sdl12/files/patch-al
new file mode 100644
index 000000000000..c9e196be7ec7
--- /dev/null
+++ b/devel/sdl12/files/patch-al
@@ -0,0 +1,10 @@
+--- src/joystick/bsd/SDL_sysjoystick.c Wed Feb 18 09:22:01 2004
++++ src/joystick/bsd/SDL_sysjoystick.c Sun Oct 31 06:55:00 2004
+@@ -160,6 +160,7 @@
+ SDL_numjoysticks++;
+ } else {
+ free(joynames[nj.index]);
++ joynames[nj.index] = NULL;
+ }
+ }
+ for (i = 0; i < MAX_JOY_JOYS; i++) {