On 03.03.2015 11:59, Alistair Leslie-Hughes wrote:
if(entry->type == DPNA_DATATYPE_STRING_ANSI)heap_free(entry->data.ansi);else if(entry->type == DPNA_DATATYPE_STRING)heap_free(entry->data.string);else if(entry->type == DPNA_DATATYPE_BINARY)heap_free(entry->data.string);
You can as well just call heap_free(entry->data.binary) for all those types (or add another neutral 'ptr' field).