summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-12-31 17:21:46 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-01 17:41:49 -0500
commit379d39c17b8930718e98185a5b32a0f7f3e3b4b6 (patch)
tree8de619a7795a29019f3941a4117ad58684c40d71 /src/tests
parent54fa4433df7412267375240aba40959e97ac4fe2 (diff)
downloadkrb5-379d39c17b8930718e98185a5b32a0f7f3e3b4b6.tar.gz
krb5-379d39c17b8930718e98185a5b32a0f7f3e3b4b6.tar.xz
krb5-379d39c17b8930718e98185a5b32a0f7f3e3b4b6.zip
Fix a small memory leak in util_errmap
Calls to gssint_mecherrmap_map_errcode would result in calling mecherror_copy with a zero-length mech OID, which would result in an OID with 0 for length and malloc(0) for elements. On platforms which return non-null from malloc(0), gssint_mecherrmap_destroy() wouldn't free the elements pointer. Avoid calling malloc(0) and don't use the length field to decide whether to free an elements pointer.
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions