diff options
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libmisc/shell/fts.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 52eaadb773..971f347a31 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com> + Coverity Id 18 + * libmisc/shell/fts.c: Add free(parent) to correct leak. + +2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com> + Coverity Id 24 * libblock/src/ide_part_table.c: Initialize sector to NULL and add free(sector) on error return path from get_sector() to fix potential 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); |