summaryrefslogtreecommitdiff
path: root/libpqpp/unittests/testpq.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2017-01-03 15:08:13 +0000
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2017-01-03 15:16:54 +0000
commit6e7abd217d022af8e5841cf35ed6634a69ac92af (patch)
treeac0109f193d72da56b60a16b726a424a9195f1bc /libpqpp/unittests/testpq.cpp
parentRefactor to remove some duplication (diff)
downloadlibdbpp-postgresql-6e7abd217d022af8e5841cf35ed6634a69ac92af.tar.bz2
libdbpp-postgresql-6e7abd217d022af8e5841cf35ed6634a69ac92af.tar.xz
libdbpp-postgresql-6e7abd217d022af8e5841cf35ed6634a69ac92af.zip
Add missing delete showing false memory leak
Diffstat (limited to 'libpqpp/unittests/testpq.cpp')
-rw-r--r--libpqpp/unittests/testpq.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp
index 0d8720c..15ea022 100644
--- a/libpqpp/unittests/testpq.cpp
+++ b/libpqpp/unittests/testpq.cpp
@@ -284,6 +284,7 @@ BOOST_AUTO_TEST_CASE( statementReuse )
assertColumnValueHelper(*select, 0, 16);
assertColumnValueHelper(*select, 1, 24);
}
+ delete select;
delete ro;
}