[sr-dev] git:master:02c5f298: crypto: use same condition to free ttext.s on success or error