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

Fixed memory leaks in zevent handling #2291

Closed
wants to merge 1 commit into from

Conversation

behlendorf
Copy link
Contributor

Some nvlist_t could be leaked in error handling paths.
Also make sure cb argument to zfs_zevent_post() cannnot
be NULL.

Signed-off-by: Isaac Huang [email protected]
Signed-off-by: Brian Behlendorf [email protected]
Issue #2158

@behlendorf
Copy link
Contributor Author

@thegreatgazoo I've refreshed this against master and slightly reworked it. If you could review it that would be helpful!

@behlendorf behlendorf added this to the 0.6.4 milestone May 1, 2014
@behlendorf behlendorf added the Bug label May 1, 2014
@FransUrbo
Copy link
Contributor

@behlendorf Shouldn't this be taged 0.6.3?

@behlendorf
Copy link
Contributor Author

@FransUrbo It would certainly be nice to get in but the code here is a bit subtle so I wanted to make sure it was carefully reviewed by at least one other person familiar with the code. The leaks themselves are particularly unlikely so I don't think it's critical that it make 0.6.3. But if we can get it reviewed in the next few days we could get it in.

@FransUrbo
Copy link
Contributor

@behlendorf Ok, fair enough.

Some nvlist_t could be leaked in error handling paths.
Also make sure cb argument to zfs_zevent_post() cannnot
be NULL.

Signed-off-by: Isaac Huang <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#2158
FransUrbo pushed a commit to FransUrbo/zfs that referenced this pull request Aug 19, 2014
… handling.

Fixed memory leaks in zevent handling

Some nvlist_t could be leaked in error handling paths.
Also make sure cb argument to zfs_zevent_post() cannnot
be NULL.

Signed-off-by: Isaac Huang <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#2158
@behlendorf
Copy link
Contributor Author

Merged as:

0426c16 Fixed memory leaks in zevent handling

@behlendorf behlendorf closed this Aug 20, 2014
@behlendorf behlendorf deleted the issue-2158 branch August 20, 2014 17:48
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.

3 participants