From: SourceForge.net <no...@so...> - 2007-02-01 13:49:27
|
Bugs item #1649789, was opened at 2007-02-01 08:49 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=532251&aid=1649789&group_id=71730 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HPI Utils Group: 2.8.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Renier Morales (renierm) Assigned to: Renier Morales (renierm) Summary: entity path memory leak Initial Comment: --- openhpi-2.6.3/utils/epath_utils.c.orig 2007-01-24 23:43:02.960349000 +0200 +++ openhpi-2.6.3/utils/epath_utils.c 2007-01-25 12:16:44.454987000 +0200 @@ -137,6 +137,8 @@ SaErrorT oh_encode_entitypath(const gcha epath_list = g_slist_prepend(epath_list, (gpointer)entityptr); } num_entities++; + g_strfreev(epathvalues); + epathvalues = NULL; } /* Initialize and write HPI entity path structure */ @@ -162,7 +164,7 @@ SaErrorT oh_encode_entitypath(const gcha CLEANUP: g_free(gstr); g_strfreev(epathdefs); - g_strfreev(epathvalues); + if (epathvalues) g_strfreev(epathvalues); lst = epath_list; while (lst != NULL) { free(lst->data); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=532251&aid=1649789&group_id=71730 |