]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(chopt_free): don't free anything
authorJim Meyering <jim@meyering.net>
Sat, 9 Dec 2000 20:54:23 +0000 (20:54 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 9 Dec 2000 20:54:23 +0000 (20:54 +0000)
src/chown-core.c

index 265275ac0471103fbaf0d49e11cc5ad3d88cbfd0..2899f587b58c8adcc4cfa54c384527ada22cb91d 100644 (file)
@@ -50,8 +50,8 @@ chopt_init (struct Chown_option *chopt)
 void
 chopt_free (struct Chown_option *chopt)
 {
-  XFREE (chopt->user_name);
-  XFREE (chopt->group_name);
+  /* Deliberately do not free chopt->user_name or ->group_name.
+     They're not always allocated.  */
 }
 
 /* FIXME: describe */