1
0
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:
Volker Lendecke 2018-04-10 21:18:15 +02:00 committed by Jeremy Allison
parent 6a9bc0fa20
commit e7522a4ff8

View File

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