search for: path_etc

Displaying 1 result from an estimated 1 matches for "path_etc".

2011 Jan 19
1
[nut-commits] svn commit r2845 - branches/windows_port/common
...(void) > { > - const char * path; > - > - if ((path = getenv("NUT_CONFPATH")) == NULL) { > #ifndef WIN32 > - path = CONFPATH; > + const char *path = getenv("NUT_CONFPATH"); > #else > - if( relative_conf_path == NULL ) { > - path = getfullpath(PATH_ETC); > - if( path == NULL ) { > - path = CONFPATH; > - } > - } > - else { > - path = relative_conf_path; > - } > + static const char *path = getfullpath(PATH_ETC); getfullpath is allocating memory with xstrdup. Doesn't this line produce a memory leak ? >...