From a18fa159a8b538ca0e6513a0c2051ac178302bd6 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sat, 1 Sep 2018 18:14:08 +0900 Subject: [PATCH] =?utf8?q?=E3=83=8F=E3=83=83=E3=82=B7=E3=83=A5=E3=81=AEfre?= =?utf8?q?e=E3=81=AE=E6=96=B9=E6=B3=95=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- src/label.c | 4 +--- src/struct.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 8338111..be4999b 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -v0.5p1 +v0.5p2 diff --git a/src/label.c b/src/label.c index 63b6fe5..e88cc90 100644 --- a/src/label.c +++ b/src/label.c @@ -166,10 +166,8 @@ void freelabel() FREE(p->label->prog); FREE(p->label->label); FREE(p->label); - if(p == labels[i]) { - labels[i] = NULL; - } FREE(p); } + labels[i] = NULL; } } diff --git a/src/struct.c b/src/struct.c index f6d4128..22a7df3 100644 --- a/src/struct.c +++ b/src/struct.c @@ -141,9 +141,9 @@ void free_cmdtable(CMDTAB_HASH hash) for(i = 0; i < CMDTABSIZE; i++) { for(p = cmdtab[hash][i]; p != NULL; p = q) { q = p->next; - cmdtab[hash][i] = NULL; FREE(p); } + cmdtab[hash][i] = NULL; } } -- 2.18.0