eolian: pass rbuf to doc_error

This allows us to correctly free the buffer in error scenarios.

Fixes CID 1304728.

@fix
This commit is contained in:
Daniel Kolesa 2015-06-09 13:43:36 +01:00
parent 0e8d1c8485
commit 6692319c78
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
}