X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frequestq.c;h=9af3fe1018986af6aeaa04a9003aaa1b27a592d7;hp=2c93d92084b62ae54f674b0f7cab8deac177ea32;hb=08cbe0ceed43df90c48a5863de2f1b72cca67cb2;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/requestq.c b/src/requestq.c index 2c93d92..9af3fe1 100644 --- a/src/requestq.c +++ b/src/requestq.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 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; }