summaryrefslogtreecommitdiff
path: root/lib/putenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/putenv.c')
-rw-r--r--lib/putenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/putenv.c b/lib/putenv.c
index 25ff1c08e..19c648699 100644
--- a/lib/putenv.c
+++ b/lib/putenv.c
@@ -146,7 +146,7 @@ rpl_putenv (const char *string)
new_environ[size] = (char *) string;
new_environ[size + 1] = NULL;
if (last_environ != NULL)
- free ((void *) last_environ);
+ free (last_environ);
last_environ = new_environ;
environ = new_environ;
}