default:
/* Check nmh Mail directory */
- if (access ((cp = m_mailpath (file)), R_OK) != NOTOK)
+ if (access ((cp = m_mailpath (file)), R_OK) != NOTOK) {
+ /* Will leak because caller doesn't know cp was
+ dynamically allocated. */
return cp;
+ } else {
+ free (cp);
+ }
}
/* Check nmh `etc' directory */
char *incproc = nmhbindir (/inc);
-/*
- * When a user runs an nmh program for the first time, this program
- * is called to create his nmh profile, and mail directory.
- */
-
-char *installproc = nmhlibdir (/install-mh);
-
/*
* This is the default program invoked by a "list" response
* at the "What now?" prompt. It is also used by the draft