You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
Assignee: mfriedrich
Status: Resolved (closed on 2012-11-09 16:55:00 +00:00)
Target Version: 1.8.2
Last Update: 2014-12-08 14:46:50 +00:00 (in Redmine)
Icinga Version: 1.10.0
OS Version: any
ido2db_get_cached_object_ids does issue a select of all object_ids in the database, but within the while loop idi->dbinfo.dbi_result is freed and set to NULL preventing retrieval of any object_ids beyond the first. This step should only be called if the dbi_result_next_row returns 0. dbi_result_free should be called even if the SELECT call does return IDO_ERROR.
Additionaly dbi_result_get_string_copy (returns an allocated string) is handed over to ido2db_add_cached_object_id which created it's own allocated string via strdup. This leaks memory. As this function is only called during startup phase, the memory does not grow over time and the leaked memory is minimal.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3409
Created by abraxas on 2012-10-29 02:35:43 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2012-11-09 16:55:00 +00:00)
Target Version: 1.8.2
Last Update: 2014-12-08 14:46:50 +00:00 (in Redmine)
ido2db_get_cached_object_ids does issue a select of all object_ids in the database, but within the while loop idi->dbinfo.dbi_result is freed and set to NULL preventing retrieval of any object_ids beyond the first. This step should only be called if the dbi_result_next_row returns 0. dbi_result_free should be called even if the SELECT call does return IDO_ERROR.
Additionaly dbi_result_get_string_copy (returns an allocated string) is handed over to ido2db_add_cached_object_id which created it's own allocated string via strdup. This leaks memory. As this function is only called during startup phase, the memory does not grow over time and the leaked memory is minimal.
Changesets
2012-10-29 18:59:49 +00:00 by mfriedrich 60124e9
2012-10-29 19:17:36 +00:00 by mfriedrich 74dea3f
The text was updated successfully, but these errors were encountered: