I am not sure where and how should I use mysql_free_result. Can anybody tell me if Drupal executes this function when result object destructor is called? Should I call this function manually? Does abstraction layer solves this problem?

Comments

cbearhoney’s picture

Does anyone have an answer? Does drupal have a function similar to mysql_free_result() in the abstraction layer? Is it even necessary to call?

stuchl4n3k’s picture

+1 on this

jaxxed’s picture

FOR Drupal 6

$/> egrep -nR 'free_result' *

on the whole source tree (contrib included) returns no results.

Also doing a string search on database.inc, database.mysql-common.inc, database.mysql.inc and database.mysqli.inc all return no results.

It is safe to assume that there is no free_results in the db implementation.

jaxxed’s picture

Ditto for Drupal 7 (-stable from yesterday download)