summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-07 17:00:49 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-07 17:00:49 +0300
commitec65f5e5f0a56b398878f5087685b71942db362a (patch)
tree2ec1ae248d50a7d61faaf7f2f619fbd562bf8b79 /build
parentcaa6dc91acd958928eeaf440ade7f01311bcf330 (diff)
downloadrpm-ec65f5e5f0a56b398878f5087685b71942db362a.tar.gz
rpm-ec65f5e5f0a56b398878f5087685b71942db362a.tar.bz2
rpm-ec65f5e5f0a56b398878f5087685b71942db362a.zip
Move rl to the scope where its needed, dont bother assigning NULL
Diffstat (limited to 'build')
-rw-r--r--build/spec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/spec.c b/build/spec.c
index 64abd37bb..a867500ad 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -460,7 +460,6 @@ rpmSpec newSpec(void)
rpmSpec freeSpec(rpmSpec spec)
{
- struct ReadLevelEntry *rl;
if (spec == NULL) return NULL;
@@ -481,10 +480,10 @@ rpmSpec freeSpec(rpmSpec spec)
closeSpec(spec);
while (spec->readStack) {
- rl = spec->readStack;
+ struct ReadLevelEntry *rl = spec->readStack;
spec->readStack = rl->next;
rl->next = NULL;
- rl = _free(rl);
+ free(rl);
}
spec->sourceRpmName = _free(spec->sourceRpmName);