projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 4.2.58
[yaz-moved-to-github.git]
/
src
/
requestq.c
diff --git
a/src/requestq.c
b/src/requestq.c
index
82d7ba3
..
222b2d2
100644
(file)
--- a/
src/requestq.c
+++ b/
src/requestq.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-9,6
+9,9
@@
* We also use the request-freelist to store encoding buffers, rather than
* freeing and xmalloc'ing them on each cycle.
*/
* We also use the request-freelist to store encoding buffers, rather than
* freeing and xmalloc'ing them on each cycle.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <stdlib.h>
@@
-88,6
+91,8
@@
request *request_get(request_q *q)
void request_release(request *r)
{
request_q *q = r->q;
void request_release(request *r)
{
request_q *q = r->q;
+ if (r->request_mem)
+ nmem_destroy(r->request_mem);
r->next = q->list;
q->list = r;
}
r->next = q->list;
q->list = r;
}