summaryrefslogtreecommitdiff
path: root/build/expression.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-07-26 10:56:02 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-07-26 10:56:02 +0300
commit35a08d1df2cb607db8d638d6d43c6125d5688860 (patch)
treed6560445a800f36224c7f6d40ca0301be9cc9a3a /build/expression.c
parent7c4798116adb2b050016b8751b4b236efc4098a1 (diff)
downloadlibrpm-tizen-35a08d1df2cb607db8d638d6d43c6125d5688860.tar.gz
librpm-tizen-35a08d1df2cb607db8d638d6d43c6125d5688860.tar.bz2
librpm-tizen-35a08d1df2cb607db8d638d6d43c6125d5688860.zip
Revert "plug memory leak in spec parsing code"
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
Diffstat (limited to 'build/expression.c')
-rw-r--r--build/expression.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/build/expression.c b/build/expression.c
index 692772467..970ec05e6 100644
--- a/build/expression.c
+++ b/build/expression.c
@@ -280,7 +280,6 @@ static int rdToken(ParseState state)
token = TOK_IDENTIFIER;
v = valueMakeString(temp);
- free(temp);
} else if (*p == '\"') {
char *temp;