From e4d7016c1a0066f729a84ffaeb8b03a1b913a9a4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 19 Jan 2010 23:01:36 +0000 Subject: [PATCH] 2010-01-19 Joel Sherrill Coverity Id 18 * libmisc/shell/fts.c: Add free(parent) to correct leak. --- cpukit/ChangeLog | 5 +++++ cpukit/libmisc/shell/fts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 52eaadb773..971f347a31 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-01-19 Joel Sherrill + + Coverity Id 18 + * libmisc/shell/fts.c: Add free(parent) to correct leak. + 2010-01-19 Joel Sherrill Coverity Id 24 diff --git a/cpukit/libmisc/shell/fts.c b/cpukit/libmisc/shell/fts.c index 1383e07798..652258c63a 100644 --- a/cpukit/libmisc/shell/fts.c +++ b/cpukit/libmisc/shell/fts.c @@ -204,7 +204,7 @@ fts_open( SET(FTS_NOCHDIR); } } - + free(parent); return (sp); mem3: fts_lfree(root);