summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2015-07-23 04:50:38 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-08-14 23:54:40 +0200
commite4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d (patch)
treea0e7a05b8cd2b7b96a55f07ab23f700ab5f73e3e
parent7c3cc1ee2914bc7b38a992c1af254fc76af5a1ad (diff)
downloadsssd-e4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d.tar.gz
sssd-e4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d.tar.xz
sssd-e4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d.zip
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>
-rw-r--r--src/providers/dp_dyndns.c3
1 files changed, 2 insertions, 1 deletions
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;
}