Should sql_result_free() always be called, no matter what the circumstance, in order to discharge memory allocated to query result sets and/or metadata?

Or is it not necessary in certain situations, for example when script is broken via 'exit', i.e.

   sql_query("db", "SELECT ...", "res");

   if(! $dbr(res=>rows)) {
       # Is it necessary to call sql_result_free() here?

       sl_send_reply("404", "Not Found");
       exit;
   }

Are results implicitly freed at the end of route script execution anyway? Are they tied to transaction persistence in any way?

Thanks,

--
Alex Balashov - Principal
Evariste Systems LLC

Tel    : +1 678-954-0670
Direct : +1 678-954-0671
Web    : http://www.evaristesys.com/

_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Reply via email to