Zero length in keymaster_free_param_set.

Change-Id: I0b9999e4c148d70369549cbd2fcdbbff7321a587
This commit is contained in:
Shawn Willden 2016-03-20 09:07:50 -06:00
parent aeb15d64fc
commit e366efd5bb

View file

@ -587,6 +587,7 @@ inline void keymaster_free_param_set(keymaster_key_param_set_t* set) {
keymaster_free_param_values(set->params, set->length);
free(set->params);
set->params = NULL;
set->length = 0;
}
}