Fix memleak in commit dd4f2c68a0

This commit is contained in:
Panu Matilainen 2022-03-03 12:19:50 +02:00
parent dd4f2c68a0
commit 2cf26bdd2f
1 changed files with 2 additions and 2 deletions

View File

@ -748,9 +748,9 @@ static int archsuffixTag(Header h, rpmtd td, headerGetFlags hgflags)
if (headerIsSource(h)) {
if (headerIsEntry(h, RPMTAG_NOSOURCE) ||
headerIsEntry(h, RPMTAG_NOPATCH))
a = xstrdup("nosrc");
a = "nosrc";
else
a = xstrdup("src");
a = "src";
} else {
a = headerGetString(h, RPMTAG_ARCH);
}