summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-05-23 15:44:26 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-05-23 15:44:26 -0700
commit58d4b018eaf3840341c0815bb177521e6311a665 (patch)
tree35e64f971c14b1ad120a84593fcaebfb4e293b6b
parent8e614188ba9ee7cd0c87804555a352d1248efa11 (diff)
Plug memory leaks (Coverity ids 570 & 571)
-rw-r--r--xfsinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xfsinfo.c b/xfsinfo.c
index b78a084..5ff9952 100644
--- a/xfsinfo.c
+++ b/xfsinfo.c
@@ -139,6 +139,7 @@ print_catalogue_info(FSServer *svr)
for (i = 0; i < n; i++) {
printf(" %s\n", cats[i]);
}
+ FSFreeCatalogues(cats);
}
}
@@ -155,6 +156,7 @@ print_extension_info(FSServer *svr)
for (i = 0; i < n; i++) {
printf(" %s\n", extlist[i]);
}
+ FSFreeExtensionList(extlist);
}
}