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
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
2 matches
Mail list logo