X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FMtftp4Dxe%2FMtftp4Wrq.c;fp=MdeModulePkg%2FUniversal%2FNetwork%2FMtftp4Dxe%2FMtftp4Wrq.c;h=438659a76e762965bfc271be6f2b0fb3dbfc6d39;hp=e8257147006bff793a58e9f3d772e26c07bb5f6f;hb=36c19ee6c7c4455f5de2817052444d1a0dad0e3d;hpb=39b0867d836292be0ffaffd2cc1edb7049c9fddd diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c index e825714700..438659a76e 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c @@ -1,7 +1,7 @@ /** @file Routines to process Wrq (upload). -Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -94,6 +94,10 @@ Mtftp4WrqSendBlock ( FreePool (DataBuf); } + if (UdpPacket != NULL) { + NetbufFree (UdpPacket); + } + Mtftp4SendError ( Instance, EFI_MTFTP4_ERRORCODE_REQUEST_DENIED,