[sr-dev] git:5.0:8f2d55e2: erlang: fix possible memory corruption