Freeing memory allocated for AIK after writing
This commit is contained in:
committed by
Andreas Steffen
parent
a3be32a2d5
commit
3ca2e65f0d
@@ -126,6 +126,7 @@ METHOD(pa_tnc_attr_t, build, void,
|
|||||||
writer->write_uint8(writer, flags);
|
writer->write_uint8(writer, flags);
|
||||||
writer->write_data (writer, aik_blob);
|
writer->write_data (writer, aik_blob);
|
||||||
this->value = chunk_clone(writer->get_buf(writer));
|
this->value = chunk_clone(writer->get_buf(writer));
|
||||||
|
free(aik_blob.ptr);
|
||||||
writer->destroy(writer);
|
writer->destroy(writer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user