orccompiler: free error message
authorThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 16:30:03 +0000 (13:30 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 16:30:15 +0000 (13:30 -0300)
orc/orccompiler.c

index a0fa305..0086f77 100644 (file)
@@ -396,6 +396,7 @@ error:
   }
   result = compiler->result;
   orc_program_set_error (program, compiler->error_msg);
+  free (compiler->error_msg);
   if (result == 0) {
     result = ORC_COMPILE_RESULT_UNKNOWN_COMPILE;
   }