From b94b2ba02434e5a48d6c6d0455abfcbc56493549 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 29 Aug 2008 19:17:40 +0000 Subject: [PATCH] Fixed memory leak in comedi_cleanup_calibration(). --- lib/calib_yacc.y | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.26.2