Fixed memory leak in comedi_cleanup_calibration().
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 29 Aug 2008 19:17:40 +0000 (19:17 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 29 Aug 2008 19:17:40 +0000 (19:17 +0000)
lib/calib_yacc.y

index 5c256a8a1050b0b5cfc4df279fa1adb4ad3ab5db..5a2dd95120b3f6e72d3c4841ca33fe262702b0f3 100644 (file)
@@ -101,6 +101,7 @@ static void free_settings( comedi_calibration_t *file_contents )
        {
                free_calibration_setting( &file_contents->settings[ i ] );
        }
+       free(file_contents->settings);
        file_contents->settings = NULL;
 }