From: Adam Dickmeiss Date: Tue, 7 May 2002 11:00:58 +0000 (+0000) Subject: Fixed memory leak (for proxy op) X-Git-Tag: YAZ.1.8.7.CCL~9 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=6361856cbc8d8ddd689ce877dfb04c939504da03 Fixed memory leak (for proxy op) --- diff --git a/zoom/zoom-c.c b/zoom/zoom-c.c index fdc1d74..2136dab 100644 --- a/zoom/zoom-c.c +++ b/zoom/zoom-c.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-c.c,v 1.25 2002-05-06 07:33:50 adam Exp $ + * $Id: zoom-c.c,v 1.26 2002-05-07 11:00:58 adam Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -16,6 +16,8 @@ #include #endif +static int ZOOM_connection_send_init (ZOOM_connection c); + static ZOOM_Event ZOOM_Event_create (int kind) { ZOOM_Event event = (ZOOM_Event) xmalloc (sizeof(*event)); @@ -331,6 +333,9 @@ void ZOOM_connection_destroy(ZOOM_connection c) ZOOM_options_destroy (c->options); ZOOM_connection_remove_tasks (c); xfree (c->host_port); + xfree (c->proxy); + xfree (c->cookie_out); + xfree (c->cookie_in); xfree (c); }