Raised This Month: $ Target: $400
 0% 

Does dbi_free_result need to be called here....


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 02-17-2005 , 15:44   Does dbi_free_result need to be called here....
Reply With Quote #1

Code:
            ret = dbi_query(sql, query);                         /* Check for errors */             if ( ret < RESULT_NONE )             {                 new err[255];                 new errNum = dbi_error(sql, err, 254);                 log_amx("[%s] SQL Error: %s (%d)", g_MOD, err, errNum);                 client_print(admin_id, msgType, "[%s] An error has occurred when attempting to ban %s, please contact your server administrator", g_MOD);                 return;             }             dbi_free_result(ret);

Should dbi_free_result be called before the return as well?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode