Fix destruction of tcg_pts_attr_file_meas_t when building from encoding

This commit is contained in:
Tobias Brunner
2012-11-12 12:13:11 +01:00
parent 7c49d77982
commit 7d41e90846
+1 -1
View File
@@ -223,7 +223,7 @@ METHOD(pa_tnc_attr_t, destroy, void,
{ {
if (ref_put(&this->ref)) if (ref_put(&this->ref))
{ {
this->measurements->destroy(this->measurements); DESTROY_IF(this->measurements);
free(this->value.ptr); free(this->value.ptr);
free(this); free(this);
} }