Blob Blame History Raw
From efbf0e362238eaf0330384caf057521968f25758 Mon Sep 17 00:00:00 2001
From: Pavel Reichl <preichl@redhat.com>
Date: Thu, 23 Jul 2015 04:50:38 -0400
Subject: [PATCH 86/90] 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 <jhrozek@redhat.com>
(cherry picked from commit e4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d)
---
 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 9a726bd431854342993212ce0a9759b86069cd5e..3171e6909e5f92a98cd506278e6e8c3418b979fe 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;
 }
-- 
2.4.3