[sr-dev] git:master:074eda76: erlang: fix memory leaks