static char * permsFormat(rpmtd td, char * formatPrefix)
{
char * val = NULL;
- char * buf;
if (rpmtdClass(td) != RPM_NUMERIC_CLASS) {
val = xstrdup(_("(not a number)"));
} else {
+ char *buf = rpmPermsString(rpmtdGetNumber(td));
strcat(formatPrefix, "s");
- buf = rpmPermsString(rpmtdGetNumber(td));
rasprintf(&val, formatPrefix, buf);
- buf = _free(buf);
+ free(buf);
}
return val;
t = stpcpy(t, tempstr);
free(tempstr);
- dig = pgpFreeDig(dig);
+ pgpFreeDig(dig);
}
}
strcat(formatPrefix, "s");
char *buf = rpmVerifyString(rpmtdGetNumber(td), pad);
rasprintf(&val, formatPrefix, buf);
- buf = _free(buf);
+ free(buf);
}
return val;
}
return (void *) ei;
errxit:
- ei = _free(ei);
+ free(ei);
return NULL;
}
nb = Fwrite(uh, sizeof(char), length, fd);
exit:
- uh = _free(uh);
+ free(uh);
return (nb == length ? 0 : 1);
}
}
rpmtdFreeData(&td);
}
- hi = headerFreeIterator(hi);
+ headerFreeIterator(hi);
return headerReload(nh, RPMTAG_HEADERIMAGE);
}
rc = 1;
exit:
- fi = rpmfiFree(fi);
- ds = rpmdsFree(ds);
+ rpmfiFree(fi);
+ rpmdsFree(ds);
return rc;
}
rc = 1;
exit:
- fi = rpmfiFree(fi);
+ rpmfiFree(fi);
return rc;
}
return 1;
}
- dstring = _free(dstring);
+ free(dstring);
#endif
rc = headerGet(h, tag, td, HEADERGET_ALLOC);