From 4f47eaf9456e1a4f22553fe0c97587c2124e2fba Mon Sep 17 00:00:00 2001 From: Maciej Rabeda Date: Thu, 28 Nov 2019 15:46:06 +0100 Subject: NetworkPkg: Fixes to static code analysis hits Introducing fixes to memory leak issues identified by static code analysis tool. Cc: Jiaxin Wu Cc: Siyuan Fu Signed-off-by: Maciej Rabeda Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Siyuan Fu Reviewed-by: Jiaxin Wu --- NetworkPkg/TcpDxe/TcpDispatcher.c | 1 + 1 file changed, 1 insertion(+) (limited to 'NetworkPkg/TcpDxe') diff --git a/NetworkPkg/TcpDxe/TcpDispatcher.c b/NetworkPkg/TcpDxe/TcpDispatcher.c index 86beaf8..9ae08cc 100644 --- a/NetworkPkg/TcpDxe/TcpDispatcher.c +++ b/NetworkPkg/TcpDxe/TcpDispatcher.c @@ -390,6 +390,7 @@ TcpAttachPcb ( ); if (EFI_ERROR (Status)) { IpIoRemoveIp (IpIo, Tcb->IpInfo); + FreePool (Tcb); return Status; } -- cgit v1.1