[PATCH 5.8 385/464] net: Fix potential memory leak in proto_register()