mk_cred: memory management
authorSam Hartman <hartmans@mit.edu>
Fri, 2 Dec 2011 18:52:12 +0000 (18:52 +0000)
committerSam Hartman <hartmans@mit.edu>
Fri, 2 Dec 2011 18:52:12 +0000 (18:52 +0000)
commit2d4cf1e6217c23a34275d558f4ee53a07eaf9c72
tree15f4e3e8ff5a1dbfc42b712845c5d3545ae04a5f
parent6c21de0c0c0b31525642be0a2f19ad19c09affa4
mk_cred: memory management

Fix for mk_cred.c: calloc() not malloc()

Avoid calling free() in cleanup on uninitialized sub-ptrs if error occurs.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7034
target_version: 1.10
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25496 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/mk_cred.c