Commit e2d3bba8 authored by Marco Diego Aurélio Mesquita's avatar Marco Diego Aurélio Mesquita Committed by Benno Schulenberg
Browse files

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

Signed-off-by: default avatarMarco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
Showing with 0 additions and 2 deletions
+0 -2
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment