]> git.proxmox.com Git - mirror_frr.git/commit
lib: Fix accounting of memory
authorChris Hall <chris.hall.list.highwayman.com>
Fri, 23 Jul 2010 18:27:11 +0000 (11:27 -0700)
committerPaul Jakma <paul@quagga.net>
Mon, 21 Mar 2011 11:09:13 +0000 (11:09 +0000)
commitcca85d27a59c31e1b20e4c4adc7d9bb57606e584
tree2330a624f08c04a4125dc3153c97d93361c2da85
parentd1de1c25962b5470f3825bc82d15e4dd29e1f842
lib: Fix accounting of memory

* lib/memory.c: (zrealloc) If is called with NULL pointer then it should
  increment allocations because it behaves the same as zmalloc.

  (zfree) is called with NULL pointer, it does nothing therefore allocation
  count should not change.
lib/memory.c