(oidtostring): avoid leaking memory

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16429 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-02 15:48:24 +00:00
parent 34e449f026
commit 6fd2be56ae

View File

@@ -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);
}