Mercurial > hg > toybox
changeset 804:d71a66d9f477
Fix a warning when debug code enabled.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 22 Feb 2013 12:03:17 -0600 |
parents | 134d337ea880 |
children | 0db28494d17d |
files | toys/posix/chgrp.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/chgrp.c Fri Feb 22 11:22:01 2013 -0600 +++ b/toys/posix/chgrp.c Fri Feb 22 12:03:17 2013 -0600 @@ -90,6 +90,7 @@ 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 @@ if (new) dirtree_handle_callback(new, do_chgrp); else toys.exitval = 1; } - - if (CFG_TOYBOX_FREE) free(own); }