Allow comedi_cleanup_calibration to accept a NULL argument.
This commit is contained in:
parent
5e90332b02
commit
e0b0b89338
1 changed files with 1 additions and 0 deletions
|
@ -263,6 +263,7 @@ static comedi_calibration_t* alloc_calib_parse( void )
|
|||
EXPORT_ALIAS_DEFAULT(_comedi_cleanup_calibration,comedi_cleanup_calibration,0.7.20);
|
||||
extern void _comedi_cleanup_calibration( comedi_calibration_t *file_contents )
|
||||
{
|
||||
if(file_contents == NULL) return;
|
||||
if( file_contents->driver_name )
|
||||
{
|
||||
free( file_contents->driver_name );
|
||||
|
|
Loading…
Add table
Reference in a new issue