Revision 10ddaca7 src/Cache/ncast_proto.c

View differences:

src/Cache/ncast_proto.c
72 72
int ncast_proto_myentry_update(struct ncast_proto_context *context, struct nodeID *s, int dts, const void *meta, int meta_size) {
73 73
  return topo_proto_myentry_update(context->context, s, dts, meta, meta_size);
74 74
}
75

  
76
void ncast_proto_destroy(struct ncast_proto_context ** c)
77
{
78
	if (c && *c)
79
	{
80
		if ((*c)->context)
81
			topo_proto_destroy(&((*c)->context));
82
		free(*c);
83
		*c = NULL;
84
	}
85
}

Also available in: Unified diff