From: oleg Date: Sat, 24 Aug 2002 09:28:30 +0000 (+0000) Subject: Fix memory leaks, which corresponding with ODR out stream. Background: when result... X-Git-Tag: YAZ.1.9~45 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1274cfd835afa98442ac013e4556ad7b5c5f71a6;p=yaz-moved-to-github.git Fix memory leaks, which corresponding with ODR out stream. Background: when result set has created and the record retrieve from cache that the Task Retieve to invoke send_present(), which allocate present APDU. APDU. --- diff --git a/zoom/zoom-c.c b/zoom/zoom-c.c index 8364312..dcc71a3 100644 --- a/zoom/zoom-c.c +++ b/zoom/zoom-c.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-c.c,v 1.40 2002-08-20 08:19:40 adam Exp $ + * $Id: zoom-c.c,v 1.41 2002-08-24 09:28:30 oleg Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -142,6 +142,12 @@ void ZOOM_connection_remove_task (ZOOM_connection c) assert (0); } xfree (task); + /* + Fix me!!! May be it is not right place for reset of the ODR stream, + but if happens to read records from cache we will be get memory leaks + without it (see send_present()). + */ + odr_reset(c->odr_out); } }