From 6692319c7873e0fbb797f01bc2ca41c2d12824b4 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Tue, 9 Jun 2015 13:43:36 +0100 Subject: eolian: pass rbuf to doc_error This allows us to correctly free the buffer in error scenarios. Fixes CID 1304728. @fix --- src/lib/eolian/eo_lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c index 3ed337ae64..34034f468f 100644 --- a/src/lib/eolian/eo_lexer.c +++ b/src/lib/eolian/eo_lexer.c @@ -326,7 +326,7 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column) { if (!ls->current) { - doc_error(ls, "unfinished documentation", doc, NULL); + doc_error(ls, "unfinished documentation", doc, rbuf); return; /* unreachable, for static analysis */ } -- cgit v1.2.1