Revert "plug memory leak in spec parsing code"
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 26 Jul 2008 07:56:02 +0000 (10:56 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 26 Jul 2008 07:56:02 +0000 (10:56 +0300)
This reverts commit ac3bd07ef2a11cbe9e7f7031786eebc8851c863b.
- It's not a leak, valueMakeString() doesn't make a copy of the argument
  string and the free() causes invalid memory access

build/expression.c

index 6927724..970ec05 100644 (file)
@@ -280,7 +280,6 @@ static int rdToken(ParseState state)
 
       token = TOK_IDENTIFIER;
       v = valueMakeString(temp);
-      free(temp);
 
     } else if (*p == '\"') {
       char *temp;