#[unsafe(no_mangle)]pub extern "C" fn dmsc_config_free(config: *mut CDMSCConfig)Expand description
Frees a previously allocated CDMSCConfig instance.
Releases all memory associated with the configuration including any loaded values, watched files, or internal caches. After this function returns, the pointer becomes invalid.
§Parameters
config: Pointer to CDMSCConfig to free. If NULL, the function returns immediately without error.
§Behavior
The destructor:
- Clears all configuration values
- Stops file watchers if active
- Releases internal caches
- 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.