Avoid freeing an unallocated variable (RhBug:688091)
authorJindrich Novy <jnovy@redhat.com>
Wed, 16 Mar 2011 14:07:55 +0000 (15:07 +0100)
committerJindrich Novy <jnovy@redhat.com>
Wed, 16 Mar 2011 14:07:55 +0000 (15:07 +0100)
lib/manifest.c

index 08c8c84..5d71f3f 100644 (file)
@@ -96,6 +96,7 @@ rpmRC rpmReadPackageManifest(FD_t fd, int * argcPtr, char *** argvPtr)
 
        /* Sanity checks: skip obviously binary lines and dash (for stdin) */
        if (*s < 32 || rstreq(s, "-")) {
+           s = NULL;
            rpmrc = RPMRC_NOTFOUND;
            goto exit;
        }