diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-07-30 15:06:04 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-07-30 15:06:04 -0700 |
| commit | 18e8a131f58a54008512b05062382900027bf1d9 (patch) | |
| tree | 495c1991b68c79e5f118ab35cd224e963ab25743 /bp.c | |
| parent | 3e63da180bc6cbce7c0673419a1a4a0f021591bb (diff) | |
xfree() -> delete()
Diffstat (limited to 'bp.c')
| -rw-r--r-- | bp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
