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

memory leak #49

Closed
giampaolo opened this issue May 23, 2014 · 4 comments
Closed

memory leak #49

giampaolo opened this issue May 23, 2014 · 4 comments

Comments

@giampaolo
Copy link
Owner

From MrJean1@gmail.com on May 11, 2009 19:04:55

There is a potential memory leak in function getcmdpath of file psutil/arch/bsd/process_info.c.  A 
free(path) should be inserted before line 143, like

    if (sysctl(mib, 4, path, &size, NULL, 0) == -1) {
        //perror("sysctl");
        free(path);
        return NULL;       /* Insufficient privileges */
    }

Original issue: http://code.google.com/p/psutil/issues/detail?id=49

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on May 11, 2009 10:11:09

Thanks, fixed in r392 .

Status: Fixed
Labels: Milestone-0.1.3 OpSys-FreeBSD

@giampaolo
Copy link
Owner Author

From billiej...@gmail.com on September 03, 2009 12:48:09

Status: FixedInSVN

@giampaolo
Copy link
Owner Author

From billiej...@gmail.com on September 17, 2009 01:57:42

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 03:48:44

Updated csets after the SVN -> Mercurial migration: r392 == revision 7c5bb77807f5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant