| diff -Naur a/util-linux/rdev.c b/util-linux/rdev.c |
| --- a/util-linux/rdev.c 2011-09-05 19:35:17.000000000 -0700 |
| +++ b/util-linux/rdev.c 2014-10-24 11:41:55.922803554 -0700 |
| @@ -23,10 +23,11 @@ |
| int rdev_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
| int rdev_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
| { |
| - char const * const root_device = find_block_device("/"); |
| + char * const root_device = find_block_device("/"); |
| |
| if (root_device != NULL) { |
| printf("%s /\n", root_device); |
| + free(root_device); |
| return EXIT_SUCCESS; |
| } |
| return EXIT_FAILURE; |