This module works mostly with char* and allocates memory with
strdup ... delete doesn't go well with malloc(). The transition
to string only would be nice, but some class interfaces return
char*, so it was more natural to just drop the deletes.
if ( zonename != NULL ) {
char *tmp = zonename;
zonename = NULL;
- delete tmp;
+ free(tmp);
}
}
if ( zonename ) {
char *ptr = zonename;
zonename = NULL;
- delete ptr;
+ free(ptr);
}
zonename = strdup( zone.c_str() );