Freeing memory allocated for AIK after writing
authorSansar Choinyambuu <schoinya@hsr.ch>
Fri, 7 Oct 2011 13:14:24 +0000 (15:14 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 28 Nov 2011 13:34:21 +0000 (14:34 +0100)
src/libpts/tcg/tcg_pts_attr_aik.c

index ffef15f..93bbfb9 100644 (file)
@@ -126,6 +126,7 @@ METHOD(pa_tnc_attr_t, build, void,
        writer->write_uint8(writer, flags);
        writer->write_data (writer, aik_blob);
        this->value = chunk_clone(writer->get_buf(writer));
+       free(aik_blob.ptr);
        writer->destroy(writer);
 }