summaryrefslogtreecommitdiff
path: root/interpolate.c
diff options
context:
space:
mode:
Diffstat (limited to 'interpolate.c')
-rw-r--r--interpolate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/interpolate.c b/interpolate.c
index 6ef53f2465..7f03bd99c5 100644
--- a/interpolate.c
+++ b/interpolate.c
@@ -11,8 +11,7 @@ void interp_set_entry(struct interp *table, int slot, const char *value)
char *oldval = table[slot].value;
char *newval = NULL;
- if (oldval)
- free(oldval);
+ free(oldval);
if (value)
newval = xstrdup(value);