Fixed memory leak in decoder function