]> diplodocus.org Git - nmh/blobdiff - config/config.c
Update with more information.
[nmh] / config / config.c
index 2b999f8..d29f8a2 100644 (file)
@@ -68,8 +68,13 @@ try_it:
 
        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 */