sysfs: free used resources
Subsystems (2)
PATCH 1/1 sysfs: free used resources
From: Davidlohr Bueso <[email protected]>
Date: Sun, 24 Jul 2011 11:22:52 -0400
In the sysfs lib example, we should be using sysfs_deinit() to free used resources and for correct usage.
Signed-off-by Davidlohr Bueso <[email protected]>
--- lib/sysfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/sysfs.c +1 -0
@@ -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
Signature · 1 line
1.7.4.1
Quoted 2 lines · Davidlohr Bueso
lib/sysfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com