fix memory leak
fix memory leak

lakshmi-srinivas/brightray,bbondy/brightray,tejaspathak/brightray,atom/brightray,bbondy/brightray,lakshmi-srinivas/brightray,atom/brightray,tejaspathak/brightray,lakshmi-srinivas/brightray,brave/brightray,brave/brightray