CVS patchset: 7241
CVS date: 2004/04/19 12:06:30
} else if (*arg != '/') {
const char *curDir = currentDirectory();
fn = rpmGetPath(curDir, "/", arg, NULL);
- _free(curDir);
+ curDir = _free(curDir);
} else
fn = xstrdup(arg);
(void) rpmCleanPath(fn);
/* If we are in test mode, there is no need to rollback on
* failure, nor acquire the transaction lock.
*/
+/*@-branchstate@*/
if (rpmtsFlags(ts) & RPMTRANS_FLAG_TEST) {
rollbackOnFailure = 0;
} else {
if (lock == NULL)
return -1; /* XXX W2DO? */
}
+/*@=branchstate@*/
if (rpmtsFlags(ts) & RPMTRANS_FLAG_NOSCRIPTS)
(void) rpmtsSetFlags(ts, (rpmtsFlags(ts) | _noTransScripts | _noTransTriggers));