Difference between revisions of "OpenDBX/API/odbx result free"
From Linuxnetworks
(→Description:) |
|||
| Line 6: | Line 6: | ||
= Description: = | = Description: = | ||
| − | Deletes all resources allocated by odbx_result(). You must not free "result" by yourself because this will create memory leaks | + | Deletes all resources allocated by odbx_result(). You must not free "result" by yourself because this will create memory leaks but you have to call odbx_result_free() even if the statement returned no rows. This is indicated by a return value of "2" for not SELECT-like queries. |
= Parameters: = | = Parameters: = | ||
Revision as of 19:39, 1 October 2005
void odbx_result_free(
odbx_result_t* result )
Description:
Deletes all resources allocated by odbx_result(). You must not free "result" by yourself because this will create memory leaks but you have to call odbx_result_free() even if the statement returned no rows. This is indicated by a return value of "2" for not SELECT-like queries.
Parameters:
- result: Object created by odbx_result()
Return values:
- None
Errors:
- None
Back to Overview