[Kamailio-Devel] SF.net SVN: openser:[5250] trunk/modules/db_postgres/val.c

Henning Westerholt henning.westerholt at 1und1.de
Mon Nov 24 18:38:47 CET 2008


Revision: 5250
          http://openser.svn.sourceforge.net/openser/?rev=5250&view=rev
Author:   henningw
Date:     2008-11-24 17:38:46 +0000 (Mon, 24 Nov 2008)

Log Message:
-----------
- fix memory leak in db_postgres module related to BLOBs (also caused an
  abort in a assertion when DBG_QM_MALLOC memory manager is used)
- PQunescapeBytea is used for BLOBs, this allocates new memory, which could
  not freed from us later in pkg_free in the DB core
- thus we need to allocate new memory for this datatype, copy the string and
  free the postgres result after that
- small comment fix

Modified Paths:
--------------
    trunk/modules/db_postgres/val.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list