Free return value from scandir instead of leaking it.
authorKeith Packard <keithp@keithp.com>
Fri, 18 Sep 2009 00:38:56 +0000 (17:38 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 18 Sep 2009 00:40:05 +0000 (17:40 -0700)
commitcdbdfaf61c05d0d18eae6815b10666f93162148f
tree2db6199af70353005d334b22431c1b48e43f122f
parent42b879a203c1c16daa9d0c610c6a217ead7a5829
Free return value from scandir instead of leaking it.

Scandir is defined to return pointers to malloc'd storage, so make
sure that memory is nicely freed.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/linux_sysfs.c