[icinga-checkins] icinga.org: icinga-core/dev/cgis: idoutils: set result handle explicitely to NULL after dbi_result_free() to prevent memory free'ing corruption #2612

git at icinga.org git at icinga.org
Wed Aug 1 03:00:28 CEST 2012


Module: icinga-core
Branch: dev/cgis
Commit: 6ff017467043473644f321a3d52709085b7f442e
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=6ff017467043473644f321a3d52709085b7f442e

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Jul 31 18:21:55 2012 +0200

idoutils: set result handle explicitely to NULL after dbi_result_free() to prevent memory free'ing corruption #2612

dbi_result_free() only free's the memory but the handle pointer is still
not reset to NULL (same as free()). setting that explicitely to NULL so
that there won't be any bad happenings on corrupted memory free'ing.

dedicated to shroud :p

<shroud> dreckscode

refs #2612

---

 Changelog                        |    3 ++
 module/idoutils/src/db.c         |   12 ++++++
 module/idoutils/src/dbhandlers.c |   75 +++++++++++++++++++++++++++++++++++++-
 module/idoutils/src/ido2db.c     |    2 -
 module/idoutils/src/sla.c        |    8 ++++
 5 files changed, 96 insertions(+), 4 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=6ff017467043473644f321a3d52709085b7f442e




More information about the icinga-checkins mailing list