diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-13 14:46:55 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-13 14:46:55 +0000 |
commit | f775835533a210d5f673df00281a119497b8a926 (patch) | |
tree | 37038782ff1dfd2e929cbdff80f0be506c513c68 /lib | |
parent | 9d52ad8c28b3ac06e63599d70f3a7cee3f583404 (diff) | |
download | coreutils-f775835533a210d5f673df00281a119497b8a926.tar.xz |
(setenv): Don't apply cast to argument of free.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setenv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setenv.c b/lib/setenv.c index c09a62d5f..66b6a6427 100644 --- a/lib/setenv.c +++ b/lib/setenv.c @@ -90,7 +90,7 @@ setenv (name, value, replace) new_environ[size] = malloc (namelen + 1 + vallen); if (new_environ[size] == NULL) { - free ((char *) new_environ); + free (new_environ); errno = ENOMEM; return -1; } |