headerGetEntry(h, RPMTAG_FILEMODES, NULL, (void **) &fileModes, NULL);
headerGetEntry(h, RPMTAG_FILESIZES, NULL, (void **) &fileSizes, NULL);
headerGetEntry(h, RPMTAG_FILELINKTOS, NULL, (void **) &mem->links, NULL);
- languages = NULL;
- headerGetEntry(h, RPMTAG_FILELANGS, NULL, (void **) &fileLangs, NULL);
+ if (!headerGetEntry(h, RPMTAG_FILELANGS, NULL, (void **) &fileLangs, NULL))
+ fileLangs = NULL;
if ((chptr = getenv("LINGUAS"))) {
languages = splitString(chptr, strlen(chptr), ':');
}
}
+ if (fileLangs) free(fileLangs);
+ if (languages) freeSplitString(languages);
+
return 0;
}
numToKeep);
headerModifyEntry(h, RPMTAG_CHANGELOGTEXT, RPM_STRING_ARRAY_TYPE, texts,
numToKeep);
+
+ free(names);
+ free(texts);
}
/* 0 success */
}
}
- if (netsharedPaths) free(netsharedPaths);
+ if (netsharedPaths) freeSplitString(netsharedPaths);
rc = instHandleSharedFiles(db, otherOffset, files, fileCount,
toRemove, &replacedList, flags);
((notify && archiveSize) || specFile) ?
callback : NULL,
&info, &failedFile);
+ gzclose(stream);
if (rc) {
/* this would probably be a good place to check if disk space