From 5c8937a751101bd52b406f3d72b20cd47f001c95 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 23 Jul 2006 10:55:19 +0000 Subject: Free, as they should be, fieldlist and/or fieldmap in destructor of PgSQLresult *if* they were allocated git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4525 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 7b452e7c6..ec44f2970 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -223,6 +223,13 @@ public: ~PgSQLresult() { + /* If we allocated these, free them... */ + if(fieldlist) + DELETE(fieldlist); + + if(fieldmap) + DELETE(fieldmap); + PQclear(res); } -- cgit v1.2.3