lkml.org 
[lkml]   [2011]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/8] perf symbols: Fix error path on symbol__init()
    Date
    The order of freeing comm_list and dso_list should be
    reversed.

    Signed-off-by: Namhyung Kim <namhyung@gmail.com>
    ---
    tools/perf/util/symbol.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
    index e54b13d4c357..215d50f2042e 100644
    --- a/tools/perf/util/symbol.c
    +++ b/tools/perf/util/symbol.c
    @@ -2604,10 +2604,10 @@ int symbol__init(void)
    symbol_conf.initialized = true;
    return 0;

    -out_free_dso_list:
    - strlist__delete(symbol_conf.dso_list);
    out_free_comm_list:
    strlist__delete(symbol_conf.comm_list);
    +out_free_dso_list:
    + strlist__delete(symbol_conf.dso_list);
    return -1;
    }

    --
    1.7.6


    \
     
     \ /
      Last update: 2011-12-12 16:21    [W:0.019 / U:61.836 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site