[automerger] Fix a memory leak in gatekeeper. am: 6a9c4e7968

Change-Id: Ie5dd32eec9a24b329ff4c5fd18c8f535f43c9bc7