aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-04-29 14:08:43 -0400
committerDrew DeVault <sir@cmpwn.com>2016-04-29 14:08:43 -0400
commited8c67e2908f0370b8d665ebc09f75e784dafeac (patch)
tree1f10e0f9ed77b680ca1f5cf151df3e4b4c707817 /common
parentfb41371444110949c54d5a60e917a0bb6fa9d366 (diff)
parente1fa51a152bc417e1085867dc6fc00e197f26a0f (diff)
downloadsway-ed8c67e2908f0370b8d665ebc09f75e784dafeac.tar.xz
Merge pull request #615 from neosilky/memleak
Cleaned up some un-free'd memory
Diffstat (limited to 'common')
-rw-r--r--common/stringop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/stringop.c b/common/stringop.c
index 61324458..432bee7f 100644
--- a/common/stringop.c
+++ b/common/stringop.c
@@ -144,7 +144,7 @@ char **split_args(const char *start, int *argc) {
}
void free_argv(int argc, char **argv) {
- while (--argc > 0) {
+ while (argc-- > 0) {
free(argv[argc]);
}
free(argv);