search for: a68054c

Displaying 2 results from an estimated 2 matches for "a68054c".

Did you mean: 368054
2016 Dec 12
2
[PATCH] java: fix memory leak in RStruct actions
...nstead of the own cleanup function of each struct: this meant dynamically allocated values (such as strings) were leaked. Use the proper cleanup functions instead. --- generator/java.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/java.ml b/generator/java.ml index a68054c..3c1e611 100644 --- a/generator/java.ml +++ b/generator/java.ml @@ -1000,7 +1000,7 @@ and generate_java_struct_return typ jtyp cols = pr " fl = (*env)->GetFieldID (env, cl, \"%s\", \"C\");\n" name; pr " (*env)->SetCharField (env, jr, fl,...
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...quot; GValue %s_v = {0, };\n" name; pr " g_value_init (&%s_v, %s);\n" name v_typ; pr " g_object_get_property (G_OBJECT (optargs), \"%s\", &%s_v);\n" name name; diff --git a/generator/java.ml b/generator/java.ml index 260e28c..a68054c 100644 --- a/generator/java.ml +++ b/generator/java.ml @@ -20,6 +20,7 @@ open Printf +open Common_utils open Types open Utils open Pr @@ -156,7 +157,8 @@ public class GuestFS { pr " *\n"; pr " * @see #set_event_callback\n"; pr " */\n"...