-
- Downloads
Ticket #1363: Fix memory leak in treat_one_relative_path_element_2
In the op treat_one_relative_path_element_2, clear_browse_result is called only if compute_browse_result_from_source returns e_sc_ok. However, compute_browse_result_from_source can allocate memory for browse results even if the return code is not e_sc_ok. It is the case where the return code is e_sc_bad_query_too_complex. This code can be obtained when compute_browse_result, called by compute_browse_result_from_source returns e_sc_bad_no_continuation_points. One of the solutions is to clear browse result (by calling clear_browse_result) in compute_browse_result_from_source if comput_browse_result returns e_sc_bad_no_continuation_points. By this solution, the browse results are only allocated and computed iff the return code is e_sc_ok.
Loading
Please register or sign in to comment