[PATCH 4/4] char: misc: deallocate static minor in error path