diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-22 14:43:20 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-22 14:43:20 -0400 |
commit | f4f3abc9549d038d4d1d9a58d06471ce5435eb25 (patch) | |
tree | 99da029e6c394df8ceeb77f575b4cae974bf7845 /bus.c | |
parent | cf7bc9aa99868c38ebb3fe032485e0513f493526 (diff) |
fix memory leaks
Diffstat (limited to 'bus.c')
-rw-r--r-- | bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |