From: Jim Meyering Date: Wed, 1 Nov 2000 17:52:43 +0000 (+0000) Subject: Fix bad typo! free the string, PARENTS, not the function, dir_name. X-Git-Tag: FILEUTILS-4_0_30~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e9f0846f8ddc3774ac3212c22348fdbe5e72780;p=thirdparty%2Fcoreutils.git Fix bad typo! free the string, PARENTS, not the function, dir_name. --- diff --git a/src/mkdir.c b/src/mkdir.c index 92d158c63b..5ab7cab65f 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -146,7 +146,7 @@ main (int argc, char **argv) const char *parents = dir_name (argv[optind]); fail = make_path (parents, parent_mode, parent_mode, -1, -1, 1, verbose_fmt_string); - free (dir_name); + free (parents); } if (fail == 0)