Revision 10ddaca7 src/Cache/topo_proto.c

View differences:

src/Cache/topo_proto.c
156 156

  
157 157
  return con;
158 158
}
159

  
160
void topo_proto_destroy(struct topo_context ** t)
161
{
162
	if (t && *t)
163
	{
164
		if ((*t)->pkt)
165
			free((*t)->pkt);
166
		if ((*t)->myEntry)
167
			cache_free((*t)->myEntry);
168
		free(*t);
169
		*t = NULL;
170
	}
171
}

Also available in: Unified diff