libipt: detect get/put issues in ptunit-image

To ensure that we detect section use-count issues even if we (have to) ignore
the return value of pt_section_put(), indicate put calls on zero use-count in
the test file status.

Also count the number of deletes instead of just returning an error on double
free.

Change-Id: I2a47b077a2ac2fcca2b5a9fb8ee422f6074b8752
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
1 file changed