npbackend: fixed memory leak in method2function()
npbackend: fixed memory leak in method2function()

madsbk/bohrium,bh107/bohrium,bh107/bohrium,bh107/bohrium,bh107/bohrium,madsbk/bohrium,madsbk/bohrium,madsbk/bohrium