Now that asprintf(3) return value is checked in conf_load(), make the
code release the memory returned by fparseln(3) and fclose(3) the
configuration file FILE pointer.
Style nit fixed while there.
ok marco
- if(asprintf(&optsub, "%.*s", wordlen, cp) ==
+ if (asprintf(&optsub, "%.*s", wordlen, cp) ==
-1) {
warnx("%s: line %zd: unable to allocate"
"memory for selector", filename,
lineno);
-1) {
warnx("%s: line %zd: unable to allocate"
"memory for selector", filename,
lineno);