rootdev: do not malloc/free entry from readdir Fixes invalid frees. readdir(3) returns a pointer to statically allocated dirent which should not be freed. Also fixes a memory leak where we malloc a dirent then override the pointer immediately.
A partitioning tool.
Performs operations to discover and annotate the root block device
Originally inspired by the old rdev utility from util-linux but has been completely rewritten since then. git://git.debian.org/~lamont/util-linux.git / 717db2c8177203fe242ea35b31bc312abe9aa3c9