[DBAgentMySQL] Plug a memory leak in getLastInsertId()