blob: 2a0bd152db8f8b83ae777f838dcba4733c9755bc (
plain)
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
|
From ee9552214018abf79ec110cfb1c680776294c64e Mon Sep 17 00:00:00 2001
From: fharvey <fharvey@36e7e03e-8437-11dd-8f23-d9c8888c2974>
Date: Sun, 1 Oct 2006 13:55:18 +0000
Subject: [PATCH] Fix segfault. Close #15 and #44
---
src/irc_server.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/irc_server.c b/src/irc_server.c
index 4ffdfca..a694ab2 100644
--- a/src/irc_server.c
+++ b/src/irc_server.c
@@ -587,9 +587,10 @@ static int _ircserver_gotmsg(struct ircproxy *p, const char *str) {
;
if (strcmp(ss->str,s->str)) // this line is not already present
ss->next = s;
- else
+ else {
free(s->str);
free(s);
+ }
} else {
p->serversupported = s;
}
|