#[unsafe(no_mangle)]pub extern "C" fn dmsc_app_builder_free(builder: *mut CDMSCAppBuilder)Expand description
Frees a previously allocated CDMSCAppBuilder instance.
Releases all memory associated with the builder including any registered configurations, module references, or internal state. After this function returns, the pointer becomes invalid.
§Parameters
builder: Pointer to CDMSCAppBuilder to free. If NULL, the function returns immediately without error.
§Behavior
The destructor:
- Clears all registered modules
- Releases internal configuration
- Frees allocated memory
- Invalidates the pointer
§Safety
This function is safe to call with NULL. Calling with a pointer that has already been freed results in undefined behavior.