2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Huh, memory management is jam is tricky.

[SVN r21209]
This commit is contained in:
Vladimir Prus
2003-12-10 15:28:30 +00:00
parent 568d9e83df
commit cc1cfed76e
2 changed files with 8 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ rule create ( raw-properties * )
LIST *property_set_create( PARSE *parse, FRAME *frame )
{
LIST* properties = lol_get( frame->args, 0 );
LIST* sorted = list_short(properties);
LIST* sorted = list_sort(properties);
LIST* unique = list_unique(sorted);
LIST* val;
@@ -63,8 +63,10 @@ LIST *property_set_create( PARSE *parse, FRAME *frame )
}
string_free(var);
/* The 'unique' is freed in 'frame_free' class. */
list_free(sorted);
list_free(unique);
return val;

View File

@@ -26,7 +26,7 @@ rule create ( raw-properties * )
LIST *property_set_create( PARSE *parse, FRAME *frame )
{
LIST* properties = lol_get( frame->args, 0 );
LIST* sorted = list_short(properties);
LIST* sorted = list_sort(properties);
LIST* unique = list_unique(sorted);
LIST* val;
@@ -63,8 +63,10 @@ LIST *property_set_create( PARSE *parse, FRAME *frame )
}
string_free(var);
/* The 'unique' is freed in 'frame_free' class. */
list_free(sorted);
list_free(unique);
return val;