Blame SOURCES/0086-DYNDNS-remove-redundant-talloc_steal.patch
|
|
6cf099 |
From efbf0e362238eaf0330384caf057521968f25758 Mon Sep 17 00:00:00 2001
|
|
|
6cf099 |
From: Pavel Reichl <preichl@redhat.com>
|
|
|
6cf099 |
Date: Thu, 23 Jul 2015 04:50:38 -0400
|
|
|
6cf099 |
Subject: [PATCH 86/90] DYNDNS: remove redundant talloc_steal()
|
|
|
6cf099 |
|
|
|
6cf099 |
String 'update_msg' was already allocated on mem_ctx, so, there is no
|
|
|
6cf099 |
need to steal it.
|
|
|
6cf099 |
|
|
|
6cf099 |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
6cf099 |
(cherry picked from commit e4d6e9ccac14044d6bcd5a0dce7f45fdfab6bf3d)
|
|
|
6cf099 |
---
|
|
|
6cf099 |
src/providers/dp_dyndns.c | 3 ++-
|
|
|
6cf099 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
6cf099 |
|
|
|
6cf099 |
diff --git a/src/providers/dp_dyndns.c b/src/providers/dp_dyndns.c
|
|
|
6cf099 |
index 9a726bd431854342993212ce0a9759b86069cd5e..3171e6909e5f92a98cd506278e6e8c3418b979fe 100644
|
|
|
6cf099 |
--- a/src/providers/dp_dyndns.c
|
|
|
6cf099 |
+++ b/src/providers/dp_dyndns.c
|
|
|
6cf099 |
@@ -525,7 +525,8 @@ be_nsupdate_create_ptr_msg(TALLOC_CTX *mem_ctx, const char *realm,
|
|
|
6cf099 |
update_msg);
|
|
|
6cf099 |
|
|
|
6cf099 |
ret = ERR_OK;
|
|
|
6cf099 |
- *_update_msg = talloc_steal(mem_ctx, update_msg);
|
|
|
6cf099 |
+ *_update_msg = update_msg;
|
|
|
6cf099 |
+
|
|
|
6cf099 |
done:
|
|
|
6cf099 |
return ret;
|
|
|
6cf099 |
}
|
|
|
6cf099 |
--
|
|
|
6cf099 |
2.4.3
|
|
|
6cf099 |
|