X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frequestq.c;h=222b2d2b26975f5aa70226dff353e096b65de8ca;hp=41517d91102094413ad5140b6e361ac4bbf77f0e;hb=fcea26f3542a6097ad258cdbb6e57565366d5f35;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/src/requestq.c b/src/requestq.c index 41517d9..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-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** @@ -91,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; }