]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store_utils.cpp
Pass property name via const referense instead of value
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store_utils.cpp
index 28a17895b0eb770ccccf6c18813957ed586815f4..7c0755a7e3121d9f74c8020d82aa8ba9772e40d2 100644 (file)
@@ -101,7 +101,7 @@ if (error)
     {
     strError = PQerrorMessage(connection);
     printfd(__FILE__, "POSTGRESQL_STORE::EscapeString(): '%s'\n", strError.c_str());
-    delete buf;
+    delete[] buf;
     return -1;
     }