Hi List, there is a number of unneeded octstr_duplicate calls in the tree. These calls could easily be replaced by a octstr_getref that increments a refcounter inside the octstr. A refcount > 1 would make the octstr immutable (e.g. calls that modify the contents are forbidden). octstr_destroy would decrement the refcounter. Reaching zero would actually destroy the entity.
All these things seem rather easy and sensible. What do you think? Regards Jörg