From: Adam Dickmeiss Date: Fri, 1 Jun 2012 07:03:51 +0000 (+0200) Subject: zoom: fix connect options (bad free) X-Git-Tag: v4.2.34~8 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=665d20fd5ce32ae2177ed17ace8a893aec375bb1;p=yaz-moved-to-github.git zoom: fix connect options (bad free) --- diff --git a/src/zoom-c.c b/src/zoom-c.c index e763918..667edb3 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -477,8 +477,9 @@ ZOOM_API(void) } if (remainder != c->host_port) { + remainder = xstrdup(remainder); xfree(c->host_port); - c->host_port = xstrdup(remainder); + c->host_port = remainder; /*printf("# reset hp='%s'\n", remainder);*/ } }