fix memory leaks
Change-Id: I18ad15dc802842324b3712f3f7833953434b1cf1
This commit is contained in:
@@ -183,8 +183,10 @@ kt_change(struct change_options *opt, int argc, char **argv)
|
||||
}
|
||||
|
||||
/* XXX Parameterize keytab name */
|
||||
if((keytab = ktutil_open_keytab()) == NULL)
|
||||
if ((keytab = ktutil_open_keytab()) == NULL) {
|
||||
free(kstuple);
|
||||
return 1;
|
||||
}
|
||||
|
||||
j = 0;
|
||||
max = 0;
|
||||
|
@@ -305,5 +305,6 @@ add_new_key(struct add_options *opt, int argc, char **argv)
|
||||
int16_t dummy = 3;
|
||||
kadm5_free_key_data (kadm_handle, &dummy, key_data);
|
||||
}
|
||||
free(kstuple);
|
||||
return ret != 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user