Wireshark-commits: [Wireshark-commits] rev 51627: /trunk/epan/wmem/ /trunk/epan/wmem/: wmem_allocat
Date: Sun, 01 Sep 2013 13:37:38 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51627

User: eapache
Date: 2013/09/01 06:37 AM

Log:
 Send all alloc and free calls within wmem through wmem_alloc and wmem_free with
 a NULL allocator. This gives us a single, central place to handle out-of-memory
 errors (by, for example, throwing an exception) for basically all of epan.
 
 The only remaining glib memory that is directly allocated is for the hash tables
 used by the simple and strict allocators.

Directory: /trunk/epan/wmem/
  Changes    Path                       Action
  +8 -8      wmem_allocator_block.c     Modified
  +20 -15    wmem_allocator_simple.c    Modified
  +6 -6      wmem_allocator_strict.c    Modified
  +2 -2      wmem_core.c                Modified
  +2 -2      wmem_core.h                Modified
  +1 -1      wmem_test.c                Modified
  +3 -3      wmem_tree.c                Modified
  +3 -3      wmem_user_cb.c             Modified