diff options
author | jdolecek <jdolecek> | 2002-06-30 21:31:24 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2002-06-30 21:31:24 +0000 |
commit | 6b06d14d6cd787fb5b8f28da1385896a6e8ca2f8 (patch) | |
tree | 5a7ab42582ff79af169cdea85a076c28190bfa90 /games | |
parent | 8a6fa3fab209c35d19821b873a45710024c400b0 (diff) | |
download | pkgsrc-6b06d14d6cd787fb5b8f28da1385896a6e8ca2f8.tar.gz |
kmahjogg: fix one place where memory was read after it was freed; this
previously crashed with MALLOC_OPTIONS=J
Diffstat (limited to 'games')
-rw-r--r-- | games/kdegames2/distinfo | 3 | ||||
-rw-r--r-- | games/kdegames2/patches/patch-aa | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/games/kdegames2/distinfo b/games/kdegames2/distinfo index fe895706be8..c39ca3faee0 100644 --- a/games/kdegames2/distinfo +++ b/games/kdegames2/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.4 2001/12/03 15:37:16 skrll Exp $ +$NetBSD: distinfo,v 1.5 2002/06/30 21:31:24 jdolecek Exp $ SHA1 (kdegames-2.2.2.tar.bz2) = 7f569c59053854396e364c1448c9ec9ce6ef0ed6 Size (kdegames-2.2.2.tar.bz2) = 8828605 bytes +SHA1 (patch-aa) = e5c3c0927f29a3f57af70b6c1012dc830d7e806e diff --git a/games/kdegames2/patches/patch-aa b/games/kdegames2/patches/patch-aa new file mode 100644 index 00000000000..7b6dcf254e8 --- /dev/null +++ b/games/kdegames2/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.3 2002/06/30 21:31:26 jdolecek Exp $ + +--- kmahjongg/HighScore.cpp.orig Sun Jun 30 23:21:56 2002 ++++ kmahjongg/HighScore.cpp Sun Jun 30 23:22:09 2002 +@@ -183,12 +183,14 @@ + + HighScore::~HighScore() + { +- TableInstance *t; ++ TableInstance *t, *tn; + + if (tables != NULL) { +- for (t = tables; t != NULL; t=t->next) ++ for (t = tables; t != NULL; t = tn) { ++ tn = t->next; + if (t != NULL) + delete t; ++ } + } + tables = NULL; + } |