Plug memleak from a thinko in commit 9929459f9967ecfe0a05d557bc42531944faa70a
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 16 Apr 2013 07:03:03 +0000 (10:03 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 09:22:24 +0000 (12:22 +0300)
(cherry picked from commit 66b68d455dd117dbc4d28c45c6a7e427f79e471c)

build/spec.c

index f7554d3..186c5fb 100644 (file)
@@ -85,7 +85,7 @@ rpmRC lookupPackage(rpmSpec spec, const char *name, int flag,Package *pkg)
            break;
        }
     }
-    if (fullName != name)
+    if (fullName == name)
        free(fullName);
 
     if (pkg)