fix pb-decode memory leak