Package: xonix / 1.4-31

10-makefile=11-x11.c-CAN-2004-0157-and-other=13-double-free.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From b02d1841b859ce4a8c193cb8be1a88bc61ed2612 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Thu, 21 Apr 2011 10:18:48 +0300
Subject: [PATCH] Remove extra free() call
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/x11.c b/x11.c
index 03d56fc..514b43e 100644
--- a/x11.c
+++ b/x11.c
@@ -1062,7 +1062,7 @@ DisplayHighScore(void)
 
   if((high = freopen(PATH_HIGHSCORE, "w",high)) == NULL) {
     fprintf(stderr, "xonix: cannot reopen high score file\n");
-    free(fullname);
+    /* free(fullname); */
     gameover_pending = 0;
     return;
   }
-- 
1.7.4.1