fixed memory leak in PostgreSQL driver
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Jun 2016 08:07:53 +0000 (11:07 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Jun 2016 08:07:53 +0000 (11:07 +0300)
src/db/dbdrv/pgsql/pgsql.cpp

index 9c79685..2fa1c71 100644 (file)
@@ -924,6 +924,7 @@ extern "C" DBDRV_UNBUFFERED_RESULT EXPORT DrvSelectUnbuffered(PG_CONN *pConn, WC
       }
    }
    while(retry);
+   free(queryUTF8);
 
    if (!success)
    {