lkml.org 
[lkml]   [2011]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] sched: fix struct autogroup memory leak
    From
    Date
    On Wed, 2011-01-05 at 11:11 +0100, Mike Galbraith wrote:

    > static inline void autogroup_free(struct task_group *tg)
    > {
    > - kfree(tg->autogroup);
    > + if (tg->autogroup)
    > + kfree(tg->autogroup);
    > }

    WARNING: kfree(NULL) is safe this check is probably not required
    #43: FILE: kernel/sched_autogroup.c:24:
    + if (tg->autogroup)
    + kfree(tg->autogroup);


    \
     
     \ /
      Last update: 2011-01-05 11:23    [W:0.018 / U:0.740 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site