git: Fix memory leak in df(1)

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Oct 25 17:02:34 PDT 2013


commit 88647437e00e5232701fdd5348b3ca41b9c64175
Author: Robin Hahling <robin.hahling at gw-computing.net>
Date:   Fri Oct 25 12:15:37 2013 +0200

    Fix memory leak in df(1)
    
    Fix a memory leak in makenetvfslist which would occur when a previous
    call to strdup fails and the function returns on error.
    The simple fix is a call to free(3) to free memory allocated to listptr
    before returning.

Summary of changes:
 bin/df/df.c | 1 +
 1 file changed, 1 insertion(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/88647437e00e5232701fdd5348b3ca41b9c64175


-- 
DragonFly BSD source repository


More information about the Commits mailing list