core: pvapi: added pv_spec_free_contents()