Closed ityuhui closed 4 years ago
By now, v1_*_create
is only for internal use (call by v1_*_parseFromJSON
), not for the library user.
So, the right usage is:
v1_volume_mount_t *volmou = calloc(1, sizeof(v1_volume_mount_t));
volmou->mount_path = strdup("/test");
volmou->name = strdup("test");
...
v1_volume_mount_free(volmou);
This is a not a defect. Just a design. So close this issue.
v1_volume_mount_create uses the address of "mount_path", "mount_propagation","name","sub_path","sub_path_expr" directly,
but v1_volume_mount_free will free the memory when cleaning up:
So it will introduce a coredump when