1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r20276: remove unneeded talloc_strdup()

metze
This commit is contained in:
Stefan Metzmacher 2006-12-20 12:51:29 +00:00 committed by Gerald (Jerry) Carter
parent 4b9e196288
commit c4733b20c7

View File

@ -510,11 +510,11 @@ BOOL asn1_read_OID_String(struct asn1_data *data, const char **OID)
}
if (!data->has_error) {
*OID = talloc_strdup(NULL, tmp_oid);
if (!*OID) goto nomem;
*OID = tmp_oid;
} else {
talloc_free(tmp_oid);
}
talloc_free(tmp_oid);
return !data->has_error;
nomem:
talloc_free(tmp_oid);