Changeset ca1f1ec in mainline


Ignore:
Timestamp:
2011-07-17T21:10:28Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5273eb6, df0956ee
Parents:
4069f5c
Message:

Edited posix_free() wrapper to catch NULL argument (native free() assumes non-zero pointer).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/stdlib.c

    r4069f5c rca1f1ec  
    326326void posix_free(void *ptr)
    327327{
    328         free(ptr);
     328        if (ptr) {
     329                free(ptr);
     330        }
    329331}
    330332
Note: See TracChangeset for help on using the changeset viewer.