diff options
author | Maciej Rabeda <maciej.rabeda@linux.intel.com> | 2019-11-28 15:46:06 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2019-12-04 01:16:45 +0000 |
commit | 4f47eaf9456e1a4f22553fe0c97587c2124e2fba (patch) | |
tree | 8af0bef19e68dfa411dbc9aad7920941b6afe350 /NetworkPkg/Dhcp6Dxe/Dhcp6Io.c | |
parent | 4d613feee57ebd4680f3c23398a9b33723f29fd6 (diff) | |
download | edk2-4f47eaf9456e1a4f22553fe0c97587c2124e2fba.tar.gz edk2-4f47eaf9456e1a4f22553fe0c97587c2124e2fba.tar.bz2 edk2-4f47eaf9456e1a4f22553fe0c97587c2124e2fba.zip |
NetworkPkg: Fixes to static code analysis hits
Introducing fixes to memory leak issues identified by static code analysis
tool.
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Diffstat (limited to 'NetworkPkg/Dhcp6Dxe/Dhcp6Io.c')
-rw-r--r-- | NetworkPkg/Dhcp6Dxe/Dhcp6Io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c index 4f8393cb36..613b42149c 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c @@ -203,6 +203,7 @@ Dhcp6EnqueueRetry ( //
// Unexpected message type.
//
+ FreePool(TxCb);
return EFI_DEVICE_ERROR;
}
|