get_prop and find_prop do indeed return const chars; they are internally freed when the whole property list is freed. Remove excess free from get_property_value
type fixes