summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_mknod.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_mknod.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_mknod.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_mknod.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_mknod.c b/cpukit/libfs/src/imfs/imfs_mknod.c
index f7b8ac9998..fe852b6b0f 100644
--- a/cpukit/libfs/src/imfs/imfs_mknod.c
+++ b/cpukit/libfs/src/imfs/imfs_mknod.c
@@ -3,7 +3,7 @@
*
* Routine to create a node in the IMFS file system.
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -63,8 +63,11 @@ int IMFS_mknod(
/*
* Allocate and fill in an IMFS jnode
+ *
+ * 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 21.
*/
-
new_node = IMFS_create_node(
pathloc,
type,