diff --git a/dongle_infrastructure.h b/dongle_infrastructure.h
index a036b63a1f0f87467718127cb60f5ebf00025e87..7addfe6ec71d3a2a96f8c69a545d337df698b15b 100644
--- a/dongle_infrastructure.h
+++ b/dongle_infrastructure.h
@@ -50,5 +50,5 @@ int devices_status(struct uloop_timeout *t);
 struct ubus_object *dongle_create_dynamic_object(struct device *dev_instance);
 int publish_ubus_object(struct ubus_context *ctx, struct ubus_object *obj);
 int unpublish_ubus_object(struct ubus_context *ctx, struct ubus_object *obj);
-void dongle_destroy_dynamic_object(struct ubus_object *obj);
+void dongle_destroy_dynamic_object(struct ubus_object **obj);
 #endif