From: Frank Mori Hess Date: Fri, 29 Aug 2008 19:17:40 +0000 (+0000) Subject: Fixed memory leak in comedi_cleanup_calibration(). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b94b2ba02434e5a48d6c6d0455abfcbc56493549;p=comedilib.git Fixed memory leak in comedi_cleanup_calibration(). --- diff --git a/lib/calib_yacc.y b/lib/calib_yacc.y index 5c256a8..5a2dd95 100644 --- a/lib/calib_yacc.y +++ b/lib/calib_yacc.y @@ -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; }