Removed some more halloc

This commit is contained in:
ridiculousfish
2012-02-09 02:01:49 -08:00
parent 19cfd9b5d6
commit e5bba2294d
3 changed files with 7 additions and 6 deletions

View File

@@ -1772,8 +1772,9 @@ static int builtin_function( parser_t &parser, wchar_t **argv )
{
function_data_t *d = new function_data_t();
d->name=halloc_wcsdup( parser.current_block, name);
d->description=desc?halloc_wcsdup( parser.current_block, desc):0;
d->name = name;
if (desc)
d->description = desc;
d->events.swap(events);
d->shadows = shadows;
if (named_arguments.get())