summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-10-23 09:01:24 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-10-23 09:01:24 +0200
commit878cd6e8792d5ac03eea59fec9fe8e325440d50c (patch)
tree1d0bcb85c52daba96d1eb41adca28160bb118fa7 /file.h
parent86ba3c3565208414ddad81c088d2db646fd2d4c8 (diff)
file: fix memory leaksHEADmaster
Diffstat (limited to 'file.h')
-rw-r--r--file.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/file.h b/file.h
index 1ede156..a478e98 100644
--- a/file.h
+++ b/file.h
@@ -63,7 +63,8 @@ struct file *
file_new(const char *);
/*
- * Get the file basename.
+ * Get the file basename. Returns NULL in case of error or a malloced string in
+ * case of success.
*/
char *
file_get_basename(const struct file *);