diff options
author | Davidlohr Bueso | 2011-07-24 17:22:52 +0200 |
---|---|---|
committer | Karel Zak | 2011-07-26 11:58:38 +0200 |
commit | fb4a9e54fc937d5e182f64ae2d0b09a1e05a3d1b (patch) | |
tree | 195f2fe1363f5881275110a00438121774ef6126 /lib/sysfs.c | |
parent | tests: add -o remount to libmount tests (diff) | |
download | kernel-qcow2-util-linux-fb4a9e54fc937d5e182f64ae2d0b09a1e05a3d1b.tar.gz kernel-qcow2-util-linux-fb4a9e54fc937d5e182f64ae2d0b09a1e05a3d1b.tar.xz kernel-qcow2-util-linux-fb4a9e54fc937d5e182f64ae2d0b09a1e05a3d1b.zip |
sysfs: free used resources
In the sysfs lib example, we should be using sysfs_deinit() to free used
resources and for correct usage.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'lib/sysfs.c')
-rw-r--r-- | lib/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c index b9ddc67f5..7bcdabae2 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -488,6 +488,7 @@ int main(int argc, char *argv[]) printf("DEVNAME: %s\n", sysfs_get_devname(&cxt, path, sizeof(path))); + sysfs_deinit(&cxt); return EXIT_SUCCESS; } #endif |