diff options
| author | 2006-10-22 00:07:20 +0000 | |
|---|---|---|
| committer | 2006-10-22 00:07:20 +0000 | |
| commit | 3136e030975ad14a7d883bfd1f7dcfd520932a91 (patch) | |
| tree | 1152ece7a669507c8c189b990a6ff8a4ac0478a8 /src/modules/extra/m_pgsql.cpp | |
| parent | Dont allow people to add censor words containing spaces silently to the censo... (diff) | |
Oops, memory leaks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5512 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index e1f7d8900..1bd19e964 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -1168,13 +1168,13 @@ SQLerror SQLConn::DoQuery(SQLrequest &req) { Instance->Log(DEBUG, "Dispatched query successfully"); qinprog = true; - DELETE(query); + delete[] query; return SQLerror(); } else { Instance->Log(DEBUG, "Failed to dispatch query: %s", PQerrorMessage(sql)); - DELETE(query); + delete[] query; return SQLerror(QSEND_FAIL, PQerrorMessage(sql)); } } |
