Changeset cb87694 in rtems


Ignore:
Timestamp:
Jul 25, 2010, 2:52:27 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
972a8dba
Parents:
a5bbb061
Message:

2010-07-25 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/gxx_wrappers.c: Free contents of key not key itself. Kye pointer will never be malloc'ed.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra5bbb061 rcb87694  
     12010-07-25      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/src/gxx_wrappers.c: Free contents of key not key itself.
     4        Kye pointer will never be malloc'ed.
     5
    162010-07-24      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/libcsupport/src/gxx_wrappers.c

    ra5bbb061 rcb87694  
    123123  if ( status == RTEMS_SUCCESSFUL ) {
    124124    /* Hmm - hopefully all tasks using this key have gone away... */
    125     if ( key ) free( (void *)key );
    126     return 0;
    127   }
     125    if ( key ) free( *(void **)key );
     126    return 0;
     127  }
     128  key = NULL;
    128129  return 0;
    129130}
Note: See TracChangeset for help on using the changeset viewer.