Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak in good paths in ipmid #69

Merged
merged 1 commit into from Mar 5, 2016

Conversation

vishwabmc
Copy link
Contributor

There are still leaks to be fixed in bad path.. this is a good path only.

@@ -203,6 +203,7 @@ ipmi_ret_t ipmi_app_get_device_guid(ipmi_netfn_t netfn, ipmi_cmd_t cmd,

sd_bus_error_free(&error);
sd_bus_message_unref(m);
sd_bus_message_unref(reply);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be:
reply = sd_bus_message_unref(reply);

This will ensure reply is correct for subsequent calls.
Also the unref should be done after each sd_bus_call.

@vishwabmc vishwabmc force-pushed the master branch 3 times, most recently from 21eff00 to 30d19fa Compare March 2, 2016 06:35
…cases the

reply was not unref'ed

--signed off by vishwanath@in.ibm.com---
nkskjames added a commit that referenced this pull request Mar 5, 2016
Fix memory leak in good paths in ipmid
@nkskjames nkskjames merged commit 4a811d0 into openbmc:master Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants