http_err->node.key = strdup(file);
if (!http_err->node.key) {
memprintf(errmsg, "out of memory.");
+ free(http_err);
goto out;
}
http_err->node.key = strdup(key);
if (!http_err->node.key) {
memprintf(errmsg, "out of memory.");
+ free(http_err);
goto out;
}
conf_err = calloc(1, sizeof(*conf_err));
if (!name || !conf_err) {
memprintf(err, "%s : out of memory.", args[0]);
- ret = -1;
goto error;
}
conf_err->type = 0;
}
if (rc >= HTTP_ERR_SIZE) {
memprintf(err, "%s : status code '%d' not handled.", args[0], status);
- ret = -1;
- goto out;
+ goto error;
}
}
}
error:
free(name);
free(conf_err);
+ ret = -1;
goto out;
}