(del_enctype): try not to leak memory

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7440 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-11-25 22:50:30 +00:00
parent 56ccee9642
commit 71add2421f

View File

@@ -117,8 +117,13 @@ del_enctype(int argc, char **argv)
docopy = 0;
break;
}
if (docopy)
if (docopy) {
new_key_data[j++] = *key;
} else {
int16_t ignore;
kadm5_free_key_data (kadm_handle, &ignore, key);
}
}
free (princ.key_data);