aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-30 15:06:04 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-30 15:06:04 -0700
commit18e8a131f58a54008512b05062382900027bf1d9 (patch)
tree495c1991b68c79e5f118ab35cd224e963ab25743 /bp.c
parent3e63da180bc6cbce7c0673419a1a4a0f021591bb (diff)
xfree() -> delete()
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bp.c b/bp.c
index 925fe31..b36607e 100644
--- a/bp.c
+++ b/bp.c
@@ -271,7 +271,7 @@ static void confirm_replacements(file_t *f, match_t *m, confirm_t *confirm)
default: goto retry;
}
}
- if (answer) xfree(&answer);
+ if (answer) delete(&answer);
fprintf(tty_out, "\n");
}
@@ -473,7 +473,7 @@ static int process_git_files(def_t *defs, pat_t *pattern, int argc, char *argv[]
if (path[len-1] == '\n') path[len-1] = '\0';
found += process_file(defs, path, pattern);
}
- if (path) xfree(&path);
+ if (path) delete(&path);
check_nonnegative(fclose(fp), "Failed to close read end of pipe");
int status;
while (waitpid(child, &status, 0) != child) continue;