diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-04-29 14:08:43 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-04-29 14:08:43 -0400 |
commit | ed8c67e2908f0370b8d665ebc09f75e784dafeac (patch) | |
tree | 1f10e0f9ed77b680ca1f5cf151df3e4b4c707817 /common/stringop.c | |
parent | fb41371444110949c54d5a60e917a0bb6fa9d366 (diff) | |
parent | e1fa51a152bc417e1085867dc6fc00e197f26a0f (diff) | |
download | sway-ed8c67e2908f0370b8d665ebc09f75e784dafeac.tar.xz |
Merge pull request #615 from neosilky/memleak
Cleaned up some un-free'd memory
Diffstat (limited to 'common/stringop.c')
-rw-r--r-- | common/stringop.c | 2 |
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); |