(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:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund