forked from Imagelibrary/rtems
2010-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/ramdisk-config.c: Revert accidental commit.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2010-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libblock/src/ramdisk-config.c: Revert accidental commit.
|
||||
|
||||
2010-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libblock/src/ramdisk-config.c, sapi/include/confdefs.h:
|
||||
|
||||
@@ -35,7 +35,7 @@ ramdisk_initialize(
|
||||
return rc;
|
||||
|
||||
/*
|
||||
* Coverity Id 27 & 31 note that this calloc() is a resource leak.
|
||||
* Coverity Id 27 notes that this calloc() is a resource leak.
|
||||
*
|
||||
* This is allocating memory for a RAM disk which will persist for
|
||||
* the life of the system. RTEMS has no "de-initialize" driver call
|
||||
@@ -82,10 +82,5 @@ ramdisk_initialize(
|
||||
r->initialized = false;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* We need to tell Coverity that we know we are returning without
|
||||
* freeing r. This looks suspiciously like a leak. :)
|
||||
*/
|
||||
/* coverity[leaked_storage : FALSE] */
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user