summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-06 00:42:17 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-06 00:42:17 +0000
commitb0e167626a80d4d553630fed99c677b04cfd6e63 (patch)
tree4b3b2b63989883faab7a098de0ef23ba9bd08048 /libpqpp
parentFix connection leak on connect failure (diff)
downloadlibdbpp-postgresql-b0e167626a80d4d553630fed99c677b04cfd6e63.tar.bz2
libdbpp-postgresql-b0e167626a80d4d553630fed99c677b04cfd6e63.tar.xz
libdbpp-postgresql-b0e167626a80d4d553630fed99c677b04cfd6e63.zip
Fix leak of error message in exceptionlibdbpp-postgresql-0.9.3
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/error.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpqpp/error.cpp b/libpqpp/error.cpp
index 8664b70..f2bebd6 100644
--- a/libpqpp/error.cpp
+++ b/libpqpp/error.cpp
@@ -18,6 +18,7 @@ PQ::Error::Error(const char * e) :
PQ::Error::~Error() throw()
{
+ free(msg);
}
const char *