diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-11-05 08:59:08 +0000 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-11-05 15:28:27 +0100 |
commit | ade02cdac48dd46b25a647898aff20790483717e (patch) | |
tree | a8cbe2c8667ccb58fda9e018f3f55f1c7eb3edaa /ipa-client/ipa-getkeytab.c | |
parent | 4e49f39e1a9c267c52b409a083a202c27171ae4d (diff) | |
download | freeipa-ade02cdac48dd46b25a647898aff20790483717e.tar.gz freeipa-ade02cdac48dd46b25a647898aff20790483717e.tar.xz freeipa-ade02cdac48dd46b25a647898aff20790483717e.zip |
Fix memory leaks in ipa-join
Also remove dead code in ipa-join and add initializer to a variable in
ipa-getkeytab to prevent false positives in static code analysis.
https://fedorahosted.org/freeipa/ticket/4651
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipa-client/ipa-getkeytab.c')
-rw-r--r-- | ipa-client/ipa-getkeytab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-client/ipa-getkeytab.c b/ipa-client/ipa-getkeytab.c index 7861e4e50..bb43c333d 100644 --- a/ipa-client/ipa-getkeytab.c +++ b/ipa-client/ipa-getkeytab.c @@ -794,7 +794,7 @@ int main(int argc, const char *argv[]) char *password = NULL; krb5_context krbctx; krb5_ccache ccache; - krb5_principal uprinc; + krb5_principal uprinc = NULL; krb5_principal sprinc; krb5_error_code krberr; struct keys_container keys = { 0 }; |