diff options
-rw-r--r-- | shlibs/mount/samples/mount.c | 2 | ||||
-rw-r--r-- | shlibs/mount/src/context.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/shlibs/mount/samples/mount.c b/shlibs/mount/samples/mount.c index 0a3c251bd..086391e90 100644 --- a/shlibs/mount/samples/mount.c +++ b/shlibs/mount/samples/mount.c @@ -101,7 +101,7 @@ static int print_all(struct libmnt_context *cxt, char *pattern, int show_label) { int rc = 0; struct libmnt_table *tb; - struct libmnt_iter *itr; + struct libmnt_iter *itr = NULL; struct libmnt_fs *fs; struct libmnt_cache *cache = NULL; diff --git a/shlibs/mount/src/context.c b/shlibs/mount/src/context.c index 1968a4b34..6b0edc55b 100644 --- a/shlibs/mount/src/context.c +++ b/shlibs/mount/src/context.c @@ -712,7 +712,8 @@ int mnt_context_get_fstab(struct libmnt_context *cxt, struct libmnt_table **tb) * @cxt: mount context * @tb: returns mtab * - * See also mnt_table_parse_mtab() for more details about mtab/mountinfo. + * See also mnt_table_parse_mtab() for more details about mtab/mountinfo. The + * result will deallocated by mnt_free_context(@cxt). * * Returns: 0 on success, negative number in case of error. */ |