mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
dnsrpc: Use TALLOC_FREE instead of an explicit if-statement
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
6a9bc0fa20
commit
e7522a4ff8
@ -219,9 +219,7 @@ int dns_split_name_components(TALLOC_CTX *tmp_ctx, const char *name, char ***com
|
||||
return count;
|
||||
|
||||
failed:
|
||||
if (str) {
|
||||
talloc_free(str);
|
||||
}
|
||||
TALLOC_FREE(str);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user