index f367ee9c3973d19ddc0acba2e1adc46a2cdeadf6..ae9ab3a6cfe6bd6679fbc3dadc5ffa5a124fc25f 100644 (file)
--- a/src/daemon/configfile.c
+++ b/src/daemon/configfile.c
return (-1);
/* Now replace the i'th child in `root' with `new'. */
- if (cf_ci_replace_child (root, new, i) < 0)
+ if (cf_ci_replace_child (root, new, i) < 0) {
+ sfree (new->values);
+ sfree (new);
return (-1);
+ }
/* ... and go back to the new i'th child. */
--i;