[PATCH 5.7 319/393] net: Fix potential memory leak in proto_register()