From c9f1585e67717068e82ba22bc498aabf2954c113 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Aug 2013 16:07:25 +0200 Subject: libmount: add reference counter to libmnt_table Signed-off-by: Karel Zak --- libmount/src/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmount/src/cache.c') diff --git a/libmount/src/cache.c b/libmount/src/cache.c index cf5c6d43..92f46945 100644 --- a/libmount/src/cache.c +++ b/libmount/src/cache.c @@ -81,7 +81,8 @@ struct libmnt_cache *mnt_new_cache(void) * mnt_free_cache: * @cache: pointer to struct libmnt_cache instance * - * Deallocates the cache. + * Deallocates the cache. This function does not care about reference count. Don't + * use this function directly -- it's better to use use mnt_unref_cache(). */ void mnt_free_cache(struct libmnt_cache *cache) { -- cgit v1.2.3