VirtualBox

Changeset 1469 in kBuild


Ignore:
Timestamp:
Mar 31, 2008 5:00:39 PM (17 years ago)
Author:
bird
Message:

_msize doesn't like NULL pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/misc.c

    r1438 r1469  
    375375  void *result;
    376376#ifdef CONFIG_WITH_MAKE_STATS
    377   make_stats_allocated -= SIZE_OF_HEAP_BLOCK (ptr);
    378   make_stats_allocated_sum -= SIZE_OF_HEAP_BLOCK (ptr);
     377  if (ptr != NULL)
     378    {
     379      make_stats_allocated -= SIZE_OF_HEAP_BLOCK (ptr);
     380      make_stats_allocated_sum -= SIZE_OF_HEAP_BLOCK (ptr);
     381    }
    379382#endif
    380383
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette