summaryrefslogtreecommitdiff
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
commit1ead0d24c674329132e63a61d72387148fa99a33 (patch)
treee9c504f76da629d7295dd901d24c6bc384c37e29
parentFix connection leak on connect failure (diff)
downloadlibdbpp-postgresql-1ead0d24c674329132e63a61d72387148fa99a33.tar.bz2
libdbpp-postgresql-1ead0d24c674329132e63a61d72387148fa99a33.tar.xz
libdbpp-postgresql-1ead0d24c674329132e63a61d72387148fa99a33.zip
Fix leak of error message in exception
-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 *