Re: [2/3] dpnet: Free previous allocated data
3 Mar
2015
3 Mar
'15
9:07 a.m.
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).
4027
Age (days ago)
4027
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov