Pardon my ignorance. Now that I understand this better, it is obvious that both the request and the free are unneeded as the gpio-keys driver takes care of it.