void sml_get_profile_pack_response_free(sml_get_profile_pack_response *msg){
	if (msg) {
		sml_octet_string_free(msg->server_id);
		sml_time_free(msg->act_time);
		sml_number_free(msg->reg_period);
		sml_tree_path_free(msg->parameter_tree_path);
		sml_sequence_free(msg->header_list);
		sml_sequence_free(msg->period_list);
		sml_octet_string_free(msg->rawdata);
		sml_signature_free(msg->profile_signature);

		free(msg);
	}
}
static void sml_prof_obj_period_entry_free_( void * p ) {
	sml_prof_obj_period_entry * entry = p;

	if (entry) {
		sml_time_free(entry->val_time);
		sml_number_free(entry->status);
		sml_sequence_free(entry->value_list);
		sml_signature_free(entry->period_signature);

		free(entry);
	}
}
Esempio n. 3
0
TEST(sml_sequence, free_octet_string) {
	sml_sequence *seq = sml_sequence_init((void (*)(void *))&sml_octet_string_free);
	sml_sequence_add(seq, sml_octet_string_init((unsigned char *)"Hallo", 5));
	sml_sequence_free(seq);
}