Re: [edk2] [PATCH v1 1/1] StdLib/BsdSocketLib: Fix minor memory leak.

2016-02-17 Thread Carsey, Jaben
en.car...@intel.com>; Colin King > <colin.k...@canonical.com> > Subject: [edk2] [PATCH v1 1/1] StdLib/BsdSocketLib: Fix minor memory leak. > Importance: High > > Fixes a minor memory leak in function res_mkupdrec() by > freeing rrecp on error return. > > The error

[edk2] [PATCH v1 1/1] StdLib/BsdSocketLib: Fix minor memory leak.

2016-02-16 Thread Daryl McDaniel
Fixes a minor memory leak in function res_mkupdrec() by freeing rrecp on error return. The error return is triggered by one of two conditions: 1. rrecp is NULL (calloc failed) 2. strdup(dname) returns NULL Previously, the function just returned NULL. This patch adds a call to free rrecp