Skip to contentSkip to conversation

sysfs: free used resources

PATCH Applied Davidlohr Bueso 2 participants 2 messages Jul 24, 2011 – Jul 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 lib/sysfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
lib/sysfs.c +1 -0
index b9ddc67..7bcdaba 100644
@@ -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
maintainer Applied
#1 lore raw
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