refactor(options): remove OPT_FREE (#26963)

Problem: `OPT_FREE` macro doesn't seem to do anything as `P_ALLOCED`
already handles allocations.

Solution: Remove `OPT_FREE`.
This commit is contained in:
Famiu Haque
2024-01-10 04:15:22 +06:00
committed by GitHub
parent 501cf32357
commit 10f36af84d
15 changed files with 34 additions and 39 deletions

View File

@@ -5091,7 +5091,7 @@ void ex_cfile(exarg_T *eap)
}
}
if (*eap->arg != NUL) {
set_string_option_direct(kOptErrorfile, eap->arg, OPT_FREE, 0);
set_string_option_direct(kOptErrorfile, eap->arg, 0, 0);
}
char *enc = (*curbuf->b_p_menc != NUL) ? curbuf->b_p_menc : p_menc;