- free rpmrc when looping on --target arches (#127730).
authorjbj <devnull@localhost>
Sun, 17 Oct 2004 19:00:10 +0000 (19:00 +0000)
committerjbj <devnull@localhost>
Sun, 17 Oct 2004 19:00:10 +0000 (19:00 +0000)
CVS patchset: 7479
CVS date: 2004/10/17 19:00:10

CHANGES
build.c

diff --git a/CHANGES b/CHANGES
index 2bbade8..81f4006 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -21,6 +21,7 @@
        - obsolete Serial:, Copyright:, and RHNPlatform: syntax in spec files.
        - permit Obsoletes: /path/to/file.
        - permit Conflicts: /path/to/file.
+       - free rpmrc when looping on --target arches (#127730).
 
 4.3.1 -> 4.3.2:
        - use /etc/selinux/targeted/contexts/files/file_contexts for now.
diff --git a/build.c b/build.c
index fc9df11..09f51e0 100644 (file)
--- a/build.c
+++ b/build.c
@@ -338,6 +338,7 @@ int build(rpmts ts, const char * arg, BTA_t ba, const char * rcfile)
 
        /* Read in configuration for target. */
        rpmFreeMacros(NULL);
+       rpmFreeRpmrc();
        (void) rpmReadConfigFiles(rcfile, target);
        rc = buildForTarget(ts, arg, ba);
        if (rc)
@@ -348,6 +349,7 @@ exit:
     vsflags = rpmtsSetVSFlags(ts, ovsflags);
     /* Restore original configuration. */
     rpmFreeMacros(NULL);
+    rpmFreeRpmrc();
     (void) rpmReadConfigFiles(rcfile, NULL);
 
     return rc;