libipt: detect get/put issues in ptunit-image
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 <5f675b2b36595f90898e014b548ff7d9bbff2ab7@intel.com>

01org/processor-trace,01org/processor-trace,01org/processor-trace