general: do not free strings gotten from getenv(), to avoid a crash
Signed-off-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>master
parent
4567360d01
commit
e2d3bba86c
|
@ -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/");
|
||||
|
||||
|
|
|
@ -1258,7 +1258,6 @@ void do_rcfiles(void)
|
|||
|
||||
check_vitals_mapped();
|
||||
|
||||
free(xdgconfdir);
|
||||
free(nanorc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue