Skip to content
Snippets Groups Projects
Commit f641f063 authored by Ilya Verbin's avatar Ilya Verbin Committed by Serge Petrenko
Browse files

lua: fix memory leak in error_object:set_prev()

By design, the error references its cause, see error_set_prev() in diag.c.
Referencing the error from error_set_prev() in error.lua is wrong.
Introduced by commit 2e3c81de ("error: use int64_t as reference
counter").

Closes #9694

NO_DOC=bugfix
NO_TEST=memory leak

(cherry picked from commit d08dbcbf)
parent 9dc3490f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment