[Devel] db free_rows and pkg_free

Henning Westerholt henning.westerholt at 1und1.de
Tue May 8 14:16:23 CEST 2007


Hello,

i'm currently working on cleanup of the db interface, at the moment on the 
free_row and free_rows functions. I have one question regarding 
the "free_row" function:

The unixodbc and mysql modules simple call pgk_free on ROW_VALUES(db_row *). 
The postgresql module loops in the "pg_free_rows" function through each 
collumn, and frees only DB_STRING values, according the comments to prevent 
memory leaks.

Which behaviour is correct, or if booth, what should i choose for the generic 
implementation? 

Thank you,

Henning



More information about the Devel mailing list