Ack, but just return error instead of goto error_exit.
On Mon, May 11, 2009 at 05:52:15PM +0200, Jan Friesse wrote: > --- > trunk/lib/msg.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/trunk/lib/msg.c b/trunk/lib/msg.c > index 33a81af..df2655d 100644 > --- a/trunk/lib/msg.c > +++ b/trunk/lib/msg.c > @@ -684,6 +684,11 @@ saMsgQueueClose ( > goto error_put; /* ! */ > } > > + /*No Error -> destroy handle*/ > + hdb_handle_put (&queueHandleDatabase, queueHandle); > + hdb_handle_destroy (&queueHandleDatabase, queueHandle); > + > + goto error_exit; > error_put: > hdb_handle_put (&queueHandleDatabase, queueHandle); > error_exit: > -- > 1.5.5.6 > > _______________________________________________ > Openais mailing list > Openais@lists.linux-foundation.org > https://lists.linux-foundation.org/mailman/listinfo/openais _______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais