diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-06 00:42:17 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-06 00:42:17 +0000 |
commit | 1ead0d24c674329132e63a61d72387148fa99a33 (patch) | |
tree | e9c504f76da629d7295dd901d24c6bc384c37e29 /libpqpp | |
parent | Fix connection leak on connect failure (diff) | |
download | libdbpp-postgresql-1ead0d24c674329132e63a61d72387148fa99a33.tar.bz2 libdbpp-postgresql-1ead0d24c674329132e63a61d72387148fa99a33.tar.xz libdbpp-postgresql-1ead0d24c674329132e63a61d72387148fa99a33.zip |
Fix leak of error message in exception
Diffstat (limited to 'libpqpp')
-rw-r--r-- | libpqpp/error.cpp | 1 |
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 * |