diff options
author | Oliver Stöneberg <oliverst@online.de> | 2011-05-09 09:27:39 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-05-17 14:20:28 +0200 |
commit | e3311d03dba7ae281597cf5de235bcefda44457c (patch) | |
tree | ddc167d5c9493bf56f46d8729547bceda95d1990 /tests/torture.c | |
parent | 7f0761885cb21c2013f7b0fc562187a1909a2048 (diff) | |
download | libssh-e3311d03dba7ae281597cf5de235bcefda44457c.tar.gz libssh-e3311d03dba7ae281597cf5de235bcefda44457c.tar.xz libssh-e3311d03dba7ae281597cf5de235bcefda44457c.zip |
tests: Fixed some cppcheck warnings.
Diffstat (limited to 'tests/torture.c')
-rw-r--r-- | tests/torture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c index 1d45e42..ff57c64 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -132,6 +132,7 @@ int torture_rmdirs(const char *path) { rewinddir(d); } } else { + closedir(d); return -1; } @@ -257,6 +258,7 @@ failed: } ssh_disconnect(t->ssh); ssh_free(t->ssh); + free(t); return NULL; } |