aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.c
diff options
context:
space:
mode:
authorOliver Stöneberg <oliverst@online.de>2011-05-09 09:27:39 -0700
committerAndreas Schneider <asn@cryptomilk.org>2011-05-17 14:20:28 +0200
commite3311d03dba7ae281597cf5de235bcefda44457c (patch)
treeddc167d5c9493bf56f46d8729547bceda95d1990 /tests/torture.c
parent7f0761885cb21c2013f7b0fc562187a1909a2048 (diff)
downloadlibssh-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.c2
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;
}