@@ -84,16 +84,14 @@ *iter->argumentPtr = nil; count++; } + _options = of_malloc(count + 1, sizeof(*_options)); _longOptions = [[OFMapTable alloc] initWithKeyFunctions: keyFunctions objectFunctions: objectFunctions]; - _options = [self - allocMemoryWithSize: sizeof(*_options) - count: count + 1]; for (iter = options, iter2 = _options; iter->shortOption != '\0' || iter->longOption != nil; iter++, iter2++) { iter2->shortOption = iter->shortOption; @@ -144,10 +142,11 @@ - (void)dealloc { of_options_parser_option_t *iter; + free(_options); [_longOptions release]; if (_options != NULL) for (iter = _options; iter->shortOption != '\0' || iter->longOption != nil;