projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jshn: main: fix leak of memory pointed to by 'vars'
[project/libubox.git]
/
jshn.c
diff --git
a/jshn.c
b/jshn.c
index 1efe2548b74b9f57b5eb401aa5be2369187b3423..2eebe6c3df09520bb7883062b9b90bcf82ed3fb0 100644
(file)
--- a/
jshn.c
+++ b/
jshn.c
@@
-443,12
+443,15
@@
int main(int argc, char **argv)
indent = true;
break;
default:
+ free(vars);
return usage(argv[0]);
}
}
+ free(vars);
return usage(argv[0]);
exit:
+ free(vars);
return ret;
}