diff options
| author | Greg Hudson <ghudson@mit.edu> | 2012-12-31 17:21:46 -0500 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2013-01-01 17:41:49 -0500 |
| commit | 379d39c17b8930718e98185a5b32a0f7f3e3b4b6 (patch) | |
| tree | 8de619a7795a29019f3941a4117ad58684c40d71 /src/plugins/locate/python | |
| parent | 54fa4433df7412267375240aba40959e97ac4fe2 (diff) | |
| download | krb5-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/plugins/locate/python')
0 files changed, 0 insertions, 0 deletions
