]> diplodocus.org Git - nmh/commitdiff
path.c: Add comments declaring return values must be free(3)'d.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 11 Sep 2017 17:28:10 +0000 (18:28 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 11 Sep 2017 17:28:10 +0000 (18:28 +0100)
Saves working it out afresh each visit.

sbr/path.c

index ecd2eb8..9f70bc1 100644 (file)
@@ -22,12 +22,16 @@ static char *pwds;
 static char *expath(char *,int);
 static void compath(char *);
 
 static char *expath(char *,int);
 static void compath(char *);
 
+
+/* Return value must be free(3)'d. */
 char *
 pluspath(char *name)
 {
        return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF);
 }
 
 char *
 pluspath(char *name)
 {
        return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF);
 }
 
+
+/* Return value must be free(3)'d. */
 char *
 path(char *name, int flag)
 {
 char *
 path(char *name, int flag)
 {
@@ -42,6 +46,7 @@ path(char *name, int flag)
 }
 
 
 }
 
 
+/* Return value must be free(3)'d. */
 static char *
 expath (char *name, int flag)
 {
 static char *
 expath (char *name, int flag)
 {