From b0e167626a80d4d553630fed99c677b04cfd6e63 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 6 Dec 2015 00:42:17 +0000 Subject: Fix leak of error message in exception --- libpqpp/error.cpp | 1 + 1 file changed, 1 insertion(+) 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 * -- cgit v1.2.3