Browse Source

[configparser] fix small leak on config failure

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3132 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/heads/lighttpd-1.4.x
Stefan Bühler 6 years ago
parent
commit
dd33a350bb
  1. 6
      src/configparser.y

6
src/configparser.y

@ -533,7 +533,11 @@ context ::= DOLLAR SRVVARNAME(B) LBRACKET stringop(C) RBRACKET cond(E) expressio
break;
}
if (ctx->ok) configparser_push(ctx, dc, 1);
if (ctx->ok) {
configparser_push(ctx, dc, 1);
} else {
dc->free((data_unset*) dc);
}
}
buffer_free(b);

Loading…
Cancel
Save