Daryl McDaniel
7053c3b3b3
StdLib/BsdSocketLib: Fix minor memory leak 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 before returning NULL. Since the free() function will properly
do nothing when called with a NULL parameter, it is not necessary to
separate the two tests into separate if clauses.
Reported-by: Colin King <colin.king@canonical.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <edk2-lists@mc2research.org>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2016-02-17 16:11:29 -08:00
..
2011-09-30 23:02:35 +00:00
2012-02-17 23:43:35 +00:00
2014-10-31 17:50:33 +00:00
2012-06-14 18:16:01 +00:00
2012-10-08 21:39:35 +00:00
2011-09-30 23:02:35 +00:00
2011-09-30 23:02:35 +00:00
2012-02-17 23:43:35 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2014-10-30 01:05:22 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-09-30 23:02:35 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-09-30 23:02:35 +00:00
2014-10-31 17:50:33 +00:00
2012-02-10 03:30:41 +00:00
2012-02-17 23:43:35 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2012-06-14 18:16:01 +00:00
2012-06-14 18:16:01 +00:00
2012-06-14 18:16:01 +00:00
2012-06-14 18:16:01 +00:00
2012-06-14 18:16:01 +00:00
2014-10-31 17:50:33 +00:00
2011-07-30 00:30:44 +00:00
2014-12-02 21:30:41 +00:00
2012-02-10 03:30:41 +00:00
2012-02-10 03:30:41 +00:00
2014-12-02 21:30:41 +00:00
2012-09-03 01:07:54 +00:00
2014-09-17 20:58:16 +00:00
2012-02-10 03:30:41 +00:00
2012-02-10 03:30:41 +00:00
2014-10-31 17:50:33 +00:00
2012-02-17 23:43:35 +00:00
2011-09-30 23:02:35 +00:00
2011-09-30 23:02:35 +00:00
2014-10-30 01:05:22 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2014-09-17 20:58:16 +00:00
2011-07-30 00:30:44 +00:00
2011-07-30 00:30:44 +00:00
2016-02-17 16:11:29 -08:00
2011-07-30 00:30:44 +00:00
2012-02-17 23:43:35 +00:00
2014-10-31 17:50:33 +00:00
2011-09-30 23:02:35 +00:00
2011-09-30 23:02:35 +00:00
2011-09-30 23:02:35 +00:00
2014-10-31 17:50:33 +00:00
2011-09-30 23:02:35 +00:00
2013-02-08 21:26:46 +00:00
2012-02-17 23:43:35 +00:00
2011-09-30 23:02:35 +00:00
2012-02-17 23:43:35 +00:00