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:
parent
4b9e196288
commit
c4733b20c7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user