index 8fc6f7d730222a5b8c34585ef701737ad056b4d1..ae3e79899d2eddf1304bcc00ba178289b3602d02 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;