Fix readline memory leak
authorMartin Lambers <marlam@marlam.de>
Tue, 20 Jan 2015 06:28:58 +0000 (07:28 +0100)
committerMartin Lambers <marlam@marlam.de>
Tue, 20 Jan 2015 06:28:58 +0000 (07:28 +0100)
mucalc.cpp

index dd72948..b7ff43b 100644 (file)
@@ -338,6 +338,7 @@ int main(int argc, char *argv[])
             } else {
                 retval = eval_and_print(parser, line);
             }
+            free(line);
         }
         if (quit_via_control_d)
             printf("^D\n");