summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_link.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-01-18 23:39:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-01-18 23:39:31 +0000
commit9ba0e55fc45986d42d40fbaa399c842321142a8b (patch)
treed38d27164eda19d0f79348473617838bf54b0104 /cpukit/libfs/src/imfs/imfs_link.c
parent2010-01-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-9ba0e55fc45986d42d40fbaa399c842321142a8b.tar.bz2
2010-01-18 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 19 Coverity Id 20 Coverity Id 21 * libfs/src/imfs/imfs_link.c, libfs/src/imfs/imfs_load_tar.c, libfs/src/imfs/imfs_mknod.c: Add comment to explain allocation is for life of file, not scope of method.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_link.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_link.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_link.c b/cpukit/libfs/src/imfs/imfs_link.c
index db8659db75..b9bab7a520 100644
--- a/cpukit/libfs/src/imfs/imfs_link.c
+++ b/cpukit/libfs/src/imfs/imfs_link.c
@@ -5,7 +5,7 @@
* name given in name. The link node is set to point to the node at
* to_loc.
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -51,6 +51,10 @@ int IMFS_link(
/*
* Create a new link node.
+ *
+ * NOTE: Coverity thinks this is a resource leak since a node
+ * is created but never deleted. The scope of the allocation
+ * is that of a file -- not this method. Coverity Id 19.
*/
new_node = IMFS_create_node(