1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

dont use talloc_steal() on a object that is already a child of ctdb.

(This used to be ctdb commit 50c2caed57c0520f506eaaeeb0bba2c272da6ef6)
This commit is contained in:
Ronnie Sahlberg 2009-11-27 13:28:31 +11:00
parent eaa6218def
commit 266a163c89

View File

@ -241,7 +241,7 @@ int32_t ctdb_control_event_script_finished(struct ctdb_context *ctdb)
talloc_free(ctdb->last_monitor_status_ctx);
ctdb->last_monitor_status_ctx = NULL;
}
ctdb->last_monitor_status_ctx = talloc_steal(ctdb, ctdb->current_monitor_status_ctx);
ctdb->last_monitor_status_ctx = ctdb->current_monitor_status_ctx);
ctdb->current_monitor_status_ctx = NULL;
return 0;