pre/post script processing had some erroneous free() calls
authorewt <devnull@localhost>
Tue, 9 Sep 1997 21:00:48 +0000 (21:00 +0000)
committerewt <devnull@localhost>
Tue, 9 Sep 1997 21:00:48 +0000 (21:00 +0000)
CVS patchset: 1818
CVS date: 1997/09/09 21:00:48

CHANGES
lib/uninstall.c

diff --git a/CHANGES b/CHANGES
index 9fa0a4e..f8d2381 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,7 @@
        - updated fine-requires (Linux version) to add lines for shell
          scripts (Donnie Barnes)
        - didn't package / properly
+       - pre/post script processing had some erroneous free() calls
 
 2.4.5 -> 2.4.6:
        - added os_canon entries for BSD/OS and NextStep
index 9c1f9a1..1b528ca 100644 (file)
@@ -404,8 +404,10 @@ int runScript(char * prefix, Header h, int scriptTag, int progTag,
 
     waitpid(child, &status, 0);
 
-    if (script && !isdebug) unlink(fn);
-    free(fn);
+    if (script) {
+       if (!isdebug) unlink(fn);
+       free(fn);
+    }
 
     if (!WIFEXITED(status) || WEXITSTATUS(status)) {
        rpmError(RPMERR_SCRIPT, _("execution of script failed"));