general: do not free strings gotten from getenv(), to avoid a crash

Signed-off-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
master
Marco Diego Aurélio Mesquita 2017-11-09 18:48:24 -02:00 committed by Benno Schulenberg
parent 4567360d01
commit e2d3bba86c
2 changed files with 0 additions and 2 deletions

View File

@ -271,7 +271,6 @@ bool have_statedir(void)
if (xdgdatadir != NULL) {
statedir = concatenate(xdgdatadir, "/nano/");
free(xdgdatadir);
} else
statedir = concatenate(homedir, XDG_DATA_FALLBACK "/nano/");

View File

@ -1258,7 +1258,6 @@ void do_rcfiles(void)
check_vitals_mapped();
free(xdgconfdir);
free(nanorc);
}