From 076a2e8b68b2a6efd9494f3e61906feab77f7533 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 22 Sep 2003 13:04:52 +0000 Subject: [PATCH] Destroy half-created ZOOM-C result-set on failure, thanks to Phil Dennis --- zoom/zrs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zoom/zrs.cpp b/zoom/zrs.cpp index e290cb2..aa8ae41 100644 --- a/zoom/zrs.cpp +++ b/zoom/zrs.cpp @@ -1,4 +1,4 @@ -// $Header: /home/cvsroot/yaz++/zoom/zrs.cpp,v 1.5 2003-07-02 10:25:13 adam Exp $ +// $Header: /home/cvsroot/yaz++/zoom/zrs.cpp,v 1.6 2003-09-22 13:04:52 mike Exp $ // Z39.50 Result Set class @@ -14,6 +14,7 @@ namespace ZOOM { const char *addinfo; if ((errcode = ZOOM_connection_error(yazc, &errmsg, &addinfo)) != 0) { + ZOOM_resultset_destroy(rs); throw bib1Exception(errcode, addinfo); } } -- 1.7.10.4