summaryrefslogtreecommitdiff
path: root/bus.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-22 14:43:20 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-22 14:43:20 -0400
commitf4f3abc9549d038d4d1d9a58d06471ce5435eb25 (patch)
tree99da029e6c394df8ceeb77f575b4cae974bf7845 /bus.c
parentcf7bc9aa99868c38ebb3fe032485e0513f493526 (diff)
fix memory leaks
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus.c b/bus.c
index 26963cc..2bebb57 100644
--- a/bus.c
+++ b/bus.c
@@ -274,7 +274,7 @@ static int gpio_readvalue(unsigned base, unsigned io)
gpio_getvaluenodepath(base, io, path);
FILE* valuefile = fopen(path, "r");
if (valuefile != NULL) {
- char value[2]; // value will be a single char and \n
+ char value[2]; // value will be a single char and \n
fread(value, 1, 2, valuefile);
fclose(valuefile);
return atoi(value);