From 6fd2be56ae3c2a34344a417469748ba5cb79713c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 2 Jan 2006 15:48:24 +0000 Subject: [PATCH] (oidtostring): avoid leaking memory git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16429 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/name.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hx509/name.c b/lib/hx509/name.c index 8c79d148b..7eeb54918 100644 --- a/lib/hx509/name.c +++ b/lib/hx509/name.c @@ -141,6 +141,7 @@ oidtostring(const heim_oid *type) for (i = 0; i < type->length; i++) { asprintf(&ss, "%u", type->components[i]); append_string(&s, &total_len, ss, strlen(ss), 0); + free(ss); if (i + 1 < type->length) append_string(&s, &total_len, ".", 1, 0); }