caml_failwith ("tune2fs_l: used handle after closing it");
const char *device = String_val (devicev);
+ int i;
char **r;
caml_enter_blocking_section ();
ocaml_guestfs_raise_error (g, "tune2fs_l");
rv = copy_table (r);
+ for (i = 0; r[i] != NULL; ++i) free (r[i]);
free (r);
CAMLreturn (rv);
}
| RStatVFS _ ->
pr " struct guestfs_statvfs *r;\n"; "NULL"
| RHashtable _ ->
+ pr " int i;\n";
pr " char **r;\n";
"NULL" in
pr "\n";
pr " free (r);\n";
| RHashtable _ ->
pr " rv = copy_table (r);\n";
+ pr " for (i = 0; r[i] != NULL; ++i) free (r[i]);\n";
pr " free (r);\n";
);
pr " free (r);\n"
| RHashtable n ->
pr " py_r = put_table (r);\n";
- pr " free (r);\n"
+ pr " free_strings (r);\n"
);
pr " return py_r;\n";