pcp
[Top] [All Lists]

pcp updates: libpcp: plug memory leak in derived metrics error handling

To: pcp <pcp@xxxxxxxxxxx>
Subject: pcp updates: libpcp: plug memory leak in derived metrics error handling
From: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Wed, 15 Jun 2016 18:04:49 +1000
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
QA passes for group 'derive'. Frank's valgrind repro in BZ#1331973 also
now passes - at this stage of the release, this should be reviewed prior
to merging. I'll also create a new QA test for the repro script.
        
Changes committed to git://git.pcp.io/mgoodwin/pcp master

commit 188987bde837f6f81c259903ab08824bcd008214
Author: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date:   Wed Jun 15 17:54:45 2016 +1000

    libpcp: plug memory leak in derived metrics error handling
BZ #1331973 Error handling needs to recursively free the current node, since it
    may have been built recursively, so call free_expr() instead of free()
    in the appropriate places where a derived expression fails. The patch
    also fortifies free_expr() itself a bit.
Passes qa for group 'derive', and Frank's valgrind repro script passes
    now too. A new QA test should probably be added.
BTW, this is not a regression per-se - the leak has always been there -
    it's just more noticeable now that global derived metrics defs are loaded
    by default.

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: libpcp: plug memory leak in derived metrics error handling, Mark Goodwin <=