X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Frequestq.c;h=222b2d2b26975f5aa70226dff353e096b65de8ca;hb=3ae80066499b6ec541c8f474654668f65f0f1c3c;hp=82d7ba33cef0500b2ed3b887ee730168516e6698;hpb=f00d2bb50f84184c7682bd31a5361648a909f9f6;p=yaz-moved-to-github.git diff --git a/src/requestq.c b/src/requestq.c index 82d7ba3..222b2d2 100644 --- a/src/requestq.c +++ b/src/requestq.c @@ -1,5 +1,5 @@ /* 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. */ /** @@ -9,6 +9,9 @@ * 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 +#endif #include @@ -88,6 +91,8 @@ request *request_get(request_q *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; }