summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-09 13:43:36 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-09 13:43:36 +0100
commit6692319c7873e0fbb797f01bc2ca41c2d12824b4 (patch)
tree6be5fe4106661f291b9253807817d79d6e308e96
parent0e8d1c8485a572b4070e7bacd1b4e7e6ddb1b8f2 (diff)
eolian: pass rbuf to doc_error
This allows us to correctly free the buffer in error scenarios. Fixes CID 1304728. @fix
-rw-r--r--src/lib/eolian/eo_lexer.c2
1 files changed, 1 insertions, 1 deletions
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)
326 { 326 {
327 if (!ls->current) 327 if (!ls->current)
328 { 328 {
329 doc_error(ls, "unfinished documentation", doc, NULL); 329 doc_error(ls, "unfinished documentation", doc, rbuf);
330 return; /* unreachable, for static analysis */ 330 return; /* unreachable, for static analysis */
331 } 331 }
332 332