You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raspell contains memory leaks in list_misspelled and correct_lines due to not using rb_ensure to call delete_aspell_document_checker and free the checker. In list_misspelled, if an exception is railed from rb_yield or rb_funcall then delete_aspell_document_checker will not be called. The same is true in aspell_correct_lines.
Here is an example illustrating the leak using list_misspelled:
raspell contains memory leaks in
list_misspelled
andcorrect_lines
due to not usingrb_ensure
to calldelete_aspell_document_checker
and free the checker. Inlist_misspelled
, if an exception is railed fromrb_yield
orrb_funcall
thendelete_aspell_document_checker
will not be called. The same is true inaspell_correct_lines
.Here is an example illustrating the leak using
list_misspelled
:The text was updated successfully, but these errors were encountered: