Plug a memory leak from commit 170bc61a33

This commit is contained in:
Panu Matilainen 2018-06-06 12:44:11 +03:00
parent 3837ecce3b
commit a8436c52ec
1 changed files with 3 additions and 1 deletions

View File

@ -290,8 +290,10 @@ const char *rpmsinfoDescr(struct rpmsinfo_s *sinfo)
break;
case RPMSIG_SIGNATURE_TYPE:
if (sinfo->sig) {
char *t = pgpIdentItem(sinfo->sig);
rasprintf(&sinfo->descr, _("%s%s"),
rangeName(sinfo->range), pgpIdentItem(sinfo->sig));
rangeName(sinfo->range), t);
free(t);
} else {
rasprintf(&sinfo->descr, _("%s%s %s"),
rangeName(sinfo->range),