aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/torture_misc.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-03-13 16:59:26 +0100
committerAndreas Schneider <mail@cynapses.org>2010-03-13 16:59:26 +0100
commit4516e7bdcbec3fe38bb9f988f9fc9ba71589438e (patch)
tree191badec0486ff10b6d9b79f2095f78677c6b5e5 /tests/unittests/torture_misc.c
parent90d72c214ece305f81573c873799b091f59f3207 (diff)
downloadlibssh-4516e7bdcbec3fe38bb9f988f9fc9ba71589438e.tar.gz
libssh-4516e7bdcbec3fe38bb9f988f9fc9ba71589438e.tar.xz
libssh-4516e7bdcbec3fe38bb9f988f9fc9ba71589438e.zip
Fixed a memory leak in the torture_get_user_home_dir test.
Diffstat (limited to 'tests/unittests/torture_misc.c')
-rw-r--r--tests/unittests/torture_misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c
index bc0442c1..088052ec 100644
--- a/tests/unittests/torture_misc.c
+++ b/tests/unittests/torture_misc.c
@@ -15,8 +15,9 @@ START_TEST (torture_get_user_home_dir)
pwd = getpwuid(getuid());
user = ssh_get_user_home_dir();
-
ck_assert_str_eq(user, pwd->pw_dir);
+
+ SAFE_FREE(user);
}
END_TEST