From ad271edbcfe8f5636d190c15fd0d6a0fb6bcc0d4 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Thu, 7 Jan 2016 09:45:52 +0100 Subject: [PATCH] [BUGFIX] Fix bad memory leak. --- hough_machine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hough_machine.cpp b/hough_machine.cpp index 7ffaf64..a3ec510 100644 --- a/hough_machine.cpp +++ b/hough_machine.cpp @@ -43,7 +43,7 @@ class HoughMachine { this->d_ang = 0; this->n_rad = 0; this->d_rad = 0; - if(this->hough_arr == NULL) { + if(this->hough_arr != NULL) { free(this->hough_arr); this->hough_arr = NULL; }