projects
/
yazpp-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd8945
)
Fix reosurce leak on connection failure, thanks to Phil Dennis <phil@booksys.com>
author
Mike Taylor
<mike@indexdata.com>
Mon, 22 Sep 2003 12:25:20 +0000
(12:25 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 22 Sep 2003 12:25:20 +0000
(12:25 +0000)
zoom/zconn.cpp
patch
|
blob
|
history
diff --git
a/zoom/zconn.cpp
b/zoom/zconn.cpp
index
17773c8
..
3b3137a
100644
(file)
--- a/
zoom/zconn.cpp
+++ b/
zoom/zconn.cpp
@@
-1,4
+1,4
@@
-// $Header: /home/cvsroot/yaz++/zoom/zconn.cpp,v 1.5 2003-07-02 10:25:13 adam Exp $
+// $Header: /home/cvsroot/yaz++/zoom/zconn.cpp,v 1.6 2003-09-22 12:25:20 mike Exp $
// Z39.50 Connection class
@@
-17,6
+17,7
@@
namespace ZOOM {
const char *addinfo;
if ((errcode = ZOOM_connection_error(c, &errmsg, &addinfo)) != 0) {
//###cerr << "oops: no connect, errcode=" << errcode << "\n";
+ ZOOM_connection_destroy(c);
throw bib1Exception(errcode, addinfo);
}
}