goto ON_ERROR;\r
}\r
\r
+ HttpInstance->Url = AllocateZeroPool (HTTP_URL_BUFFER_LEN);\r
+ if (HttpInstance->Url == NULL) {\r
+ Status = EFI_OUT_OF_RESOURCES;\r
+ goto ON_ERROR;\r
+ }\r
+\r
NetMapInit (&HttpInstance->TxTokens);\r
NetMapInit (&HttpInstance->RxTokens);\r
\r
HttpInstance->MsgParser = NULL;\r
}\r
\r
+ if (HttpInstance->Url != NULL) {\r
+ FreePool (HttpInstance->Url);\r
+ HttpInstance->Url = NULL;\r
+ }\r
+\r
NetMapClean (&HttpInstance->TxTokens);\r
NetMapClean (&HttpInstance->RxTokens);\r
\r