From: Adam Dickmeiss Date: Sat, 18 Oct 2008 11:50:48 +0000 (+0200) Subject: Fixed memory leak (setname in ZOOM_resultset) X-Git-Tag: v3.0.38~22 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3a494bb11f0a2f449e4848fd17c2ee603bb2367e;p=yaz-moved-to-github.git Fixed memory leak (setname in ZOOM_resultset) --- diff --git a/src/zoom-c.c b/src/zoom-c.c index 1a3cf7a..2c12c6a 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1480,7 +1480,8 @@ static zoom_ret ZOOM_connection_srw_send_search(ZOOM_connection c) { case ZOOM_TASK_SEARCH: resultset = c->tasks->u.search.resultset; - resultset->setname = xstrdup("default"); + if (!resultset->setname) + resultset->setname = xstrdup("default"); ZOOM_options_set(resultset->options, "setname", resultset->setname); start = &c->tasks->u.search.start; count = &c->tasks->u.search.count;