diff options
author | Rob Landley <rob@landley.net> | 2013-02-22 12:03:17 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-02-22 12:03:17 -0600 |
commit | 799515eabe6de341393efecf3756b3f80b18c9af (patch) | |
tree | 9dadb609c75373b3c63b6cce35c73a953f4b2ffa /toys | |
parent | dd009d622ad7b6094efe073f0974a5e3a523cc32 (diff) | |
download | toybox-799515eabe6de341393efecf3756b3f80b18c9af.tar.gz |
Fix a warning when debug code enabled.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/posix/chgrp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/posix/chgrp.c b/toys/posix/chgrp.c index e416f27f..0a314c2a 100644 --- a/toys/posix/chgrp.c +++ b/toys/posix/chgrp.c @@ -90,6 +90,7 @@ void chgrp_main(void) if (!p && isdigit(*own)) p=getpwuid(atoi(own)); if (!p) error_exit("no user '%s'", own); TT.owner = p->pw_uid; + if (CFG_TOYBOX_FREE) free(own); } } else TT.group_name = *toys.optargs; @@ -106,6 +107,4 @@ void chgrp_main(void) if (new) dirtree_handle_callback(new, do_chgrp); else toys.exitval = 1; } - - if (CFG_TOYBOX_FREE) free(own); } |