Signed-off-by: Mika Laitio <lamikr@pilppa.org>
static struct uci_package *uci_file_load(struct uci_context *ctx, const char *name)
{
struct uci_package *package = NULL;
static struct uci_package *uci_file_load(struct uci_context *ctx, const char *name)
{
struct uci_package *package = NULL;
bool confdir;
FILE *file = NULL;
bool confdir;
FILE *file = NULL;
done:
uci_close_stream(file);
done:
uci_close_stream(file);
+ if (ctx->err) {
+ free(filename);
UCI_THROW(ctx, ctx->err);
UCI_THROW(ctx, ctx->err);