---
** [tickets:#1085] imm: memory leak in finalizeSync**
**Status:** unassigned
**Milestone:** 4.3.3
**Created:** Mon Sep 15, 2014 02:03 PM UTC by Zoran Milinkovic
**Last Updated:** Mon Sep 15, 2014 02:03 PM UTC
**Owner:** nobody
In ImmModel::finalize Sync, memory is not deleted for CcbInfo and
AdminOwnerInfo structs, if errors happen in the same block.
For AdminOwnerInfo:
AdminOwnerInfo* info = new AdminOwnerInfo;
...
if((info->mDying) && (!(info->mReleaseOnFinalize))) {
LOG_ER("finalizeSync client: Admo is dying yet
releaseOnFinalize is false");
err = SA_AIS_ERR_FAILED_OPERATION;
goto done;
}
...
if(oi == sObjectMap.end()) {
LOG_ER("Sync client failed to locate object: "
"%s, will restart.", objectName.c_str());
err = SA_AIS_ERR_FAILED_OPERATION;
goto done;
}
For CcbInfo:
CcbInfo* newCcb = new CcbInfo;
...
if(newCcb->mWaitStartTime <= ((time_t) 0)) {
LOG_ER("newCcb->mWaitStartTime <= 0");
err = SA_AIS_ERR_FAILED_OPERATION;
goto done;
}
...
if((newCcb->isActive())) {
LOG_ER("Can not sync Ccb that is active");
err = SA_AIS_ERR_FAILED_OPERATION;
goto done;
}
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets