[automerger] Fix a memory leak in gatekeeper. am: 6a9c4e7968 am: bdc924f31d am: 7535975701 am: e126026c02 am: 4ae4ad8e5b am: b25983460c am: 20e73e23c4 am: ca662c7118 am: 14d1d6add8
am: 4ea7584d34

Change-Id: I6c0c79a772b9114b84a0fbfd37a65fd6648f2660