[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: I2ae1881d76f2475a220221a0238f6e93ca504dbd