Simplify memory management a bit in places, by allocating and freeing
authorKen Raeburn <raeburn@mit.edu>
Mon, 24 Nov 2008 21:06:20 +0000 (21:06 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 24 Nov 2008 21:06:20 +0000 (21:06 +0000)
commitec68c7615a4c70cad99e55e35e1bc3f57127faa6
treed23ef0ceb7b824a0c21f08eed830dddc28b23983
parentd0b742ae97d201d661ce2701c836a4f706da820e
Simplify memory management a bit in places, by allocating and freeing
separately, instead of reallocating arrays of pointers to themselves
be reallocated.  Do a better job of initializing arrays of which we
only use a variable-sized part.
Use a temp var instead of lots of long macro invocations.
Fix some overrun-by-one errors in buffer copying.
Clean up some possible leaks.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21182 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/kdb/kdb_convert.c