Changeset 59efe76b in rtems


Ignore:
Timestamp:
Jul 29, 2009, 8:26:42 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
0376d08
Parents:
330e858c
Message:

2009-07-29 Joel Sherrill <joel.sherrill@…>

  • posix/src/mqueuedeletesupp.c: Mark unreachable section as RTEMS_DEBUG.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r330e858c r59efe76b  
     12009-07-29      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * posix/src/mqueuedeletesupp.c: Mark unreachable section as
     4        RTEMS_DEBUG.
     5
    162009-07-29      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/posix/src/mqueuedeletesupp.c

    r330e858c r59efe76b  
    1212 *         time.
    1313 *
    14  *  COPYRIGHT (c) 1989-2007.
     14 *  COPYRIGHT (c) 1989-2009.
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
     
    4040#include <rtems/posix/mqueue.h>
    4141#include <rtems/posix/time.h>
     42#if defined(RTEMS_DEBUG)
     43  #include <rtems/bspIo.h>
     44#endif
    4245
    4346/*PAGE
     
    5154{
    5255  if ( !the_mq->linked && !the_mq->open_count ) {
    53       /* the name memory may have been freed by unlink. */
    5456      Objects_Control *the_object = &the_mq->Object;
    5557
    56       if ( the_object->name.name_p )
    57         _Workspace_Free( (void *)the_object->name.name_p );
     58      #if defined(RTEMS_DEBUG)
     59        /*
     60         *  the name memory will have been freed by unlink.
     61         */
     62        if ( the_object->name.name_p ) {
     63          printk(
     64            "POSIX MQ name (%p) not freed by unlink\n",
     65            (void *)the_object->name.name_p
     66          );
     67          _Workspace_Free( (void *)the_object->name.name_p );
     68        }
     69      #endif
    5870
    5971      _Objects_Close( &_POSIX_Message_queue_Information, the_object );
Note: See TracChangeset for help on using the changeset viewer.