AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Does dbi_free_result need to be called here.... (https://forums.alliedmods.net/showthread.php?t=10374)

Geesu 02-17-2005 15:44

Does dbi_free_result need to be called here....
 
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?

twistedeuphoria 02-17-2005 16:05

Yea it should.


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

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