From e4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Thu, 23 Jul 2015 04:50:38 -0400 Subject: DYNDNS: remove redundant talloc_steal() String 'update_msg' was already allocated on mem_ctx, so, there is no need to steal it. Reviewed-by: Jakub Hrozek --- src/providers/dp_dyndns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/dp_dyndns.c b/src/providers/dp_dyndns.c index 9a726bd43..3171e6909 100644 --- a/src/providers/dp_dyndns.c +++ b/src/providers/dp_dyndns.c @@ -525,7 +525,8 @@ be_nsupdate_create_ptr_msg(TALLOC_CTX *mem_ctx, const char *realm, update_msg); ret = ERR_OK; - *_update_msg = talloc_steal(mem_ctx, update_msg); + *_update_msg = update_msg; + done: return ret; } -- cgit