string-ext/string.c: fixed memory leak from `tr` on exception.
With some refactoring. * `ret` argument is always non-nil, so no check needed. * move allocation check right after malloc(). * simplify conditions.
Showing
Please register or sign in to comment