projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f9eecb
)
Fixed memory leak (setname in ZOOM_resultset)
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 18 Oct 2008 11:50:48 +0000
(13:50 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 18 Oct 2008 11:50:48 +0000
(13:50 +0200)
src/zoom-c.c
patch
|
blob
|
history
diff --git
a/src/zoom-c.c
b/src/zoom-c.c
index
1a3cf7a
..
2c12c6a
100644
(file)
--- 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;