aboutsummaryrefslogtreecommitdiffstats
path: root/epan/filesystem.h
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-02-26 18:58:12 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-02-26 18:58:12 +0000
commit9fdc3e961d7b6c0731ad218095961763428a1baf (patch)
tree30b444d7a2296f0b4f5db3fce7b96aefab6f583f /epan/filesystem.h
parentc5e560d530fb6513ed1e0a63382661fa7dc07647 (diff)
get_datafile_path() and get_persconffile_path() return malloc'd memory. Note that in the comments.
svn path=/trunk/; revision=24476
Diffstat (limited to 'epan/filesystem.h')
-rw-r--r--epan/filesystem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h
index 42bf4f8906..9f7de24b90 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -65,6 +65,9 @@ extern const char *get_datafile_dir(void);
/*
* Construct the path name of a global configuration file, given the
* file name.
+ *
+ * The returned file name was g_malloc()'d so it must be g_free()d when the
+ * caller is done with it.
*/
extern char *get_datafile_path(const char *filename);
@@ -144,6 +147,9 @@ extern int create_persconffile_dir(char **pf_dir_path_return);
* subdirectory of the user's home directory, and check whether that
* exists; if it does, we return that, so that configuration files
* from earlier versions can be read.
+ *
+ * The returned file name was g_malloc()'d so it must be g_free()d when the
+ * caller is done with it.
*/
extern char *get_persconffile_path(const char *filename, gboolean from_profile,
gboolean for_writing);