1
1

Removes misleading debug warning from opal_free when a NULL

pointer is passed to it.
Fixes trac:2884

This commit was SVN r25430.

The following Trac tickets were found above:
  Ticket 2884 --> https://svn.open-mpi.org/trac/ompi/ticket/2884
Этот коммит содержится в:
Christopher Yeoh 2011-11-03 23:57:26 +00:00
родитель 886a9d589b
Коммит 7e7701e7fc

Просмотреть файл

@ -181,12 +181,6 @@ void *opal_realloc(void *ptr, size_t size, const char *file, int line)
*/
void opal_free(void *addr, const char *file, int line)
{
#if OPAL_ENABLE_DEBUG
if (opal_malloc_debug_level > 1 && NULL == addr) {
opal_output(opal_malloc_output, "Invalid free (%s, %d)", file, line);
return;
}
#endif /* OPAL_ENABLE_DEBUG */
free(addr);
}