commit | 7b0111f6dca38e76470c4a4e1dce9ef1d01829a0 | [log] [tgz] |
---|---|---|
author | Andrew Jeddeloh <andrew.jeddeloh@coreos.com> | Mon Nov 27 18:27:29 2017 |
committer | Andrew Jeddeloh <andrew.jeddeloh@coreos.com> | Mon Nov 27 18:27:29 2017 |
tree | b12c5bb1b0269c38b2c1e492fa931d5041eb3681 | |
parent | 2e74e2665555776ea65b6bb8de38635b8c7258f3 [diff] |
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