Resolve memory leak of 'border_init'

Free the allocated buffer of 'border_init' if we return from this function.