projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c47981
)
Revert "plug memory leak in spec parsing code"
author
Panu Matilainen
<pmatilai@redhat.com>
Sat, 26 Jul 2008 07:56:02 +0000
(10:56 +0300)
committer
Panu 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
patch
|
blob
|
history
diff --git
a/build/expression.c
b/build/expression.c
index
6927724
..
970ec05
100644
(file)
--- 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;