Changeset a12f7f1 in mainline for uspace/lib/posix/time.c


Ignore:
Timestamp:
2011-07-21T02:24:41Z (14 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cfbb5d18
Parents:
94f8b81c
Message:

All occurences of call to native free() secured from passing NULL pointer.

File:
1 edited

Legend:

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

    r94f8b81c ra12f7f1  
    968968        if (task_stats) {
    969969                total_cycles = (posix_clock_t) (task_stats->kcycles + task_stats->ucycles);
    970         }
    971         free(task_stats);
    972         task_stats = 0;
     970                free(task_stats);
     971                task_stats = 0;
     972        }
    973973
    974974        return total_cycles;
Note: See TracChangeset for help on using the changeset viewer.