Changeset 3019612 in mainline


Ignore:
Timestamp:
2011-09-22T18:27:21Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8895d05
Parents:
a96a982
Message:

free(NULL) should be a no-op by convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/malloc.c

    ra96a982 r3019612  
    873873void free(const void *addr)
    874874{
     875        if (addr == NULL)
     876                return;
     877
    875878        futex_down(&malloc_futex);
    876879       
Note: See TracChangeset for help on using the changeset viewer.