(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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user