Commit 780fbc30 authored by Paul Wise's avatar Paul Wise Committed by Karolin Seeger
Browse files

HEIMDAL: krb5_storage_free(NULL) should work

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12505

Signed-off-by: Paul Wise's avatarPaul Wise <pabs3@bonedaddy.net>
Reviewed-by: Jeremy Allison's avatarJeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett's avatarAndrew Bartlett <abartlet@samba.org>
Original-author: Nicolas Williams <nico@twosigma.com>
(cherry-picked from heimdal commit b3db07d5f0e03f6a1a0a392e70f9675e19a6d6af)
(cherry picked from commit f9ed4f70)
parent cf9066b2
......@@ -270,6 +270,8 @@ krb5_storage_get_eof_code(krb5_storage *sp)
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
krb5_storage_free(krb5_storage *sp)
{
if (sp == NULL)
return 0;
if(sp->free)
(*sp->free)(sp);
free(sp->data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment