Fix memory leak in df(1)
authorRobin Hahling <robin.hahling@gw-computing.net>
Fri, 25 Oct 2013 10:15:37 +0000 (12:15 +0200)
committerSascha Wildner <saw@online.de>
Fri, 25 Oct 2013 23:15:20 +0000 (01:15 +0200)
commit88647437e00e5232701fdd5348b3ca41b9c64175
treef7ff9d49a73d8473e9f7957729b9e0f79ff77991
parent7a6c7dc3cdb351a95afda051c990d1f7877fdf4e
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.
bin/df/df.c