libguestfs-1.55.9-1.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/guestfish.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> # Guestfish colour prompts.  See PROMPT in guestfish(1).
#    2|   GUESTFISH_PS1='\[\e[1;32m\]><fs>\[\e[0;31m\] '
#    3|   GUESTFISH_OUTPUT='\e[0m'

Error: SHELLCHECK_WARNING (CWE-88): [#def2]
/usr/bin/virt-copy-in:19:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   17|   # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#   18|   
#   19|-> for arg in $@; do
#   20|       case $arg in
#   21|           "--help")

Error: SHELLCHECK_WARNING (CWE-156): [#def3]
/usr/bin/virt-copy-in:22:22: warning[SC2046]: Quote this to prevent word splitting.
#   20|       case $arg in
#   21|           "--help")
#   22|->             exec man $(basename "$0")
#   23|               ;;
#   24|       esac

Error: SHELLCHECK_WARNING (CWE-88): [#def4]
/usr/bin/virt-copy-out:19:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   17|   # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#   18|   
#   19|-> for arg in $@; do
#   20|       case $arg in
#   21|           "--help")

Error: SHELLCHECK_WARNING (CWE-156): [#def5]
/usr/bin/virt-copy-out:22:22: warning[SC2046]: Quote this to prevent word splitting.
#   20|       case $arg in
#   21|           "--help")
#   22|->             exec man $(basename "$0")
#   23|               ;;
#   24|       esac

Error: SHELLCHECK_WARNING (CWE-88): [#def6]
/usr/bin/virt-tar-in:19:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   17|   # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#   18|   
#   19|-> for arg in $@; do
#   20|       case $arg in
#   21|           "--help")

Error: SHELLCHECK_WARNING (CWE-156): [#def7]
/usr/bin/virt-tar-in:22:22: warning[SC2046]: Quote this to prevent word splitting.
#   20|       case $arg in
#   21|           "--help")
#   22|->             exec man $(basename "$0")
#   23|               ;;
#   24|       esac

Error: SHELLCHECK_WARNING (CWE-88): [#def8]
/usr/bin/virt-tar-out:19:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   17|   # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#   18|   
#   19|-> for arg in $@; do
#   20|       case $arg in
#   21|           "--help")

Error: SHELLCHECK_WARNING (CWE-156): [#def9]
/usr/bin/virt-tar-out:22:22: warning[SC2046]: Quote this to prevent word splitting.
#   20|       case $arg in
#   21|           "--help")
#   22|->             exec man $(basename "$0")
#   23|               ;;
#   24|       esac

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libguestfs-1.55.9/common/edit/file-edit.c:326:6: warning[-Wanalyzer-malloc-leak]: leak of 'generate_random_name(guestfs_realpath(g,  fn))'
libguestfs-1.55.9/common/edit/file-edit.c:251:1: enter_function: entry to 'do_upload'
libguestfs-1.55.9/common/edit/file-edit.c:266:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/edit/file-edit.c:274:13: branch_false: ...to here
libguestfs-1.55.9/common/edit/file-edit.c:274:13: call_function: calling 'generate_random_name' from 'do_upload'
libguestfs-1.55.9/common/edit/file-edit.c:274:13: return_function: returning to 'do_upload' from 'generate_random_name'
libguestfs-1.55.9/common/edit/file-edit.c:326:6: danger: 'generate_random_name(guestfs_realpath(g,  fn))' leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  324|      * trailing \0.
#  325|      */
#  326|->   if (guestfs_int_random_string (p, 8) == -1) {
#  327|       perror ("guestfs_int_random_string");
#  328|       free (ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libguestfs-1.55.9/common/mlpcre/pcre-c.c:247:3: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
libguestfs-1.55.9/common/mlpcre/pcre-c.c:190:1: enter_function: entry to ‘guestfs_int_pcre_matches’
libguestfs-1.55.9/common/mlpcre/pcre-c.c:192:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:192:3: branch_false: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:198:7: acquire_memory: allocated here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:199:6: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:205:16: branch_false: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:206:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:210:3: branch_false: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:214:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:220:23: branch_false: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:222:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:232:3: branch_false: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:232:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:239:6: branch_true: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:239:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:240:12: branch_true: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:241:5: call_function: inlined call to ‘free_last_match’ from ‘guestfs_int_pcre_matches’
libguestfs-1.55.9/common/mlpcre/pcre-c.c:242:5: branch_false: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:247:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/common/mlpcre/pcre-c.c:247:3: branch_true: ...to here
libguestfs-1.55.9/common/mlpcre/pcre-c.c:247:3: danger: ‘m’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  245|       free_last_match (m);
#  246|   
#  247|->   CAMLreturn (r ? Val_true : Val_false);
#  248|   }
#  249|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libguestfs-1.55.9/common/options/decrypt.c:96:27: warning[-Wanalyzer-malloc-leak]: leak of 'make_mapname(mountable)'
libguestfs-1.55.9/common/options/decrypt.c:201:1: enter_function: entry to 'inspect_do_decrypt'
libguestfs-1.55.9/common/options/decrypt.c:207:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/decrypt.c:210:17: branch_false: ...to here
libguestfs-1.55.9/common/options/decrypt.c:210:17: call_function: calling 'decrypt_mountables' from 'inspect_do_decrypt'
#   94|   
#   95|       /* filter & copy */
#   96|->     while ((ichar = device[ipos]) != '\0') {
#   97|         if (c_isalnum (ichar))
#   98|           append_char (&opos, mapname, ichar);

Error: CPPCHECK_WARNING (CWE-476): [#def13]
libguestfs-1.55.9/common/options/decrypt.c:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mapname
#  111|   
#  112|         /* populate the output prefix -- note: not NUL-terminated yet */
#  113|->       memcpy (mapname, oprefix, oprefixlen);
#  114|       }
#  115|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
libguestfs-1.55.9/common/options/keys.c:99:10: warning[-Wanalyzer-file-leak]: leak of FILE 'infp'
libguestfs-1.55.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
libguestfs-1.55.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
libguestfs-1.55.9/common/options/keys.c:153:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:188:6: branch_true: following 'true' branch (when 'match == r')...
libguestfs-1.55.9/common/options/keys.c:190:9: branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:190:9: call_function: calling 'read_key' from 'get_keys'
#   97|       fclose (infp); /* outfp == infp, so this is closed also */
#   98|   
#   99|->   return ret;
#  100|   }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libguestfs-1.55.9/common/options/keys.c:99:10: warning[-Wanalyzer-malloc-leak]: leak of 'infp'
libguestfs-1.55.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
libguestfs-1.55.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
libguestfs-1.55.9/common/options/keys.c:153:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:188:6: branch_true: following 'true' branch (when 'match == r')...
libguestfs-1.55.9/common/options/keys.c:190:9: branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:190:9: call_function: calling 'read_key' from 'get_keys'
#   97|       fclose (infp); /* outfp == infp, so this is closed also */
#   98|   
#   99|->   return ret;
#  100|   }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
libguestfs-1.55.9/common/options/keys.c:110:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
libguestfs-1.55.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
libguestfs-1.55.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
libguestfs-1.55.9/common/options/keys.c:153:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:153:6: branch_true: following 'true' branch (when 'ks' is non-NULL)...
 branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:154:17: branch_true: following 'true' branch...
libguestfs-1.55.9/common/options/keys.c:155:36: branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:174:13: call_function: calling 'read_first_line_from_file' from 'get_keys'
#  108|     ssize_t len;
#  109|   
#  110|->   fp = fopen (filename, "r");
#  111|     if (!fp)
#  112|       error (EXIT_FAILURE, errno, "fopen: %s", filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libguestfs-1.55.9/common/options/keys.c:110:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
libguestfs-1.55.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
libguestfs-1.55.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
libguestfs-1.55.9/common/options/keys.c:153:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:153:6: branch_true: following 'true' branch (when 'ks' is non-NULL)...
 branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:154:17: branch_true: following 'true' branch...
libguestfs-1.55.9/common/options/keys.c:155:36: branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:174:13: call_function: calling 'read_first_line_from_file' from 'get_keys'
#  108|     ssize_t len;
#  109|   
#  110|->   fp = fopen (filename, "r");
#  111|     if (!fp)
#  112|       error (EXIT_FAILURE, errno, "fopen: %s", filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libguestfs-1.55.9/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.<Uc320>.string.s'
libguestfs-1.55.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:227:17: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:232:12: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:240:7: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:242:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:246:34: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:246:20: acquire_memory: allocated here
libguestfs-1.55.9/common/options/keys.c:247:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:265:10: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
libguestfs-1.55.9/common/options/keys.c:266:1: danger: 'key.<Uc320>.string.s' leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  264|   
#  265|     return key_store_import_key (ks, &key);
#  266|-> }
#  267|   
#  268|   /* Turn /dev/mapper/VG-LV into /dev/VG/LV, in-place. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libguestfs-1.55.9/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.<Ue320>.string.s'
libguestfs-1.55.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:227:17: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:232:12: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:240:7: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:242:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:246:34: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:246:20: acquire_memory: allocated here
libguestfs-1.55.9/common/options/keys.c:247:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:265:10: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
libguestfs-1.55.9/common/options/keys.c:266:1: danger: 'key.<Ue320>.string.s' leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  264|   
#  265|     return key_store_import_key (ks, &key);
#  266|-> }
#  267|   
#  268|   /* Turn /dev/mapper/VG-LV into /dev/VG/LV, in-place. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libguestfs-1.55.9/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.id'
libguestfs-1.55.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:227:17: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:232:12: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:232:12: acquire_memory: allocated here
libguestfs-1.55.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:240:7: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:242:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:246:34: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:247:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:265:10: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
libguestfs-1.55.9/common/options/keys.c:266:1: danger: 'key.id' leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  264|   
#  265|     return key_store_import_key (ks, &key);
#  266|-> }
#  267|   
#  268|   /* Turn /dev/mapper/VG-LV into /dev/VG/LV, in-place. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libguestfs-1.55.9/common/options/keys.c:380:24: warning[-Wanalyzer-malloc-leak]: leak of 'key_store_import_key(ks, & key)'
libguestfs-1.55.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:227:17: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:232:12: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:240:7: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:240:6: branch_false: following 'false' branch (when the strings are non-equal)...
libguestfs-1.55.9/common/options/keys.c:249:14: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:249:13: branch_false: following 'false' branch (when the strings are non-equal)...
libguestfs-1.55.9/common/options/keys.c:258:14: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:258:13: branch_true: following 'true' branch (when the strings are equal)...
libguestfs-1.55.9/common/options/keys.c:259:5: branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:260:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:265:10: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
libguestfs-1.55.9/common/options/keys.c:380:24: danger: 'key_store_import_key(ks, & key)' leaks here; was allocated at [(22)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/21)
#  378|   
#  379|     new_keys = realloc (ks->keys,
#  380|->                       (ks->nr_keys + 1) * sizeof (struct key_store_key));
#  381|     if (!new_keys)
#  382|       error (EXIT_FAILURE, errno, "realloc");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libguestfs-1.55.9/common/options/keys.c:389:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libguestfs-1.55.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:227:17: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:232:12: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:240:7: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:240:6: branch_false: following 'false' branch (when the strings are non-equal)...
libguestfs-1.55.9/common/options/keys.c:249:14: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:249:13: branch_false: following 'false' branch (when the strings are non-equal)...
libguestfs-1.55.9/common/options/keys.c:258:14: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:258:13: branch_true: following 'true' branch (when the strings are equal)...
libguestfs-1.55.9/common/options/keys.c:259:5: branch_true: ...to here
libguestfs-1.55.9/common/options/keys.c:260:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/keys.c:265:10: branch_false: ...to here
libguestfs-1.55.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
libguestfs-1.55.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
libguestfs-1.55.9/common/options/keys.c:389:10: danger: '<unknown>' leaks here; was allocated at [(24)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/23)
#  387|     ++ks->nr_keys;
#  388|   
#  389|->   return ks;
#  390|   }
#  391|   

Error: CPPCHECK_WARNING (CWE-476): [#def23]
libguestfs-1.55.9/common/options/options.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  104|       error (EXIT_FAILURE, errno, "calloc");
#  105|   
#  106|->   drv->type = drv_d;
#  107|     drv->d.guest = optarg;
#  108|   

Error: CPPCHECK_WARNING (CWE-476): [#def24]
libguestfs-1.55.9/common/options/options.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  105|   
#  106|     drv->type = drv_d;
#  107|->   drv->d.guest = optarg;
#  108|   
#  109|     drv->next = *drvsp;

Error: CPPCHECK_WARNING (CWE-476): [#def25]
libguestfs-1.55.9/common/options/options.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  107|     drv->d.guest = optarg;
#  108|   
#  109|->   drv->next = *drvsp;
#  110|     *drvsp = drv;
#  111|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libguestfs-1.55.9/common/options/uri.c:228:17: warning[-Wanalyzer-malloc-leak]: leak of 'query_get(xmlParseURI(arg), "socket")'
libguestfs-1.55.9/common/options/uri.c:110:1: enter_function: entry to 'parse'
libguestfs-1.55.9/common/options/uri.c:118:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/uri.c:128:7: branch_false: ...to here
libguestfs-1.55.9/common/options/uri.c:128:6: branch_false: following 'false' branch...
libguestfs-1.55.9/common/options/uri.c:135:12: call_function: calling 'query_get' from 'parse'
libguestfs-1.55.9/common/options/uri.c:135:12: return_function: returning to 'parse' from 'query_get'
libguestfs-1.55.9/common/options/uri.c:228:17: danger: 'query_get(xmlParseURI(arg), "socket")' leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
#  226|     const char *end, *eq;
#  227|   
#  228|->   if (!query || STREQ (query, ""))
#  229|       return NULL;
#  230|   

Error: CPPCHECK_WARNING (CWE-476): [#def27]
libguestfs-1.55.9/common/parallel/parallel.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
#  137|   
#  138|     for (i = 0; i < nr_threads; ++i) {
#  139|->     thread_data[i].thread_num = i;
#  140|       thread_data[i].trace = trace;
#  141|       thread_data[i].verbose = verbose;

Error: CPPCHECK_WARNING (CWE-476): [#def28]
libguestfs-1.55.9/common/parallel/parallel.c:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
#  138|     for (i = 0; i < nr_threads; ++i) {
#  139|       thread_data[i].thread_num = i;
#  140|->     thread_data[i].trace = trace;
#  141|       thread_data[i].verbose = verbose;
#  142|       thread_data[i].work = work;

Error: CPPCHECK_WARNING (CWE-476): [#def29]
libguestfs-1.55.9/common/parallel/parallel.c:141: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
#  139|       thread_data[i].thread_num = i;
#  140|       thread_data[i].trace = trace;
#  141|->     thread_data[i].verbose = verbose;
#  142|       thread_data[i].work = work;
#  143|     }

Error: CPPCHECK_WARNING (CWE-476): [#def30]
libguestfs-1.55.9/common/parallel/parallel.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
#  140|       thread_data[i].trace = trace;
#  141|       thread_data[i].verbose = verbose;
#  142|->     thread_data[i].work = work;
#  143|     }
#  144|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libguestfs-1.55.9/common/parallel/parallel.c:181:24: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libguestfs-1.55.9/common/parallel/parallel.c:193:8: branch_false: following 'false' branch (when 'err == 0')...
libguestfs-1.55.9/common/parallel/parallel.c:198:9: branch_false: ...to here
libguestfs-1.55.9/common/parallel/parallel.c:200:8: branch_false: following 'false' branch (when 'err == 0')...
libguestfs-1.55.9/common/parallel/parallel.c:206:9: branch_false: ...to here
libguestfs-1.55.9/common/parallel/parallel.c:206:8: branch_false: following 'false' branch...
libguestfs-1.55.9/common/parallel/parallel.c:209:9: branch_false: ...to here
libguestfs-1.55.9/common/parallel/parallel.c:213:10: acquire_memory: allocated here
libguestfs-1.55.9/common/parallel/parallel.c:214:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libguestfs-1.55.9/common/parallel/parallel.c:221:9: branch_false: ...to here
libguestfs-1.55.9/common/parallel/parallel.c:181:24: danger: 'fp' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  179|       size_t i;               /* The current domain we're working on. */
#  180|       FILE *fp;
#  181|->     CLEANUP_FREE char *output = NULL;
#  182|       size_t output_len = 0;
#  183|       guestfs_h *g;

Error: CPPCHECK_WARNING (CWE-476): [#def32]
libguestfs-1.55.9/common/windows/windows.c:115: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  113|   
#  114|     /* Blindly convert any backslashes into forward slashes.  Is this good? */
#  115|->   for (i = 0; i < strlen (ret); ++i)
#  116|       if (ret[i] == '\\')
#  117|         ret[i] = '/';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libguestfs-1.55.9/daemon/base64.c:67:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/base64.c:51:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:59:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:61:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:67:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:67:8: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   65|       fprintf (stderr, "%s\n", cmd);
#   66|   
#   67|->   fp = popen (cmd, "w");
#   68|     if (fp == NULL) {
#   69|       err = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libguestfs-1.55.9/daemon/base64.c:81:7: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/base64.c:51:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:59:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:61:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:67:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:68:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:79:8: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:81:7: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   79|     fd = fileno (fp);
#   80|   
#   81|->   r = receive_file (write_cb, &fd);
#   82|     if (r == -1) {		/* write error */
#   83|       cancel_receive ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libguestfs-1.55.9/daemon/base64.c:83:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/base64.c:51:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:59:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:61:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:67:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:68:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:79:8: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:82:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/base64.c:83:5: branch_true: ...to here
libguestfs-1.55.9/daemon/base64.c:83:5: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   81|     r = receive_file (write_cb, &fd);
#   82|     if (r == -1) {		/* write error */
#   83|->     cancel_receive ();
#   84|       reply_with_error ("write error on file: %s", file);
#   85|       pclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libguestfs-1.55.9/daemon/base64.c:84:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/base64.c:51:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:59:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:61:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:67:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:68:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:79:8: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:82:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/base64.c:83:5: branch_true: ...to here
libguestfs-1.55.9/daemon/base64.c:84:5: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   82|     if (r == -1) {		/* write error */
#   83|       cancel_receive ();
#   84|->     reply_with_error ("write error on file: %s", file);
#   85|       pclose (fp);
#   86|       return -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libguestfs-1.55.9/daemon/base64.c:92:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/base64.c:51:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:59:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:61:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:67:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:68:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:79:8: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:82:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:88:6: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:88:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/base64.c:92:5: branch_true: ...to here
libguestfs-1.55.9/daemon/base64.c:92:5: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#   90|        * cancel.  Nevertheless we must send an error reply here.
#   91|        */
#   92|->     reply_with_error ("file upload cancelled");
#   93|       pclose (fp);
#   94|       return -1;

Error: CPPCHECK_WARNING (CWE-401): [#def38]
libguestfs-1.55.9/daemon/base64.c:127: error[memleak]: Memory leak: buffer
#  125|     if (buf == NULL) {
#  126|       reply_with_perror ("malloc");
#  127|->     return -1;
#  128|     }
#  129|   

Error: CPPCHECK_WARNING (CWE-401): [#def39]
libguestfs-1.55.9/daemon/base64.c:132: error[memleak]: Memory leak: buffer
#  130|     if (stat (buf, &statbuf) == -1) {
#  131|       reply_with_perror ("stat: %s", file);
#  132|->     return -1;
#  133|     }
#  134|   

Error: CPPCHECK_WARNING (CWE-401): [#def40]
libguestfs-1.55.9/daemon/base64.c:137: error[memleak]: Memory leak: buffer
#  135|     if (S_ISDIR (statbuf.st_mode)) {
#  136|       reply_with_error ("%s: is a directory", file);
#  137|->     return -1;
#  138|     }
#  139|   

Error: CPPCHECK_WARNING (CWE-401): [#def41]
libguestfs-1.55.9/daemon/base64.c:145: error[memleak]: Memory leak: buffer
#  143|     cmd_error:
#  144|       reply_with_perror ("open_memstream");
#  145|->     return -1;
#  146|     }
#  147|     fprintf (fp, "base64 ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libguestfs-1.55.9/daemon/base64.c:155:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/base64.c:118:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:124:9: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:125:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:130:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:130:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:135:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:135:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:141:8: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:142:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:147:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:149:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:152:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:155:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:155:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  153|       fprintf (stderr, "%s\n", cmd);
#  154|   
#  155|->   fp = popen (cmd, "r");
#  156|     if (fp == NULL) {
#  157|       reply_with_perror ("%s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libguestfs-1.55.9/daemon/base64.c:165:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/base64.c:118:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:124:9: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:125:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:130:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:130:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:135:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:135:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:141:8: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:142:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:147:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:149:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:152:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:155:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:156:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:165:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:165:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  163|      * message back.  Instead we can only cancel the transfer.
#  164|      */
#  165|->   reply (NULL, NULL);
#  166|   
#  167|     while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
libguestfs-1.55.9/daemon/base64.c:167:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/base64.c:118:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:124:9: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:125:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:130:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:130:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:135:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:135:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:141:8: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:142:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/base64.c:147:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:149:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:152:7: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:155:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/base64.c:156:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/base64.c:165:3: branch_false: ...to here
libguestfs-1.55.9/daemon/base64.c:167:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
#  165|     reply (NULL, NULL);
#  166|   
#  167|->   while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  168|       if (send_file_write (buffer, r) < 0) {
#  169|         pclose (fp);

Error: CPPCHECK_WARNING (CWE-401): [#def45]
libguestfs-1.55.9/daemon/btrfs.c:969: error[memleakOnRealloc]: Common realloc mistake: 'ss' nulled but not freed upon failure
#  967|   
#  968|         while (key && !value) {
#  969|-> 	ss = realloc (ss, ss_len + strlen (key) + 1);
#  970|   	if (!ss)
#  971|   	  return NULL;

Error: CPPCHECK_WARNING (CWE-401): [#def46]
libguestfs-1.55.9/daemon/caml-stubs.c:60: error[memleak]: Memory leak: ret
#   58|     v = Field (retv, 0);
#   59|     ret->lv_name = strdup (String_val (v));
#   60|->   if (ret->lv_name == NULL) return NULL;
#   61|     v = Field (retv, 1);
#   62|     assert (caml_string_length (v) == sizeof ret->lv_uuid);

Error: CPPCHECK_WARNING (CWE-401): [#def47]
libguestfs-1.55.9/daemon/caml-stubs.c:66: error[memleak]: Memory leak: ret
#   64|     v = Field (retv, 2);
#   65|     ret->lv_attr = strdup (String_val (v));
#   66|->   if (ret->lv_attr == NULL) return NULL;
#   67|     v = Field (retv, 3);
#   68|     ret->lv_major = Int64_val (v);

Error: CPPCHECK_WARNING (CWE-401): [#def48]
libguestfs-1.55.9/daemon/caml-stubs.c:81: error[memleak]: Memory leak: ret
#   79|     v = Field (retv, 9);
#   80|     ret->origin = strdup (String_val (v));
#   81|->   if (ret->origin == NULL) return NULL;
#   82|     v = Field (retv, 10);
#   83|     if (v == Val_int (0)) /* None */

Error: CPPCHECK_WARNING (CWE-401): [#def49]
libguestfs-1.55.9/daemon/caml-stubs.c:98: error[memleak]: Memory leak: ret
#   96|     v = Field (retv, 12);
#   97|     ret->move_pv = strdup (String_val (v));
#   98|->   if (ret->move_pv == NULL) return NULL;
#   99|     v = Field (retv, 13);
#  100|     ret->lv_tags = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def50]
libguestfs-1.55.9/daemon/caml-stubs.c:101: error[memleak]: Memory leak: ret
#   99|     v = Field (retv, 13);
#  100|     ret->lv_tags = strdup (String_val (v));
#  101|->   if (ret->lv_tags == NULL) return NULL;
#  102|     v = Field (retv, 14);
#  103|     ret->mirror_log = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def51]
libguestfs-1.55.9/daemon/caml-stubs.c:104: error[memleak]: Memory leak: ret
#  102|     v = Field (retv, 14);
#  103|     ret->mirror_log = strdup (String_val (v));
#  104|->   if (ret->mirror_log == NULL) return NULL;
#  105|     v = Field (retv, 15);
#  106|     ret->modules = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def52]
libguestfs-1.55.9/daemon/caml-stubs.c:107: error[memleak]: Memory leak: ret
#  105|     v = Field (retv, 15);
#  106|     ret->modules = strdup (String_val (v));
#  107|->   if (ret->modules == NULL) return NULL;
#  108|   
#  109|     real_ret = ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libguestfs-1.55.9/daemon/caml-stubs.c:177:7: warning[-Wanalyzer-malloc-leak]: leak of ‘return_partition(v)’
libguestfs-1.55.9/daemon/caml-stubs.c:193:1: enter_function: entry to ‘return_partition_list’
libguestfs-1.55.9/daemon/caml-stubs.c:210:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:214:6: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:214:6: branch_true: following ‘true’ branch (when ‘len != 0’)...
libguestfs-1.55.9/daemon/caml-stubs.c:216:7: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:217:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:221:5: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:225:15: branch_true: following ‘true’ branch (when ‘i < len’)...
libguestfs-1.55.9/daemon/caml-stubs.c:226:9: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:227:9: call_function: calling ‘return_partition’ from ‘return_partition_list’
libguestfs-1.55.9/daemon/caml-stubs.c:227:9: return_function: returning to ‘return_partition_list’ from ‘return_partition’
libguestfs-1.55.9/daemon/caml-stubs.c:177:7: danger: ‘return_partition(v)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  175|     }
#  176|   
#  177|->   v = Field (retv, 0);
#  178|     ret->part_num = Int32_val (v);
#  179|     v = Field (retv, 1);

Error: CPPCHECK_WARNING (CWE-401): [#def54]
libguestfs-1.55.9/daemon/caml-stubs.c:256: error[memleak]: Memory leak: ret
#  254|     v = Field (retv, 0);
#  255|     ret->app2_name = strdup (String_val (v));
#  256|->   if (ret->app2_name == NULL) return NULL;
#  257|     v = Field (retv, 1);
#  258|     ret->app2_display_name = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def55]
libguestfs-1.55.9/daemon/caml-stubs.c:259: error[memleak]: Memory leak: ret
#  257|     v = Field (retv, 1);
#  258|     ret->app2_display_name = strdup (String_val (v));
#  259|->   if (ret->app2_display_name == NULL) return NULL;
#  260|     v = Field (retv, 2);
#  261|     ret->app2_epoch = Int32_val (v);

Error: CPPCHECK_WARNING (CWE-401): [#def56]
libguestfs-1.55.9/daemon/caml-stubs.c:264: error[memleak]: Memory leak: ret
#  262|     v = Field (retv, 3);
#  263|     ret->app2_version = strdup (String_val (v));
#  264|->   if (ret->app2_version == NULL) return NULL;
#  265|     v = Field (retv, 4);
#  266|     ret->app2_release = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def57]
libguestfs-1.55.9/daemon/caml-stubs.c:267: error[memleak]: Memory leak: ret
#  265|     v = Field (retv, 4);
#  266|     ret->app2_release = strdup (String_val (v));
#  267|->   if (ret->app2_release == NULL) return NULL;
#  268|     v = Field (retv, 5);
#  269|     ret->app2_arch = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def58]
libguestfs-1.55.9/daemon/caml-stubs.c:270: error[memleak]: Memory leak: ret
#  268|     v = Field (retv, 5);
#  269|     ret->app2_arch = strdup (String_val (v));
#  270|->   if (ret->app2_arch == NULL) return NULL;
#  271|     v = Field (retv, 6);
#  272|     ret->app2_install_path = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def59]
libguestfs-1.55.9/daemon/caml-stubs.c:273: error[memleak]: Memory leak: ret
#  271|     v = Field (retv, 6);
#  272|     ret->app2_install_path = strdup (String_val (v));
#  273|->   if (ret->app2_install_path == NULL) return NULL;
#  274|     v = Field (retv, 7);
#  275|     ret->app2_trans_path = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def60]
libguestfs-1.55.9/daemon/caml-stubs.c:276: error[memleak]: Memory leak: ret
#  274|     v = Field (retv, 7);
#  275|     ret->app2_trans_path = strdup (String_val (v));
#  276|->   if (ret->app2_trans_path == NULL) return NULL;
#  277|     v = Field (retv, 8);
#  278|     ret->app2_publisher = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def61]
libguestfs-1.55.9/daemon/caml-stubs.c:279: error[memleak]: Memory leak: ret
#  277|     v = Field (retv, 8);
#  278|     ret->app2_publisher = strdup (String_val (v));
#  279|->   if (ret->app2_publisher == NULL) return NULL;
#  280|     v = Field (retv, 9);
#  281|     ret->app2_url = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def62]
libguestfs-1.55.9/daemon/caml-stubs.c:282: error[memleak]: Memory leak: ret
#  280|     v = Field (retv, 9);
#  281|     ret->app2_url = strdup (String_val (v));
#  282|->   if (ret->app2_url == NULL) return NULL;
#  283|     v = Field (retv, 10);
#  284|     ret->app2_source_package = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def63]
libguestfs-1.55.9/daemon/caml-stubs.c:285: error[memleak]: Memory leak: ret
#  283|     v = Field (retv, 10);
#  284|     ret->app2_source_package = strdup (String_val (v));
#  285|->   if (ret->app2_source_package == NULL) return NULL;
#  286|     v = Field (retv, 11);
#  287|     ret->app2_summary = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def64]
libguestfs-1.55.9/daemon/caml-stubs.c:288: error[memleak]: Memory leak: ret
#  286|     v = Field (retv, 11);
#  287|     ret->app2_summary = strdup (String_val (v));
#  288|->   if (ret->app2_summary == NULL) return NULL;
#  289|     v = Field (retv, 12);
#  290|     ret->app2_description = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def65]
libguestfs-1.55.9/daemon/caml-stubs.c:291: error[memleak]: Memory leak: ret
#  289|     v = Field (retv, 12);
#  290|     ret->app2_description = strdup (String_val (v));
#  291|->   if (ret->app2_description == NULL) return NULL;
#  292|     v = Field (retv, 13);
#  293|     ret->app2_spare1 = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def66]
libguestfs-1.55.9/daemon/caml-stubs.c:294: error[memleak]: Memory leak: ret
#  292|     v = Field (retv, 13);
#  293|     ret->app2_spare1 = strdup (String_val (v));
#  294|->   if (ret->app2_spare1 == NULL) return NULL;
#  295|     v = Field (retv, 14);
#  296|     ret->app2_spare2 = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def67]
libguestfs-1.55.9/daemon/caml-stubs.c:297: error[memleak]: Memory leak: ret
#  295|     v = Field (retv, 14);
#  296|     ret->app2_spare2 = strdup (String_val (v));
#  297|->   if (ret->app2_spare2 == NULL) return NULL;
#  298|     v = Field (retv, 15);
#  299|     ret->app2_spare3 = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def68]
libguestfs-1.55.9/daemon/caml-stubs.c:300: error[memleak]: Memory leak: ret
#  298|     v = Field (retv, 15);
#  299|     ret->app2_spare3 = strdup (String_val (v));
#  300|->   if (ret->app2_spare3 == NULL) return NULL;
#  301|     v = Field (retv, 16);
#  302|     ret->app2_spare4 = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def69]
libguestfs-1.55.9/daemon/caml-stubs.c:303: error[memleak]: Memory leak: ret
#  301|     v = Field (retv, 16);
#  302|     ret->app2_spare4 = strdup (String_val (v));
#  303|->   if (ret->app2_spare4 == NULL) return NULL;
#  304|   
#  305|     real_ret = ret;

Error: CPPCHECK_WARNING (CWE-401): [#def70]
libguestfs-1.55.9/daemon/caml-stubs.c:375: error[memleak]: Memory leak: ret
#  373|     v = Field (retv, 0);
#  374|     ret->iso_system_id = strdup (String_val (v));
#  375|->   if (ret->iso_system_id == NULL) return NULL;
#  376|     v = Field (retv, 1);
#  377|     ret->iso_volume_id = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def71]
libguestfs-1.55.9/daemon/caml-stubs.c:378: error[memleak]: Memory leak: ret
#  376|     v = Field (retv, 1);
#  377|     ret->iso_volume_id = strdup (String_val (v));
#  378|->   if (ret->iso_volume_id == NULL) return NULL;
#  379|     v = Field (retv, 2);
#  380|     ret->iso_volume_space_size = Int32_val (v);

Error: CPPCHECK_WARNING (CWE-401): [#def72]
libguestfs-1.55.9/daemon/caml-stubs.c:389: error[memleak]: Memory leak: ret
#  387|     v = Field (retv, 6);
#  388|     ret->iso_volume_set_id = strdup (String_val (v));
#  389|->   if (ret->iso_volume_set_id == NULL) return NULL;
#  390|     v = Field (retv, 7);
#  391|     ret->iso_publisher_id = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def73]
libguestfs-1.55.9/daemon/caml-stubs.c:392: error[memleak]: Memory leak: ret
#  390|     v = Field (retv, 7);
#  391|     ret->iso_publisher_id = strdup (String_val (v));
#  392|->   if (ret->iso_publisher_id == NULL) return NULL;
#  393|     v = Field (retv, 8);
#  394|     ret->iso_data_preparer_id = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def74]
libguestfs-1.55.9/daemon/caml-stubs.c:395: error[memleak]: Memory leak: ret
#  393|     v = Field (retv, 8);
#  394|     ret->iso_data_preparer_id = strdup (String_val (v));
#  395|->   if (ret->iso_data_preparer_id == NULL) return NULL;
#  396|     v = Field (retv, 9);
#  397|     ret->iso_application_id = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def75]
libguestfs-1.55.9/daemon/caml-stubs.c:398: error[memleak]: Memory leak: ret
#  396|     v = Field (retv, 9);
#  397|     ret->iso_application_id = strdup (String_val (v));
#  398|->   if (ret->iso_application_id == NULL) return NULL;
#  399|     v = Field (retv, 10);
#  400|     ret->iso_copyright_file_id = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def76]
libguestfs-1.55.9/daemon/caml-stubs.c:401: error[memleak]: Memory leak: ret
#  399|     v = Field (retv, 10);
#  400|     ret->iso_copyright_file_id = strdup (String_val (v));
#  401|->   if (ret->iso_copyright_file_id == NULL) return NULL;
#  402|     v = Field (retv, 11);
#  403|     ret->iso_abstract_file_id = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def77]
libguestfs-1.55.9/daemon/caml-stubs.c:404: error[memleak]: Memory leak: ret
#  402|     v = Field (retv, 11);
#  403|     ret->iso_abstract_file_id = strdup (String_val (v));
#  404|->   if (ret->iso_abstract_file_id == NULL) return NULL;
#  405|     v = Field (retv, 12);
#  406|     ret->iso_bibliographic_file_id = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def78]
libguestfs-1.55.9/daemon/caml-stubs.c:407: error[memleak]: Memory leak: ret
#  405|     v = Field (retv, 12);
#  406|     ret->iso_bibliographic_file_id = strdup (String_val (v));
#  407|->   if (ret->iso_bibliographic_file_id == NULL) return NULL;
#  408|     v = Field (retv, 13);
#  409|     ret->iso_volume_creation_t = Int64_val (v);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libguestfs-1.55.9/daemon/caml-stubs.c:426:43: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/caml-stubs.c:477:1: enter_function: entry to ‘return_lvm_pv_list’
libguestfs-1.55.9/daemon/caml-stubs.c:494:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:498:6: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:498:6: branch_true: following ‘true’ branch (when ‘len != 0’)...
libguestfs-1.55.9/daemon/caml-stubs.c:500:7: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:501:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:505:5: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:509:15: branch_true: following ‘true’ branch (when ‘i < len’)...
libguestfs-1.55.9/daemon/caml-stubs.c:510:9: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:511:9: call_function: calling ‘return_lvm_pv’ from ‘return_lvm_pv_list’
libguestfs-1.55.9/daemon/caml-stubs.c:511:9: return_function: returning to ‘return_lvm_pv_list’ from ‘return_lvm_pv’
libguestfs-1.55.9/daemon/caml-stubs.c:426:43: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
#  424|   return_lvm_pv (value retv)
#  425|   {
#  426|->   CLEANUP_FREE_LVM_PV guestfs_int_lvm_pv *ret = NULL;
#  427|     guestfs_int_lvm_pv *real_ret;
#  428|     value v;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libguestfs-1.55.9/daemon/caml-stubs.c:436:7: warning[-Wanalyzer-malloc-leak]: leak of ‘return_lvm_pv(v)’
libguestfs-1.55.9/daemon/caml-stubs.c:477:1: enter_function: entry to ‘return_lvm_pv_list’
libguestfs-1.55.9/daemon/caml-stubs.c:494:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:498:6: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:498:6: branch_true: following ‘true’ branch (when ‘len != 0’)...
libguestfs-1.55.9/daemon/caml-stubs.c:500:7: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:501:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:505:5: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:509:15: branch_true: following ‘true’ branch (when ‘i < len’)...
libguestfs-1.55.9/daemon/caml-stubs.c:510:9: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:511:9: call_function: calling ‘return_lvm_pv’ from ‘return_lvm_pv_list’
libguestfs-1.55.9/daemon/caml-stubs.c:511:9: return_function: returning to ‘return_lvm_pv_list’ from ‘return_lvm_pv’
libguestfs-1.55.9/daemon/caml-stubs.c:436:7: danger: ‘return_lvm_pv(v)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
#  434|     }
#  435|   
#  436|->   v = Field (retv, 0);
#  437|     ret->pv_name = strdup (String_val (v));
#  438|     if (ret->pv_name == NULL) return NULL;

Error: CPPCHECK_WARNING (CWE-401): [#def81]
libguestfs-1.55.9/daemon/caml-stubs.c:438: error[memleak]: Memory leak: ret
#  436|     v = Field (retv, 0);
#  437|     ret->pv_name = strdup (String_val (v));
#  438|->   if (ret->pv_name == NULL) return NULL;
#  439|     v = Field (retv, 1);
#  440|     assert (caml_string_length (v) == sizeof ret->pv_uuid);

Error: CPPCHECK_WARNING (CWE-401): [#def82]
libguestfs-1.55.9/daemon/caml-stubs.c:444: error[memleak]: Memory leak: ret
#  442|     v = Field (retv, 2);
#  443|     ret->pv_fmt = strdup (String_val (v));
#  444|->   if (ret->pv_fmt == NULL) return NULL;
#  445|     v = Field (retv, 3);
#  446|     ret->pv_size = Int64_val (v);

Error: CPPCHECK_WARNING (CWE-401): [#def83]
libguestfs-1.55.9/daemon/caml-stubs.c:455: error[memleak]: Memory leak: ret
#  453|     v = Field (retv, 7);
#  454|     ret->pv_attr = strdup (String_val (v));
#  455|->   if (ret->pv_attr == NULL) return NULL;
#  456|     v = Field (retv, 8);
#  457|     ret->pv_pe_count = Int64_val (v);

Error: CPPCHECK_WARNING (CWE-401): [#def84]
libguestfs-1.55.9/daemon/caml-stubs.c:462: error[memleak]: Memory leak: ret
#  460|     v = Field (retv, 10);
#  461|     ret->pv_tags = strdup (String_val (v));
#  462|->   if (ret->pv_tags == NULL) return NULL;
#  463|     v = Field (retv, 11);
#  464|     ret->pe_start = Int64_val (v);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
libguestfs-1.55.9/daemon/caml-stubs.c:528:43: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/caml-stubs.c:590:1: enter_function: entry to ‘return_lvm_vg_list’
libguestfs-1.55.9/daemon/caml-stubs.c:607:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:611:6: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:611:6: branch_true: following ‘true’ branch (when ‘len != 0’)...
libguestfs-1.55.9/daemon/caml-stubs.c:613:7: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:614:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:618:5: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:622:15: branch_true: following ‘true’ branch (when ‘i < len’)...
libguestfs-1.55.9/daemon/caml-stubs.c:623:9: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:624:9: call_function: calling ‘return_lvm_vg’ from ‘return_lvm_vg_list’
libguestfs-1.55.9/daemon/caml-stubs.c:624:9: return_function: returning to ‘return_lvm_vg_list’ from ‘return_lvm_vg’
libguestfs-1.55.9/daemon/caml-stubs.c:528:43: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
#  526|   return_lvm_vg (value retv)
#  527|   {
#  528|->   CLEANUP_FREE_LVM_VG guestfs_int_lvm_vg *ret = NULL;
#  529|     guestfs_int_lvm_vg *real_ret;
#  530|     value v;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libguestfs-1.55.9/daemon/caml-stubs.c:538:7: warning[-Wanalyzer-malloc-leak]: leak of ‘return_lvm_vg(v)’
libguestfs-1.55.9/daemon/caml-stubs.c:590:1: enter_function: entry to ‘return_lvm_vg_list’
libguestfs-1.55.9/daemon/caml-stubs.c:607:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:611:6: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:611:6: branch_true: following ‘true’ branch (when ‘len != 0’)...
libguestfs-1.55.9/daemon/caml-stubs.c:613:7: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:614:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:618:5: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:622:15: branch_true: following ‘true’ branch (when ‘i < len’)...
libguestfs-1.55.9/daemon/caml-stubs.c:623:9: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:624:9: call_function: calling ‘return_lvm_vg’ from ‘return_lvm_vg_list’
libguestfs-1.55.9/daemon/caml-stubs.c:624:9: return_function: returning to ‘return_lvm_vg_list’ from ‘return_lvm_vg’
libguestfs-1.55.9/daemon/caml-stubs.c:538:7: danger: ‘return_lvm_vg(v)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/11)
#  536|     }
#  537|   
#  538|->   v = Field (retv, 0);
#  539|     ret->vg_name = strdup (String_val (v));
#  540|     if (ret->vg_name == NULL) return NULL;

Error: CPPCHECK_WARNING (CWE-401): [#def87]
libguestfs-1.55.9/daemon/caml-stubs.c:540: error[memleak]: Memory leak: ret
#  538|     v = Field (retv, 0);
#  539|     ret->vg_name = strdup (String_val (v));
#  540|->   if (ret->vg_name == NULL) return NULL;
#  541|     v = Field (retv, 1);
#  542|     assert (caml_string_length (v) == sizeof ret->vg_uuid);

Error: CPPCHECK_WARNING (CWE-401): [#def88]
libguestfs-1.55.9/daemon/caml-stubs.c:546: error[memleak]: Memory leak: ret
#  544|     v = Field (retv, 2);
#  545|     ret->vg_fmt = strdup (String_val (v));
#  546|->   if (ret->vg_fmt == NULL) return NULL;
#  547|     v = Field (retv, 3);
#  548|     ret->vg_attr = strdup (String_val (v));

Error: CPPCHECK_WARNING (CWE-401): [#def89]
libguestfs-1.55.9/daemon/caml-stubs.c:549: error[memleak]: Memory leak: ret
#  547|     v = Field (retv, 3);
#  548|     ret->vg_attr = strdup (String_val (v));
#  549|->   if (ret->vg_attr == NULL) return NULL;
#  550|     v = Field (retv, 4);
#  551|     ret->vg_size = Int64_val (v);

Error: CPPCHECK_WARNING (CWE-401): [#def90]
libguestfs-1.55.9/daemon/caml-stubs.c:556: error[memleak]: Memory leak: ret
#  554|     v = Field (retv, 6);
#  555|     ret->vg_sysid = strdup (String_val (v));
#  556|->   if (ret->vg_sysid == NULL) return NULL;
#  557|     v = Field (retv, 7);
#  558|     ret->vg_extent_size = Int64_val (v);

Error: CPPCHECK_WARNING (CWE-401): [#def91]
libguestfs-1.55.9/daemon/caml-stubs.c:577: error[memleak]: Memory leak: ret
#  575|     v = Field (retv, 16);
#  576|     ret->vg_tags = strdup (String_val (v));
#  577|->   if (ret->vg_tags == NULL) return NULL;
#  578|     v = Field (retv, 17);
#  579|     ret->vg_mda_count = Int64_val (v);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
libguestfs-1.55.9/daemon/caml-stubs.c:641:59: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/caml-stubs.c:666:1: enter_function: entry to ‘return_btrfssubvolume_list’
libguestfs-1.55.9/daemon/caml-stubs.c:683:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:687:6: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:687:6: branch_true: following ‘true’ branch (when ‘len != 0’)...
libguestfs-1.55.9/daemon/caml-stubs.c:689:7: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:690:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:694:5: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:698:15: branch_true: following ‘true’ branch (when ‘i < len’)...
libguestfs-1.55.9/daemon/caml-stubs.c:699:9: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:700:9: call_function: calling ‘return_btrfssubvolume’ from ‘return_btrfssubvolume_list’
libguestfs-1.55.9/daemon/caml-stubs.c:700:9: return_function: returning to ‘return_btrfssubvolume_list’ from ‘return_btrfssubvolume’
libguestfs-1.55.9/daemon/caml-stubs.c:641:59: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/13)
#  639|   return_btrfssubvolume (value retv)
#  640|   {
#  641|->   CLEANUP_FREE_BTRFSSUBVOLUME guestfs_int_btrfssubvolume *ret = NULL;
#  642|     guestfs_int_btrfssubvolume *real_ret;
#  643|     value v;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libguestfs-1.55.9/daemon/caml-stubs.c:651:7: warning[-Wanalyzer-malloc-leak]: leak of ‘return_btrfssubvolume(v)’
libguestfs-1.55.9/daemon/caml-stubs.c:666:1: enter_function: entry to ‘return_btrfssubvolume_list’
libguestfs-1.55.9/daemon/caml-stubs.c:683:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:687:6: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:687:6: branch_true: following ‘true’ branch (when ‘len != 0’)...
libguestfs-1.55.9/daemon/caml-stubs.c:689:7: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:690:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/caml-stubs.c:694:5: branch_false: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:698:15: branch_true: following ‘true’ branch (when ‘i < len’)...
libguestfs-1.55.9/daemon/caml-stubs.c:699:9: branch_true: ...to here
libguestfs-1.55.9/daemon/caml-stubs.c:700:9: call_function: calling ‘return_btrfssubvolume’ from ‘return_btrfssubvolume_list’
libguestfs-1.55.9/daemon/caml-stubs.c:700:9: return_function: returning to ‘return_btrfssubvolume_list’ from ‘return_btrfssubvolume’
libguestfs-1.55.9/daemon/caml-stubs.c:651:7: danger: ‘return_btrfssubvolume(v)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
#  649|     }
#  650|   
#  651|->   v = Field (retv, 0);
#  652|     ret->btrfssubvolume_id = Int64_val (v);
#  653|     v = Field (retv, 1);

Error: CPPCHECK_WARNING (CWE-401): [#def94]
libguestfs-1.55.9/daemon/caml-stubs.c:657: error[memleak]: Memory leak: ret
#  655|     v = Field (retv, 2);
#  656|     ret->btrfssubvolume_path = strdup (String_val (v));
#  657|->   if (ret->btrfssubvolume_path == NULL) return NULL;
#  658|   
#  659|     real_ret = ret;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
libguestfs-1.55.9/daemon/checksum.c:98:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/checksum.c:98:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/checksum.c:98:8: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|     CHROOT_IN;
#   98|->   fd = open (path, O_RDONLY|O_CLOEXEC);
#   99|     CHROOT_OUT;
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
libguestfs-1.55.9/daemon/checksum.c:114:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 524288)’
libguestfs-1.55.9/daemon/checksum.c:114:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/checksum.c:114:8: danger: ‘open(device, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  112|     CLEANUP_CLOSE int fd = -1;
#  113|   
#  114|->   fd = open (device, O_RDONLY|O_CLOEXEC);
#  115|     if (fd == -1) {
#  116|       reply_with_perror ("%s", device);

Error: CPPCHECK_WARNING (CWE-401): [#def97]
libguestfs-1.55.9/daemon/checksum.c:144: error[memleak]: Memory leak: str
#  142|     program = program_of_csum (csumtype);
#  143|     if (program == NULL)
#  144|->     return -1;
#  145|   
#  146|     sysrootdir = sysroot_path (dir);

Error: CPPCHECK_WARNING (CWE-401): [#def98]
libguestfs-1.55.9/daemon/checksum.c:149: error[memleak]: Memory leak: str
#  147|     if (!sysrootdir) {
#  148|       reply_with_perror ("malloc");
#  149|->     return -1;
#  150|     }
#  151|   

Error: CPPCHECK_WARNING (CWE-401): [#def99]
libguestfs-1.55.9/daemon/checksum.c:155: error[memleak]: Memory leak: str
#  153|     if (r == -1) {
#  154|       reply_with_perror ("%s", dir);
#  155|->     return -1;
#  156|     }
#  157|     if (!S_ISDIR (statbuf.st_mode)) {

Error: CPPCHECK_WARNING (CWE-401): [#def100]
libguestfs-1.55.9/daemon/checksum.c:159: error[memleak]: Memory leak: str
#  157|     if (!S_ISDIR (statbuf.st_mode)) {
#  158|       reply_with_error ("%s: not a directory", dir);
#  159|->     return -1;
#  160|     }
#  161|   

Error: CPPCHECK_WARNING (CWE-401): [#def101]
libguestfs-1.55.9/daemon/checksum.c:166: error[memleak]: Memory leak: str
#  164|     cmd_error:
#  165|       reply_with_perror ("open_memstream");
#  166|->     return -1;
#  167|     }
#  168|     fprintf (fp, "cd ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libguestfs-1.55.9/daemon/checksum.c:178:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/checksum.c:137:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:142:13: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:143:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:146:16: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:147:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:152:7: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:153:6: branch_false: following ‘false’ branch (when ‘r != -1’)...
libguestfs-1.55.9/daemon/checksum.c:157:8: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:157:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:162:8: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:163:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/checksum.c:168:3: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:172:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:175:7: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:178:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/checksum.c:178:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  176|       fprintf (stderr, "%s\n", cmd);
#  177|   
#  178|->   fp = popen (cmd, "r");
#  179|     if (fp == NULL) {
#  180|       reply_with_perror ("%s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libguestfs-1.55.9/daemon/checksum.c:188:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/checksum.c:137:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:142:13: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:143:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:146:16: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:147:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:152:7: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:153:6: branch_false: following ‘false’ branch (when ‘r != -1’)...
libguestfs-1.55.9/daemon/checksum.c:157:8: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:157:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:162:8: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:163:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/checksum.c:168:3: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:172:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:175:7: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:178:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/checksum.c:179:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:188:3: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:188:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
#  186|      * message back.  Instead we can only cancel the transfer.
#  187|      */
#  188|->   reply (NULL, NULL);
#  189|   
#  190|     while ((r = fread (str, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libguestfs-1.55.9/daemon/checksum.c:190:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/checksum.c:137:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:142:13: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:143:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:146:16: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:147:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:152:7: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:153:6: branch_false: following ‘false’ branch (when ‘r != -1’)...
libguestfs-1.55.9/daemon/checksum.c:157:8: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:157:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:162:8: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:163:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/checksum.c:168:3: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:172:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:175:7: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:178:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/checksum.c:179:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/checksum.c:188:3: branch_false: ...to here
libguestfs-1.55.9/daemon/checksum.c:190:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
#  188|     reply (NULL, NULL);
#  189|   
#  190|->   while ((r = fread (str, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  191|       if (send_file_write (str, r) < 0) {
#  192|         pclose (fp);

Error: GCC_ANALYZER_WARNING: [#def105]
libguestfs-1.55.9/daemon/command.c:289:11: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
libguestfs-1.55.9/daemon/command.c:232:6: branch_false: following ‘false’ branch (when ‘stderror’ is NULL)...
libguestfs-1.55.9/daemon/command.c:234:7: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:273:29: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:278:9: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:279:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/daemon/command.c:284:6: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:284:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libguestfs-1.55.9/daemon/command.c:285:5: branch_true: ...to here
libguestfs-1.55.9/daemon/command.c:287:5: release_resource: closed here
libguestfs-1.55.9/daemon/command.c:288:8: branch_true: following ‘true’ branch (when ‘flag_copy_stdin != 0’)...
libguestfs-1.55.9/daemon/command.c:289:11: branch_true: ...to here
libguestfs-1.55.9/daemon/command.c:289:11: danger: ‘0’ could be invalid
#  287|       close (0);
#  288|       if (flag_copy_stdin) {
#  289|->       if (dup2 (flag_copy_fd, STDIN_FILENO) == -1) {
#  290|           perror ("dup2/flag_copy_fd");
#  291|           _exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
libguestfs-1.55.9/daemon/command.c:295:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
libguestfs-1.55.9/daemon/command.c:232:6: branch_false: following ‘false’ branch (when ‘stderror’ is NULL)...
libguestfs-1.55.9/daemon/command.c:234:7: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:273:29: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:278:9: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:279:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/daemon/command.c:284:6: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:284:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libguestfs-1.55.9/daemon/command.c:285:5: branch_true: ...to here
libguestfs-1.55.9/daemon/command.c:288:8: branch_false: following ‘false’ branch (when ‘flag_copy_stdin == 0’)...
libguestfs-1.55.9/daemon/command.c:295:11: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:295:11: acquire_resource: opened here
libguestfs-1.55.9/daemon/command.c:295:10: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  293|       } else {
#  294|         /* Set stdin to /dev/null. */
#  295|->       if (open ("/dev/null", O_RDONLY) == -1) {
#  296|           perror ("open: /dev/null");
#  297|           _exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
libguestfs-1.55.9/daemon/command.c:303:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(so_fd[1], 1)’
libguestfs-1.55.9/daemon/command.c:232:6: branch_false: following ‘false’ branch (when ‘stderror’ is NULL)...
libguestfs-1.55.9/daemon/command.c:234:7: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:273:29: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:278:9: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:279:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/daemon/command.c:284:6: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:284:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libguestfs-1.55.9/daemon/command.c:285:5: branch_true: ...to here
libguestfs-1.55.9/daemon/command.c:289:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:300:5: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:302:8: branch_true: following ‘true’ branch (when ‘flag_out_on_err == 0’)...
libguestfs-1.55.9/daemon/command.c:303:11: branch_true: ...to here
libguestfs-1.55.9/daemon/command.c:303:11: acquire_resource: opened here
libguestfs-1.55.9/daemon/command.c:303:10: danger: ‘dup2(so_fd[1], 1)’ leaks here; was opened at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
#  301|       close (se_fd[PIPE_READ]);
#  302|       if (!flag_out_on_err) {
#  303|->       if (dup2 (so_fd[PIPE_WRITE], STDOUT_FILENO) == -1) {
#  304|           perror ("dup2/so_fd[PIPE_WRITE]");
#  305|           _exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def108]
libguestfs-1.55.9/daemon/command.c:308:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(se_fd[1], 1)’
libguestfs-1.55.9/daemon/command.c:232:6: branch_false: following ‘false’ branch (when ‘stderror’ is NULL)...
libguestfs-1.55.9/daemon/command.c:234:7: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:273:29: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:278:9: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:279:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/daemon/command.c:284:6: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:284:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libguestfs-1.55.9/daemon/command.c:285:5: branch_true: ...to here
libguestfs-1.55.9/daemon/command.c:289:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:300:5: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:302:8: branch_false: following ‘false’ branch (when ‘flag_out_on_err != 0’)...
libguestfs-1.55.9/daemon/command.c:308:11: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:308:11: acquire_resource: opened here
libguestfs-1.55.9/daemon/command.c:308:10: danger: ‘dup2(se_fd[1], 1)’ leaks here; was opened at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  306|         }
#  307|       } else {
#  308|->       if (dup2 (se_fd[PIPE_WRITE], STDOUT_FILENO) == -1) {
#  309|           perror ("dup2/se_fd[PIPE_WRITE]");
#  310|           _exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
libguestfs-1.55.9/daemon/command.c:313:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(se_fd[1], 2)’
libguestfs-1.55.9/daemon/command.c:232:6: branch_false: following ‘false’ branch (when ‘stderror’ is NULL)...
libguestfs-1.55.9/daemon/command.c:234:7: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:273:29: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:273:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:278:9: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:279:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/daemon/command.c:284:6: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:284:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libguestfs-1.55.9/daemon/command.c:285:5: branch_true: ...to here
libguestfs-1.55.9/daemon/command.c:289:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:300:5: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:303:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/command.c:313:9: branch_false: ...to here
libguestfs-1.55.9/daemon/command.c:313:9: acquire_resource: opened here
libguestfs-1.55.9/daemon/command.c:313:8: danger: ‘dup2(se_fd[1], 2)’ leaks here; was opened at [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16)
#  311|         }
#  312|       }
#  313|->     if (dup2 (se_fd[PIPE_WRITE], STDERR_FILENO) == -1) {
#  314|         perror ("dup2/se_fd[PIPE_WRITE]");
#  315|         _exit (EXIT_FAILURE);

Error: CPPCHECK_WARNING (CWE-401): [#def110]
libguestfs-1.55.9/daemon/compress.c:61: error[memleak]: Memory leak: buf
#   59|     cmd_error:
#   60|       reply_with_perror ("open_memstream");
#   61|->     return -1;
#   62|     }
#   63|     fprintf (fp, "%s ", filter);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libguestfs-1.55.9/daemon/compress.c:76:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/compress.c:41:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:57:8: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:58:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/compress.c:63:3: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:70:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:73:7: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:76:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/compress.c:76:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   74|       fprintf (stderr, "%s\n", cmd);
#   75|   
#   76|->   fp = popen (cmd, "r");
#   77|     if (fp == NULL) {
#   78|       reply_with_perror ("%s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
libguestfs-1.55.9/daemon/compress.c:86:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/compress.c:41:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:57:8: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:58:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/compress.c:63:3: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:70:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:73:7: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:76:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/compress.c:77:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:86:3: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:86:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   84|      * message back.  Instead we can only cancel the transfer.
#   85|      */
#   86|->   reply (NULL, NULL);
#   87|   
#   88|     while ((r = fread (buf, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
libguestfs-1.55.9/daemon/compress.c:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/compress.c:41:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:57:8: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:58:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/compress.c:63:3: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:70:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:73:7: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:76:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/compress.c:77:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/compress.c:86:3: branch_false: ...to here
libguestfs-1.55.9/daemon/compress.c:88:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#   86|     reply (NULL, NULL);
#   87|   
#   88|->   while ((r = fread (buf, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#   89|       if (send_file_write (buf, r) < 0) {
#   90|         pclose (fp);

Error: CPPCHECK_WARNING (CWE-401): [#def114]
libguestfs-1.55.9/daemon/copy.c:67: error[memleak]: Memory leak: buf
#   65|       if (srcoffset < 0) {
#   66|         reply_with_error ("srcoffset is negative");
#   67|->       return -1;
#   68|       }
#   69|     }

Error: CPPCHECK_WARNING (CWE-401): [#def115]
libguestfs-1.55.9/daemon/copy.c:76: error[memleak]: Memory leak: buf
#   74|       if (destoffset < 0) {
#   75|         reply_with_error ("destoffset is negative");
#   76|->       return -1;
#   77|       }
#   78|     }

Error: CPPCHECK_WARNING (CWE-401): [#def116]
libguestfs-1.55.9/daemon/copy.c:85: error[memleak]: Memory leak: buf
#   83|       if (size < 0) {
#   84|         reply_with_error ("size is negative");
#   85|->       return -1;
#   86|       }
#   87|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
libguestfs-1.55.9/daemon/copy.c:95:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 524288)’
libguestfs-1.55.9/daemon/copy.c:59:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:95:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/copy.c:95:12: danger: ‘open(src, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   93|   
#   94|     /* Open source and destination. */
#   95|->   src_fd = open (src, O_RDONLY|O_CLOEXEC);
#   96|     if (src_fd == -1) {
#   97|       reply_with_perror ("%s", src_display);

Error: CPPCHECK_WARNING (CWE-401): [#def118]
libguestfs-1.55.9/daemon/copy.c:98: error[memleak]: Memory leak: buf
#   96|     if (src_fd == -1) {
#   97|       reply_with_perror ("%s", src_display);
#   98|->     return -1;
#   99|     }
#  100|   

Error: CPPCHECK_WARNING (CWE-401): [#def119]
libguestfs-1.55.9/daemon/copy.c:104: error[memleak]: Memory leak: buf
#  102|       reply_with_perror ("lseek: %s", src_display);
#  103|       close (src_fd);
#  104|->     return -1;
#  105|     }
#  106|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
libguestfs-1.55.9/daemon/copy.c:107:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 524288)’
libguestfs-1.55.9/daemon/copy.c:59:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:95:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/copy.c:96:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:101:6: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:101:6: branch_false: following ‘false’ branch (when ‘srcoffset == 0’)...
libguestfs-1.55.9/daemon/copy.c:107:13: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:107:13: danger: ‘open(src, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  105|     }
#  106|   
#  107|->   dest_fd = open (dest, wrflags, wrmode);
#  108|     if (dest_fd == -1) {
#  109|       reply_with_perror ("%s", dest_display);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
libguestfs-1.55.9/daemon/copy.c:109:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 524288)’
libguestfs-1.55.9/daemon/copy.c:59:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:95:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/copy.c:96:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:101:6: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:101:6: branch_false: following ‘false’ branch (when ‘srcoffset == 0’)...
libguestfs-1.55.9/daemon/copy.c:107:13: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:108:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/copy.c:109:5: branch_true: ...to here
libguestfs-1.55.9/daemon/copy.c:109:5: danger: ‘open(src, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  107|     dest_fd = open (dest, wrflags, wrmode);
#  108|     if (dest_fd == -1) {
#  109|->     reply_with_perror ("%s", dest_display);
#  110|       close (src_fd);
#  111|       return -1;

Error: CPPCHECK_WARNING (CWE-401): [#def122]
libguestfs-1.55.9/daemon/copy.c:111: error[memleak]: Memory leak: buf
#  109|       reply_with_perror ("%s", dest_display);
#  110|       close (src_fd);
#  111|->     return -1;
#  112|     }
#  113|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
libguestfs-1.55.9/daemon/copy.c:115:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 524288)’
libguestfs-1.55.9/daemon/copy.c:59:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:64:7: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:74:8: branch_false: following ‘false’ branch (when ‘destoffset >= 0’)...
libguestfs-1.55.9/daemon/copy.c:82:7: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:95:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/copy.c:96:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:101:6: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:101:6: branch_false: following ‘false’ branch (when ‘srcoffset == 0’)...
libguestfs-1.55.9/daemon/copy.c:107:13: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:108:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/copy.c:114:6: branch_false: ...to here
libguestfs-1.55.9/daemon/copy.c:114:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/copy.c:115:5: danger: ‘open(src, 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  113|   
#  114|     if (destoffset > 0 && lseek (dest_fd, destoffset, SEEK_SET) == (off_t) -1) {
#  115|->     reply_with_perror ("lseek: %s", dest_display);
#  116|       close (src_fd);
#  117|       close (dest_fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
libguestfs-1.55.9/daemon/copy.c:124:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 524288)’
libguestfs-1.55.9/daemon/copy.c:216:1: enter_function: entry to ‘do_copy_device_to_device’
libguestfs-1.55.9/daemon/copy.c:225:10: call_function: calling ‘copy’ from ‘do_copy_device_to_device’
#  122|   
#  123|     if (size == -1)
#  124|->     pulse_mode_start ();
#  125|   
#  126|     while (size != 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
libguestfs-1.55.9/daemon/copy.c:128:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 524288)’
libguestfs-1.55.9/daemon/copy.c:216:1: enter_function: entry to ‘do_copy_device_to_device’
libguestfs-1.55.9/daemon/copy.c:225:10: call_function: calling ‘copy’ from ‘do_copy_device_to_device’
#  126|     while (size != 0) {
#  127|       /* Calculate bytes to copy. */
#  128|->     if (size == -1 || size > BUFSIZ)
#  129|         n = BUFSIZ;
#  130|       else

Error: CPPCHECK_WARNING (CWE-401): [#def126]
libguestfs-1.55.9/daemon/cpio.c:57: error[memleak]: Memory leak: buffer
#   55|     if (buf == NULL) {
#   56|       reply_with_perror ("malloc");
#   57|->     return -1;
#   58|     }
#   59|   

Error: CPPCHECK_WARNING (CWE-401): [#def127]
libguestfs-1.55.9/daemon/cpio.c:62: error[memleak]: Memory leak: buffer
#   60|     if (stat (buf, &statbuf) == -1) {
#   61|       reply_with_perror ("stat: %s", dir);
#   62|->     return -1;
#   63|     }
#   64|   

Error: CPPCHECK_WARNING (CWE-401): [#def128]
libguestfs-1.55.9/daemon/cpio.c:67: error[memleak]: Memory leak: buffer
#   65|     if (! S_ISDIR (statbuf.st_mode)) {
#   66|       reply_with_error ("%s: not a directory", dir);
#   67|->     return -1;
#   68|     }
#   69|   

Error: CPPCHECK_WARNING (CWE-401): [#def129]
libguestfs-1.55.9/daemon/cpio.c:74: error[memleak]: Memory leak: buffer
#   72|       if (STRNEQ (format, "newc") && STRNEQ (format, "crc")) {
#   73|         reply_with_error ("%s: format must be 'newc' or 'crc'", format);
#   74|->       return -1;
#   75|       }
#   76|     }

Error: CPPCHECK_WARNING (CWE-401): [#def130]
libguestfs-1.55.9/daemon/cpio.c:84: error[memleak]: Memory leak: buffer
#   82|     cmd_error:
#   83|       reply_with_perror ("open_memstream");
#   84|->     return -1;
#   85|     }
#   86|     fprintf (fp, "cd ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
libguestfs-1.55.9/daemon/cpio.c:95:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/cpio.c:48:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:54:9: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:55:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:60:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:60:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:65:9: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:65:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:71:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:81:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/cpio.c:86:3: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:89:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:92:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:95:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/cpio.c:95:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#   93|       fprintf (stderr, "%s\n", cmd);
#   94|   
#   95|->   fp = popen (cmd, "r");
#   96|     if (fp == NULL) {
#   97|       reply_with_perror ("%s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
libguestfs-1.55.9/daemon/cpio.c:105:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/cpio.c:48:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:54:9: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:55:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:60:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:60:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:65:9: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:65:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:71:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:81:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/cpio.c:86:3: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:89:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:92:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:95:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/cpio.c:96:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:105:3: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:105:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  103|      * message back.  Instead we can only cancel the transfer.
#  104|      */
#  105|->   reply (NULL, NULL);
#  106|   
#  107|     while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
libguestfs-1.55.9/daemon/cpio.c:107:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/cpio.c:48:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:54:9: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:55:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:60:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:60:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:65:9: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:65:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:71:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:81:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/cpio.c:86:3: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:89:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:92:7: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:95:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/cpio.c:96:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/cpio.c:105:3: branch_false: ...to here
libguestfs-1.55.9/daemon/cpio.c:107:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  105|     reply (NULL, NULL);
#  106|   
#  107|->   while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  108|       if (send_file_write (buffer, r) < 0) {
#  109|         pclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
libguestfs-1.55.9/daemon/daemon-c.c:141:17: warning[-Wanalyzer-malloc-leak]: leak of ‘guestfs_int_daemon_return_string_mountable(mv)’
libguestfs-1.55.9/daemon/daemon-c.c:211:1: enter_function: entry to ‘guestfs_int_daemon_return_hashtable_mountable_string’
libguestfs-1.55.9/daemon/daemon-c.c:217:10: branch_true: following ‘true’ branch (when ‘retv != 1’)...
libguestfs-1.55.9/daemon/daemon-c.c:218:9: branch_true: ...to here
libguestfs-1.55.9/daemon/daemon-c.c:220:9: call_function: calling ‘guestfs_int_daemon_return_string_mountable’ from ‘guestfs_int_daemon_return_hashtable_mountable_string’
libguestfs-1.55.9/daemon/daemon-c.c:220:9: return_function: returning to ‘guestfs_int_daemon_return_hashtable_mountable_string’ from ‘guestfs_int_daemon_return_string_mountable’
libguestfs-1.55.9/daemon/daemon-c.c:141:17: danger: ‘guestfs_int_daemon_return_string_mountable(mv)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#  139|   guestfs_int_daemon_return_string_mountable (value retv)
#  140|   {
#  141|->   value typev = Field (retv, 0);
#  142|     value devicev = Field (retv, 1);
#  143|     value subvolv;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
libguestfs-1.55.9/daemon/daemon-c.c:141:17: warning[-Wanalyzer-malloc-leak]: leak of ‘guestfs_int_daemon_return_string_mountable(v)’
libguestfs-1.55.9/daemon/daemon-c.c:163:1: enter_function: entry to ‘guestfs_int_daemon_return_string_mountable_list’
libguestfs-1.55.9/daemon/daemon-c.c:169:10: branch_true: following ‘true’ branch (when ‘retv != 1’)...
libguestfs-1.55.9/daemon/daemon-c.c:170:9: branch_true: ...to here
libguestfs-1.55.9/daemon/daemon-c.c:171:9: call_function: calling ‘guestfs_int_daemon_return_string_mountable’ from ‘guestfs_int_daemon_return_string_mountable_list’
libguestfs-1.55.9/daemon/daemon-c.c:171:9: return_function: returning to ‘guestfs_int_daemon_return_string_mountable_list’ from ‘guestfs_int_daemon_return_string_mountable’
libguestfs-1.55.9/daemon/daemon-c.c:141:17: danger: ‘guestfs_int_daemon_return_string_mountable(v)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#  139|   guestfs_int_daemon_return_string_mountable (value retv)
#  140|   {
#  141|->   value typev = Field (retv, 0);
#  142|     value devicev = Field (retv, 1);
#  143|     value subvolv;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
libguestfs-1.55.9/daemon/dd.c:82:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(sysroot_path(src), 524288)’
libguestfs-1.55.9/daemon/dd.c:74:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/dd.c:77:30: branch_false: ...to here
libguestfs-1.55.9/daemon/dd.c:78:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/dd.c:82:14: branch_false: ...to here
libguestfs-1.55.9/daemon/dd.c:82:14: acquire_resource: opened here
libguestfs-1.55.9/daemon/dd.c:82:14: danger: ‘open(sysroot_path(src), 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   80|         return -1;
#   81|       }
#   82|->     src_fd = open (buf, O_RDONLY | O_CLOEXEC);
#   83|     }
#   84|     if (src_fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libguestfs-1.55.9/daemon/debug-bmap.c:50:7: warning[-Wanalyzer-malloc-leak]: leak of ‘bmap_prepare(sysroot_path(path), path)’
libguestfs-1.55.9/daemon/debug-bmap.c:103:1: enter_function: entry to ‘debug_bmap_file’
libguestfs-1.55.9/daemon/debug-bmap.c:108:6: branch_false: following ‘false’ branch (when ‘argc == 1’)...
libguestfs-1.55.9/daemon/debug-bmap.c:112:3: branch_false: ...to here
libguestfs-1.55.9/daemon/debug-bmap.c:115:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/debug-bmap.c:120:10: branch_false: ...to here
libguestfs-1.55.9/daemon/debug-bmap.c:120:10: call_function: calling ‘bmap_prepare’ from ‘debug_bmap_file’
libguestfs-1.55.9/daemon/debug-bmap.c:120:10: return_function: returning to ‘debug_bmap_file’ from ‘bmap_prepare’
libguestfs-1.55.9/daemon/debug-bmap.c:50:7: danger: ‘bmap_prepare(sysroot_path(path), path)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
#   48|   bmap_finalize (void)
#   49|   {
#   50|->   if (fd >= 0) {
#   51|       close (fd);
#   52|       fd = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
libguestfs-1.55.9/daemon/debug.c:730:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*argv, 540672)’
libguestfs-1.55.9/daemon/debug.c:685:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libguestfs-1.55.9/daemon/debug.c:691:7: branch_false: ...to here
libguestfs-1.55.9/daemon/debug.c:699:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/debug.c:703:12: branch_false: ...to here
libguestfs-1.55.9/daemon/debug.c:703:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/debug.c:704:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/debug.c:717:13: branch_false: ...to here
 branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/debug.c:728:3: branch_false: ...to here
libguestfs-1.55.9/daemon/debug.c:729:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/debug.c:730:5: branch_true: ...to here
libguestfs-1.55.9/daemon/debug.c:730:5: danger: ‘open(*argv, 540672)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  728|     errno = posix_memalign (&buf, QTRACE_SIZE, QTRACE_SIZE);
#  729|     if (errno != 0) {
#  730|->     reply_with_perror ("posix_memalign");
#  731|       close (fd);
#  732|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
libguestfs-1.55.9/daemon/debug.c:814:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device,  <unknown>)’
libguestfs-1.55.9/daemon/debug.c:778:6: branch_false: following ‘false’ branch (when ‘argc == 3’)...
libguestfs-1.55.9/daemon/debug.c:784:3: branch_false: ...to here
libguestfs-1.55.9/daemon/debug.c:791:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/debug.c:795:10: branch_false: ...to here
libguestfs-1.55.9/daemon/debug.c:796:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/debug.c:799:6: branch_false: ...to here
libguestfs-1.55.9/daemon/debug.c:799:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/debug.c:805:9: branch_false: ...to here
 branch_true: following ‘true’ branch (when ‘err == 0’)...
libguestfs-1.55.9/daemon/debug.c:812:3: branch_true: ...to here
libguestfs-1.55.9/daemon/debug.c:814:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/debug.c:814:8: danger: ‘open(device,  <unknown>)’ leaks here; was opened at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  812|     memset (buf, 100, BUFSIZ);
#  813|   
#  814|->   fd = open (device, (writing ? O_WRONLY : O_RDONLY) | O_CLOEXEC | O_DIRECT);
#  815|     if (fd == -1) {
#  816|       reply_with_perror ("open: %s", device);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
libguestfs-1.55.9/daemon/devsparts.c:45:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev/disk/guestfs")’
libguestfs-1.55.9/daemon/devsparts.c:45:9: acquire_memory: allocated here
libguestfs-1.55.9/daemon/devsparts.c:45:9: danger: ‘opendir("/dev/disk/guestfs")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   43|     CLEANUP_FREE_STRINGSBUF DECLARE_STRINGSBUF (ret);
#   44|   
#   45|->   dir = opendir (GUESTFSDIR);
#   46|     if (!dir) {
#   47|       if (errno == ENOENT) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
libguestfs-1.55.9/daemon/file.c:483:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/file.c:469:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/file.c:474:3: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:477:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/file.c:480:7: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:483:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/file.c:483:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  481|       fprintf (stderr, "%s\n", cmd);
#  482|   
#  483|->   fp = popen (cmd, "r");
#  484|     if (fp == NULL) {
#  485|       reply_with_perror ("%s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libguestfs-1.55.9/daemon/file.c:489:7: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/file.c:469:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/file.c:474:3: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:477:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/file.c:480:7: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:483:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/file.c:484:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/file.c:489:7: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:489:7: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  487|     }
#  488|   
#  489|->   if (fgets (line, sizeof line, fp) == NULL) {
#  490|       reply_with_perror ("fgets");
#  491|       pclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
libguestfs-1.55.9/daemon/file.c:490:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/file.c:469:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/file.c:474:3: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:477:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/file.c:480:7: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:483:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/file.c:484:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/file.c:489:7: branch_false: ...to here
libguestfs-1.55.9/daemon/file.c:489:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/file.c:490:5: branch_true: ...to here
libguestfs-1.55.9/daemon/file.c:490:5: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  488|   
#  489|     if (fgets (line, sizeof line, fp) == NULL) {
#  490|->     reply_with_perror ("fgets");
#  491|       pclose (fp);
#  492|       return NULL;

Error: CPPCHECK_WARNING (CWE-401): [#def144]
libguestfs-1.55.9/daemon/fill.c:53: error[memleak]: Memory leak: buf
#   51|     if (len < 0) {
#   52|       reply_with_error ("%d: length is < 0", len);
#   53|->     return -1;
#   54|     }
#   55|     len_sz = (size_t) len;

Error: CPPCHECK_WARNING (CWE-401): [#def145]
libguestfs-1.55.9/daemon/find.c:74: error[memleak]: Memory leak: str
#   72|     if (!sysrootdir) {
#   73|       reply_with_perror ("malloc");
#   74|->     return -1;
#   75|     }
#   76|   

Error: CPPCHECK_WARNING (CWE-401): [#def146]
libguestfs-1.55.9/daemon/find.c:80: error[memleak]: Memory leak: str
#   78|     if (r == -1) {
#   79|       reply_with_perror ("%s", dir);
#   80|->     return -1;
#   81|     }
#   82|     if (!S_ISDIR (statbuf.st_mode)) {

Error: CPPCHECK_WARNING (CWE-401): [#def147]
libguestfs-1.55.9/daemon/find.c:84: error[memleak]: Memory leak: str
#   82|     if (!S_ISDIR (statbuf.st_mode)) {
#   83|       reply_with_error ("%s: not a directory", dir);
#   84|->     return -1;
#   85|     }
#   86|   

Error: CPPCHECK_WARNING (CWE-401): [#def148]
libguestfs-1.55.9/daemon/find.c:93: error[memleak]: Memory leak: str
#   91|     cmd_error:
#   92|       reply_with_perror ("open_memstream");
#   93|->     return -1;
#   94|     }
#   95|     fprintf (fp, "find ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
libguestfs-1.55.9/daemon/find.c:104:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/find.c:66:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:71:16: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:72:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:77:7: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:78:6: branch_false: following ‘false’ branch (when ‘r != -1’)...
libguestfs-1.55.9/daemon/find.c:82:8: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:82:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:87:19: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:90:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/find.c:95:3: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:101:7: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:104:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/find.c:104:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  102|       fprintf (stderr, "%s\n", cmd);
#  103|   
#  104|->   fp = popen (cmd, "r");
#  105|     if (fp == NULL) {
#  106|       reply_with_perror ("%s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libguestfs-1.55.9/daemon/find.c:114:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/find.c:66:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:71:16: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:72:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:77:7: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:78:6: branch_false: following ‘false’ branch (when ‘r != -1’)...
libguestfs-1.55.9/daemon/find.c:82:8: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:82:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:87:19: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:90:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/find.c:95:3: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:101:7: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:104:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/find.c:105:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:114:3: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:114:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  112|      * message back.  Instead we can only cancel the transfer.
#  113|      */
#  114|->   reply (NULL, NULL);
#  115|   
#  116|     /* The code below assumes each path returned can fit into a protocol

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
libguestfs-1.55.9/daemon/find.c:121:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/find.c:54:1: enter_function: entry to ‘do_find0’
libguestfs-1.55.9/daemon/find.c:66:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:71:16: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:72:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:77:7: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:78:6: branch_false: following ‘false’ branch (when ‘r != -1’)...
libguestfs-1.55.9/daemon/find.c:82:8: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:82:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:87:19: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:90:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/find.c:95:3: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:101:7: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:104:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/find.c:105:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/find.c:114:3: branch_false: ...to here
libguestfs-1.55.9/daemon/find.c:121:15: call_function: calling ‘input_to_nul’ from ‘do_find0’
libguestfs-1.55.9/daemon/find.c:121:15: return_function: returning to ‘do_find0’ from ‘input_to_nul’
libguestfs-1.55.9/daemon/find.c:121:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  119|      * we'll need to modify the code to handle it.  XXX
#  120|      */
#  121|->   while ((r = input_to_nul (fp, str, GUESTFS_MAX_CHUNK_SIZE)) > 0) {
#  122|       const size_t len = strlen (str);
#  123|       if (len <= sysrootdirlen)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libguestfs-1.55.9/daemon/fs-min-size.c:40:26: warning[-Wanalyzer-malloc-leak]: leak of ‘get_mount_point(*mountable.device)’
libguestfs-1.55.9/daemon/fs-min-size.c:54:1: enter_function: entry to ‘do_vfs_minimum_size’
libguestfs-1.55.9/daemon/fs-min-size.c:60:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/fs-min-size.c:63:12: branch_false: ...to here
libguestfs-1.55.9/daemon/fs-min-size.c:63:11: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/fs-min-size.c:66:12: branch_false: ...to here
libguestfs-1.55.9/daemon/fs-min-size.c:66:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
libguestfs-1.55.9/daemon/fs-min-size.c:69:12: branch_false: ...to here
libguestfs-1.55.9/daemon/fs-min-size.c:69:11: branch_true: following ‘true’ branch (when the strings are equal)...
libguestfs-1.55.9/daemon/fs-min-size.c:70:48: branch_true: ...to here
libguestfs-1.55.9/daemon/fs-min-size.c:70:31: call_function: calling ‘get_mount_point’ from ‘do_vfs_minimum_size’
libguestfs-1.55.9/daemon/fs-min-size.c:70:31: return_function: returning to ‘do_vfs_minimum_size’ from ‘get_mount_point’
libguestfs-1.55.9/daemon/fs-min-size.c:40:26: danger: ‘get_mount_point(*mountable.device)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#   38|     }
#   39|   
#   40|->   for (i = 0; mountpoints[i] != NULL; i += 2) {
#   41|       if (STREQ (mountpoints[i], device)) {
#   42|         path = strdup (mountpoints[i + 1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def153]
libguestfs-1.55.9/daemon/grep.c:66:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/grep.c:138:1: enter_function: entry to ‘do_zgrep’
libguestfs-1.55.9/daemon/grep.c:140:10: call_function: calling ‘grep’ from ‘do_zgrep’
#   64|   
#   65|     CHROOT_IN;
#   66|->   fd = open (path, O_RDONLY|O_CLOEXEC);
#   67|     CHROOT_OUT;
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def154]
libguestfs-1.55.9/daemon/grep.c:67:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/grep.c:138:1: enter_function: entry to ‘do_zgrep’
libguestfs-1.55.9/daemon/grep.c:140:10: call_function: calling ‘grep’ from ‘do_zgrep’
#   65|     CHROOT_IN;
#   66|     fd = open (path, O_RDONLY|O_CLOEXEC);
#   67|->   CHROOT_OUT;
#   68|   
#   69|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def155]
libguestfs-1.55.9/daemon/grep.c:78:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/grep.c:138:1: enter_function: entry to ‘do_zgrep’
libguestfs-1.55.9/daemon/grep.c:140:10: call_function: calling ‘grep’ from ‘do_zgrep’
#   76|      */
#   77|     flags = COMMAND_FLAG_CHROOT_COPY_FILE_TO_STDIN | fd;
#   78|->   r = commandrvf (&out, &err, flags, argv);
#   79|     if (r == -1 || r > 1) {
#   80|       reply_with_error ("%s: %s", regex, err);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def156]
libguestfs-1.55.9/daemon/headtail.c:39:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/headtail.c:39:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/headtail.c:39:8: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   37|   
#   38|     CHROOT_IN;
#   39|->   fd = open (path, O_RDONLY|O_CLOEXEC);
#   40|     CHROOT_OUT;
#   41|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
libguestfs-1.55.9/daemon/headtail.c:40:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/headtail.c:39:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/headtail.c:40:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/headtail.c:40:3: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   38|     CHROOT_IN;
#   39|     fd = open (path, O_RDONLY|O_CLOEXEC);
#   40|->   CHROOT_OUT;
#   41|   
#   42|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
libguestfs-1.55.9/daemon/headtail.c:48:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/headtail.c:39:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/headtail.c:42:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/headtail.c:47:3: branch_false: ...to here
libguestfs-1.55.9/daemon/headtail.c:48:7: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   46|   
#   47|     flags = COMMAND_FLAG_CHROOT_COPY_FILE_TO_STDIN | fd;
#   48|->   r = commandf (&out, &err, flags, prog, flag, n, NULL);
#   49|     if (r == -1) {
#   50|       reply_with_error ("%s %s %s: %s", prog, flag, n, err);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
libguestfs-1.55.9/daemon/hexdump.c:38:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/hexdump.c:38:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/hexdump.c:38:8: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   36|   
#   37|     CHROOT_IN;
#   38|->   fd = open (path, O_RDONLY|O_CLOEXEC);
#   39|     CHROOT_OUT;
#   40|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
libguestfs-1.55.9/daemon/hexdump.c:39:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/hexdump.c:38:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/hexdump.c:39:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/hexdump.c:39:3: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   37|     CHROOT_IN;
#   38|     fd = open (path, O_RDONLY|O_CLOEXEC);
#   39|->   CHROOT_OUT;
#   40|   
#   41|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
libguestfs-1.55.9/daemon/hexdump.c:47:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/hexdump.c:38:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/hexdump.c:41:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/hexdump.c:46:3: branch_false: ...to here
libguestfs-1.55.9/daemon/hexdump.c:47:7: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   45|   
#   46|     flags = COMMAND_FLAG_CHROOT_COPY_FILE_TO_STDIN | fd;
#   47|->   r = commandf (&out, &err, flags, "hexdump", "-C", NULL);
#   48|     if (r == -1) {
#   49|       reply_with_error ("%s: %s", path, err);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
libguestfs-1.55.9/daemon/initrd.c:62:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/initrd.c:48:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/initrd.c:53:3: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:56:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:59:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:62:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/initrd.c:62:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   60|       fprintf (stderr, "%s\n", cmd);
#   61|   
#   62|->   fp = popen (cmd, "r");
#   63|     if (fp == NULL) {
#   64|       reply_with_perror ("popen: %s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
libguestfs-1.55.9/daemon/initrd.c:158:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fullpath, 524288)’
libguestfs-1.55.9/daemon/initrd.c:110:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:121:8: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:122:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/initrd.c:128:3: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:134:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:137:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:138:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:143:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:143:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:151:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:158:8: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:158:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/initrd.c:158:8: danger: ‘open(fullpath, 524288)’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  156|   
#  157|     /* See if we got a file. */
#  158|->   fd = open (fullpath, O_RDONLY|O_CLOEXEC);
#  159|     if (fd == -1) {
#  160|       reply_with_perror ("open: %s:%s", path, filename);

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def164]
libguestfs-1.55.9/daemon/initrd.c:212:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘open(fullpath, 524288)’
libguestfs-1.55.9/daemon/initrd.c:110:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:121:8: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:122:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/initrd.c:128:3: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:134:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:137:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:138:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:143:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:143:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:151:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:158:8: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:158:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/initrd.c:159:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:168:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:168:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:178:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:178:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:184:9: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:185:6: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
libguestfs-1.55.9/daemon/initrd.c:190:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:190:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/initrd.c:197:7: branch_false: ...to here
libguestfs-1.55.9/daemon/initrd.c:197:7: release_resource: first ‘close’ here
libguestfs-1.55.9/daemon/initrd.c:197:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/initrd.c:198:5: branch_true: ...to here
libguestfs-1.55.9/daemon/initrd.c:211:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/initrd.c:212:5: branch_true: ...to here
libguestfs-1.55.9/daemon/initrd.c:212:5: danger: second ‘close’ here; first ‘close’ was at [(25)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/24)
#  210|    cleanup:
#  211|     if (fd >= 0)
#  212|->     close (fd);
#  213|   
#  214|     /* Remove the file. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
libguestfs-1.55.9/daemon/inotify.c:197:3: warning[-Wanalyzer-malloc-leak]: leak of ‘do_inotify_read()’
libguestfs-1.55.9/daemon/inotify.c:310:1: enter_function: entry to ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:321:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:323:8: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:324:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:329:3: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:332:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:339:14: call_function: calling ‘do_inotify_read’ from ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:339:14: return_function: returning to ‘do_inotify_files’ from ‘do_inotify_read’
libguestfs-1.55.9/daemon/inotify.c:197:3: danger: ‘do_inotify_read()’ leaks here; was allocated at [(12)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/11)
#  195|     guestfs_int_inotify_event_list *ret;
#  196|   
#  197|->   NEED_INOTIFY (NULL);
#  198|   
#  199|     ret = malloc (sizeof *ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
libguestfs-1.55.9/daemon/inotify.c:197:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "w")’
libguestfs-1.55.9/daemon/inotify.c:310:1: enter_function: entry to ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:321:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:323:8: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:324:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:329:3: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:331:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/inotify.c:332:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:339:14: call_function: calling ‘do_inotify_read’ from ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:339:14: return_function: returning to ‘do_inotify_files’ from ‘do_inotify_read’
libguestfs-1.55.9/daemon/inotify.c:197:3: danger: ‘popen(&cmd, "w")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  195|     guestfs_int_inotify_event_list *ret;
#  196|   
#  197|->   NEED_INOTIFY (NULL);
#  198|   
#  199|     ret = malloc (sizeof *ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
libguestfs-1.55.9/daemon/inotify.c:213:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/inotify.c:310:1: enter_function: entry to ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:321:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:323:8: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:324:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:329:3: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:332:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:339:14: call_function: calling ‘do_inotify_read’ from ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:339:14: return_function: returning to ‘do_inotify_files’ from ‘do_inotify_read’
libguestfs-1.55.9/daemon/inotify.c:213:10: danger: ‘<unknown>’ leaks here; was allocated at [(48)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/47)
#  211|     space = GUESTFS_MESSAGE_MAX / 2;
#  212|   
#  213|->   while (space > 0) {
#  214|       struct inotify_event *event;
#  215|       int r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
libguestfs-1.55.9/daemon/inotify.c:222:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/inotify.c:310:1: enter_function: entry to ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:321:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:323:8: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:324:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:329:3: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:332:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:339:14: call_function: calling ‘do_inotify_read’ from ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:339:14: return_function: returning to ‘do_inotify_files’ from ‘do_inotify_read’
libguestfs-1.55.9/daemon/inotify.c:222:10: danger: ‘<unknown>’ leaks here; was allocated at [(33)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/32)
#  220|       if (r == -1) {
#  221|          /* End of list? */
#  222|->       if (errno == EWOULDBLOCK ||
#  223|             (EWOULDBLOCK != EAGAIN && errno == EAGAIN))
#  224|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
libguestfs-1.55.9/daemon/inotify.c:261:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/inotify.c:197:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:199:9: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:200:6: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
libguestfs-1.55.9/daemon/inotify.c:204:3: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:213:10: branch_true: following ‘true’ branch (when ‘space > 0’)...
libguestfs-1.55.9/daemon/inotify.c:218:9: branch_true: ...to here
libguestfs-1.55.9/daemon/inotify.c:220:8: branch_false: following ‘false’ branch (when ‘r != -1’)...
libguestfs-1.55.9/daemon/inotify.c:228:8: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:228:8: branch_false: following ‘false’ branch (when ‘r != 0’)...
libguestfs-1.55.9/daemon/inotify.c:233:18: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:237:12: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/inotify.c:241:7: branch_true: ...to here
libguestfs-1.55.9/daemon/inotify.c:245:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:246:47: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:245:11: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:253:10: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:253:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:259:22: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:261:10: branch_false: following ‘false’ branch (when ‘np’ is non-NULL)...
libguestfs-1.55.9/daemon/inotify.c:265:7: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:273:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:276:23: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:276:23: acquire_memory: allocated here
libguestfs-1.55.9/daemon/inotify.c:277:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:283:13: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:237:12: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/inotify.c:241:7: branch_true: ...to here
libguestfs-1.55.9/daemon/inotify.c:245:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:246:47: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:245:11: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:253:10: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:253:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:259:22: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:261:10: danger: ‘<unknown>’ leaks here; was allocated at [(24)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/23)
#  259|                       (ret->guestfs_int_inotify_event_list_len + 1) *
#  260|                       sizeof (guestfs_int_inotify_event));
#  261|->       if (np == NULL) {
#  262|           reply_with_perror ("realloc");
#  263|           goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
libguestfs-1.55.9/daemon/inotify.c:331:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "w")’
libguestfs-1.55.9/daemon/inotify.c:321:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:323:8: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:324:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:329:3: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:331:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/inotify.c:331:8: danger: ‘popen(&cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  329|     snprintf (cmd, sizeof cmd, "sort -u > %s", tempfile);
#  330|   
#  331|->   pp = popen (cmd, "w");
#  332|     if (pp == NULL) {
#  333|       reply_with_perror ("sort");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
libguestfs-1.55.9/daemon/inotify.c:355:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/inotify.c:310:1: enter_function: entry to ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:321:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:323:8: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:324:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:329:3: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:332:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:339:14: call_function: calling ‘do_inotify_read’ from ‘do_inotify_files’
libguestfs-1.55.9/daemon/inotify.c:339:14: return_function: returning to ‘do_inotify_files’ from ‘do_inotify_read’
libguestfs-1.55.9/daemon/inotify.c:340:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/inotify.c:346:9: branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:346:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/inotify.c:351:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/inotify.c:352:26: branch_true: ...to here
libguestfs-1.55.9/daemon/inotify.c:354:10: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/inotify.c:355:9: branch_true: ...to here
libguestfs-1.55.9/daemon/inotify.c:355:9: danger: ‘<unknown>’ leaks here; was allocated at [(28)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/27)
#  353|   
#  354|         if (name[0] != '\0')
#  355|->         fprintf (pp, "%s\n", name);
#  356|       }
#  357|   

Error: CPPCHECK_WARNING (CWE-457): [#def172]
libguestfs-1.55.9/daemon/is.c:107: error[uninitvar]: Uninitialized variable: &buf
#  105|   
#  106|     CHROOT_IN;
#  107|->   r = (!followsymlinks ? lstat : stat) (path, &buf);
#  108|     CHROOT_OUT;
#  109|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
libguestfs-1.55.9/daemon/ldm.c:75:7: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_json_get_object_string(out, "hint", 1, & __func__, "ldmtool show volume")’
libguestfs-1.55.9/daemon/ldm.c:322:1: enter_function: entry to ‘do_ldmtool_volume_hint’
libguestfs-1.55.9/daemon/ldm.c:329:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ldm.c:334:10: branch_false: ...to here
libguestfs-1.55.9/daemon/ldm.c:334:10: call_function: calling ‘parse_json_get_object_string’ from ‘do_ldmtool_volume_hint’
libguestfs-1.55.9/daemon/ldm.c:334:10: return_function: returning to ‘do_ldmtool_volume_hint’ from ‘parse_json_get_object_string’
libguestfs-1.55.9/daemon/ldm.c:75:7: danger: ‘parse_json_get_object_string(out, "hint", 1, & __func__, "ldmtool show volume")’ leaks here; was allocated at [(21)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/20)
#   73|     enum json_tokener_error err;
#   74|   
#   75|->   if (verbose)
#   76|       fprintf (stderr, "%s: parsing json: %s\n", caller, json);
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libguestfs-1.55.9/daemon/ldm.c:75:7: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_json_get_object_string(out, "name", 0, & __func__, "ldmtool show diskgroup")’
libguestfs-1.55.9/daemon/ldm.c:257:1: enter_function: entry to ‘do_ldmtool_diskgroup_name’
libguestfs-1.55.9/daemon/ldm.c:263:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ldm.c:268:10: branch_false: ...to here
libguestfs-1.55.9/daemon/ldm.c:268:10: call_function: calling ‘parse_json_get_object_string’ from ‘do_ldmtool_diskgroup_name’
libguestfs-1.55.9/daemon/ldm.c:268:10: return_function: returning to ‘do_ldmtool_diskgroup_name’ from ‘parse_json_get_object_string’
libguestfs-1.55.9/daemon/ldm.c:75:7: danger: ‘parse_json_get_object_string(out, "name", 0, & __func__, "ldmtool show diskgroup")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
#   73|     enum json_tokener_error err;
#   74|   
#   75|->   if (verbose)
#   76|       fprintf (stderr, "%s: parsing json: %s\n", caller, json);
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
libguestfs-1.55.9/daemon/ldm.c:75:7: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_json_get_object_string(out, "type", 0, & __func__, "ldmtool show volume")’
libguestfs-1.55.9/daemon/ldm.c:305:1: enter_function: entry to ‘do_ldmtool_volume_type’
libguestfs-1.55.9/daemon/ldm.c:312:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ldm.c:317:10: branch_false: ...to here
libguestfs-1.55.9/daemon/ldm.c:317:10: call_function: calling ‘parse_json_get_object_string’ from ‘do_ldmtool_volume_type’
libguestfs-1.55.9/daemon/ldm.c:317:10: return_function: returning to ‘do_ldmtool_volume_type’ from ‘parse_json_get_object_string’
libguestfs-1.55.9/daemon/ldm.c:75:7: danger: ‘parse_json_get_object_string(out, "type", 0, & __func__, "ldmtool show volume")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
#   73|     enum json_tokener_error err;
#   74|   
#   75|->   if (verbose)
#   76|       fprintf (stderr, "%s: parsing json: %s\n", caller, json);
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def176]
libguestfs-1.55.9/daemon/ldm.c:243:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libguestfs-1.55.9/daemon/ldm.c:217:1: enter_function: entry to ‘do_ldmtool_scan’
libguestfs-1.55.9/daemon/ldm.c:221:10: call_function: calling ‘do_ldmtool_scan_devices’ from ‘do_ldmtool_scan’
#  241|     argv[1] = "scan";
#  242|     for (i = 0; i < nr_devices; ++i)
#  243|->     argv[2+i] = devices[i];
#  244|     argv[2+i] = NULL;
#  245|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
libguestfs-1.55.9/daemon/ldm.c:260:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/ldm.c:257:1: enter_function: entry to ‘do_ldmtool_diskgroup_name’
libguestfs-1.55.9/daemon/ldm.c:263:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ldm.c:268:10: branch_false: ...to here
libguestfs-1.55.9/daemon/ldm.c:268:10: call_function: calling ‘parse_json_get_object_string’ from ‘do_ldmtool_diskgroup_name’
libguestfs-1.55.9/daemon/ldm.c:268:10: return_function: returning to ‘do_ldmtool_diskgroup_name’ from ‘parse_json_get_object_string’
libguestfs-1.55.9/daemon/ldm.c:260:35: danger: ‘<unknown>’ leaks here; was allocated at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
#  258|   {
#  259|     int r;
#  260|->   CLEANUP_FREE char *out = NULL, *err = NULL;
#  261|   
#  262|     r = command (&out, &err, "ldmtool", "show", "diskgroup", diskgroup, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
libguestfs-1.55.9/daemon/ldm.c:308:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/ldm.c:305:1: enter_function: entry to ‘do_ldmtool_volume_type’
libguestfs-1.55.9/daemon/ldm.c:312:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ldm.c:317:10: branch_false: ...to here
libguestfs-1.55.9/daemon/ldm.c:317:10: call_function: calling ‘parse_json_get_object_string’ from ‘do_ldmtool_volume_type’
libguestfs-1.55.9/daemon/ldm.c:317:10: return_function: returning to ‘do_ldmtool_volume_type’ from ‘parse_json_get_object_string’
libguestfs-1.55.9/daemon/ldm.c:308:35: danger: ‘<unknown>’ leaks here; was allocated at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
#  306|   {
#  307|     int r;
#  308|->   CLEANUP_FREE char *out = NULL, *err = NULL;
#  309|   
#  310|     r = command (&out, &err,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
libguestfs-1.55.9/daemon/ldm.c:325:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/ldm.c:322:1: enter_function: entry to ‘do_ldmtool_volume_hint’
libguestfs-1.55.9/daemon/ldm.c:329:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ldm.c:334:10: branch_false: ...to here
libguestfs-1.55.9/daemon/ldm.c:334:10: call_function: calling ‘parse_json_get_object_string’ from ‘do_ldmtool_volume_hint’
libguestfs-1.55.9/daemon/ldm.c:334:10: return_function: returning to ‘do_ldmtool_volume_hint’ from ‘parse_json_get_object_string’
libguestfs-1.55.9/daemon/ldm.c:325:35: danger: ‘<unknown>’ leaks here; was allocated at [(21)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/20)
#  323|   {
#  324|     int r;
#  325|->   CLEANUP_FREE char *out = NULL, *err = NULL;
#  326|   
#  327|     r = command (&out, &err,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def180]
libguestfs-1.55.9/daemon/link.c:41:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 589824)’
libguestfs-1.55.9/daemon/link.c:41:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/link.c:41:12: danger: ‘open(path, 589824)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   39|   
#   40|     CHROOT_IN;
#   41|->   fd_cwd = open (path, O_RDONLY|O_DIRECTORY|O_CLOEXEC);
#   42|     CHROOT_OUT;
#   43|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def181]
libguestfs-1.55.9/daemon/link.c:42:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 589824)’
libguestfs-1.55.9/daemon/link.c:41:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/link.c:42:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/link.c:42:3: danger: ‘open(path, 589824)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   40|     CHROOT_IN;
#   41|     fd_cwd = open (path, O_RDONLY|O_DIRECTORY|O_CLOEXEC);
#   42|->   CHROOT_OUT;
#   43|   
#   44|     if (fd_cwd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
libguestfs-1.55.9/daemon/lvm-filter.c:76:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf, "we")’
libguestfs-1.55.9/daemon/lvm-filter.c:93:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/lvm-filter.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:76:7: danger: ‘fopen(conf, "we")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   74|     static bool checked, available;
#   75|   
#   76|->   if (!checked) {
#   77|       checked = true;
#   78|       available = command (NULL, NULL, "lvmdevices", "--help", NULL) == 0 ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
libguestfs-1.55.9/daemon/lvm-filter.c:76:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf, "we")’
libguestfs-1.55.9/daemon/lvm-filter.c:93:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/lvm-filter.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:76:7: danger: ‘fopen(conf, "we")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   74|     static bool checked, available;
#   75|   
#   76|->   if (!checked) {
#   77|       checked = true;
#   78|       available = command (NULL, NULL, "lvmdevices", "--help", NULL) == 0 ||

Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf, "we")’
libguestfs-1.55.9/daemon/lvm-filter.c:93:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: danger: ‘fopen(conf, "we")’ leaks here; was opened at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#   95|       return -1;
#   96|     }
#   97|->   fp = fopen (conf, "we");
#   98|     if (fp == NULL) {
#   99|       reply_with_perror ("open: %s", conf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf, "we")’
libguestfs-1.55.9/daemon/lvm-filter.c:93:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: danger: ‘fopen(conf, "we")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#   95|       return -1;
#   96|     }
#   97|->   fp = fopen (conf, "we");
#   98|     if (fp == NULL) {
#   99|       reply_with_perror ("open: %s", conf);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def186]
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf, "we")’
libguestfs-1.55.9/daemon/lvm-filter.c:93:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/lvm-filter.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: danger: ‘fopen(conf, "we")’ leaks here; was opened at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  101|     }
#  102|   
#  103|->   fprintf (fp, "devices {\n");
#  104|   
#  105|     /* If lvm2 supports a "devices file", we need to disable its use

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf, "we")’
libguestfs-1.55.9/daemon/lvm-filter.c:93:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/lvm-filter.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm-filter.c:103:3: danger: ‘fopen(conf, "we")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  101|     }
#  102|   
#  103|->   fprintf (fp, "devices {\n");
#  104|   
#  105|     /* If lvm2 supports a "devices file", we need to disable its use

Error: GCC_ANALYZER_WARNING (CWE-126): [#def188]
libguestfs-1.55.9/daemon/lvm.c:485:15: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libguestfs-1.55.9/daemon/lvm.c:499:1: enter_function: entry to ‘do_vg_activate_all’
libguestfs-1.55.9/daemon/lvm.c:502:10: call_function: calling ‘do_vg_activate’ from ‘do_vg_activate_all’
#  483|     argv[3] = activate ? "y" : "n";
#  484|     for (i = 4; i < argc+1; ++i)
#  485|->     argv[i] = volgroups[i-4];
#  486|   
#  487|     r = commandv (NULL, &err, (const char * const*) argv);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
libguestfs-1.55.9/daemon/lvm.c:778:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmp, 524288)’
libguestfs-1.55.9/daemon/lvm.c:764:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm.c:769:3: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:772:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm.c:778:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:778:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/lvm.c:778:8: danger: ‘open(&tmp, 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  776|   
#  777|     /* Now read back the temporary file. */
#  778|->   fd = open (tmp, O_RDONLY|O_CLOEXEC);
#  779|     if (fd == -1) {
#  780|       reply_with_error ("%s", tmp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
libguestfs-1.55.9/daemon/lvm.c:803:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmp, 524288)’
libguestfs-1.55.9/daemon/lvm.c:764:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm.c:769:3: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:772:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm.c:778:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:778:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/lvm.c:779:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:793:8: branch_true: following ‘true’ branch (when ‘alloc <= size’)...
libguestfs-1.55.9/daemon/lvm.c:794:7: branch_true: ...to here
libguestfs-1.55.9/daemon/lvm.c:795:10: branch_false: following ‘false’ branch (when ‘alloc <= 4193304’)...
libguestfs-1.55.9/daemon/lvm.c:801:14: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:802:10: branch_true: following ‘true’ branch (when ‘buf2’ is NULL)...
libguestfs-1.55.9/daemon/lvm.c:803:9: branch_true: ...to here
libguestfs-1.55.9/daemon/lvm.c:803:9: danger: ‘open(&tmp, 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  801|         buf2 = realloc (buf, alloc);
#  802|         if (buf2 == NULL) {
#  803|->         reply_with_perror ("realloc");
#  804|           free (buf);
#  805|           close (fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
libguestfs-1.55.9/daemon/lvm.c:811:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmp, 524288)’
libguestfs-1.55.9/daemon/lvm.c:764:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm.c:769:3: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:772:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/lvm.c:778:8: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:778:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/lvm.c:779:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:793:8: branch_true: following ‘true’ branch (when ‘alloc <= size’)...
libguestfs-1.55.9/daemon/lvm.c:794:7: branch_true: ...to here
libguestfs-1.55.9/daemon/lvm.c:795:10: branch_false: following ‘false’ branch (when ‘alloc <= 4193304’)...
libguestfs-1.55.9/daemon/lvm.c:801:14: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:802:10: branch_false: following ‘false’ branch (when ‘buf2’ is non-NULL)...
libguestfs-1.55.9/daemon/lvm.c:811:10: branch_false: ...to here
libguestfs-1.55.9/daemon/lvm.c:811:10: danger: ‘open(&tmp, 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  809|       }
#  810|   
#  811|->     rs = read (fd, buf + size, alloc - size);
#  812|       if (rs == -1) {
#  813|         reply_with_perror ("read: %s", tmp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
libguestfs-1.55.9/daemon/md.c:238:10: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_md_stat_line(line + (mdlen + 3))’
libguestfs-1.55.9/daemon/md.c:352:1: enter_function: entry to ‘do_md_stat’
libguestfs-1.55.9/daemon/md.c:366:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/md.c:372:10: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/md.c:373:9: branch_true: ...to here
libguestfs-1.55.9/daemon/md.c:376:13: call_function: calling ‘parse_md_stat_line’ from ‘do_md_stat’
libguestfs-1.55.9/daemon/md.c:376:13: return_function: returning to ‘do_md_stat’ from ‘parse_md_stat_line’
libguestfs-1.55.9/daemon/md.c:265:12: call_function: inlined call to ‘count_spaces’ from ‘parse_md_stat_line’
#  236|   {
#  237|     size_t r = 0;
#  238|->   while (*line) {
#  239|       if (*line == ' ')
#  240|         r++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
libguestfs-1.55.9/daemon/md.c:274:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/md.c:352:1: enter_function: entry to ‘do_md_stat’
libguestfs-1.55.9/daemon/md.c:366:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/md.c:372:10: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/md.c:373:9: branch_true: ...to here
libguestfs-1.55.9/daemon/md.c:376:13: call_function: calling ‘parse_md_stat_line’ from ‘do_md_stat’
libguestfs-1.55.9/daemon/md.c:376:13: return_function: returning to ‘do_md_stat’ from ‘parse_md_stat_line’
libguestfs-1.55.9/daemon/md.c:274:15: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#  272|     }
#  273|   
#  274|->   for (n = 0; *line; line = next) {
#  275|       len = strcspn (line, " ");
#  276|       if (line[len] == '\0')

Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
libguestfs-1.55.9/daemon/md.c:365:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/mdstat", "r")’
libguestfs-1.55.9/daemon/md.c:365:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/md.c:365:8: danger: ‘fopen("/proc/mdstat", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  363|     mdlen = strlen (md);
#  364|   
#  365|->   fp = fopen ("/proc/mdstat", "r");
#  366|     if (fp == NULL) {
#  367|       reply_with_perror ("fopen: %s", "/proc/mdstat");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
libguestfs-1.55.9/daemon/md.c:365:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/mdstat", "r")’
libguestfs-1.55.9/daemon/md.c:365:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/md.c:365:8: danger: ‘fopen("/proc/mdstat", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  363|     mdlen = strlen (md);
#  364|   
#  365|->   fp = fopen ("/proc/mdstat", "r");
#  366|     if (fp == NULL) {
#  367|       reply_with_perror ("fopen: %s", "/proc/mdstat");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def196]
libguestfs-1.55.9/daemon/mkfs.c:242:11: warning[-Wanalyzer-null-argument]: use of NULL ‘label’ where non-null expected
libguestfs-1.55.9/daemon/mkfs.c:281:1: enter_function: entry to ‘do_mkfs_b’
libguestfs-1.55.9/daemon/mkfs.c:284:10: call_function: calling ‘do_mkfs’ from ‘do_mkfs_b’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  240|       }
#  241|       else if (STREQ (fstype, "xfs")) {
#  242|->       if (strlen (label) > XFS_LABEL_MAX) {
#  243|           reply_with_error ("%s: xfs labels are limited to %d bytes",
#  244|                             label, XFS_LABEL_MAX);

Error: CPPCHECK_WARNING (CWE-401): [#def197]
libguestfs-1.55.9/daemon/ntfs.c:282: error[memleak]: Memory leak: buffer
#  280|     if (inode < 0) {
#  281|       reply_with_error ("inode must be >= 0");
#  282|->     return -1;
#  283|     }
#  284|   

Error: CPPCHECK_WARNING (CWE-401): [#def198]
libguestfs-1.55.9/daemon/ntfs.c:289: error[memleak]: Memory leak: buffer
#  287|                   inode, mountable->device) == -1) {
#  288|       reply_with_perror ("asprintf");
#  289|->     return -1;
#  290|     }
#  291|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
libguestfs-1.55.9/daemon/ntfs.c:295:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/ntfs.c:274:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:280:6: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:280:6: branch_false: following ‘false’ branch (when ‘inode >= 0’)...
libguestfs-1.55.9/daemon/ntfs.c:287:24: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:286:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:292:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:295:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfs.c:295:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  293|       fprintf (stderr, "%s\n", cmd);
#  294|   
#  295|->   fp = popen (cmd, "r");
#  296|     if (fp == NULL) {
#  297|       reply_with_perror ("%s", cmd);

Error: CPPCHECK_WARNING (CWE-401): [#def200]
libguestfs-1.55.9/daemon/ntfs.c:298: error[memleak]: Memory leak: buffer
#  296|     if (fp == NULL) {
#  297|       reply_with_perror ("%s", cmd);
#  298|->     return -1;
#  299|     }
#  300|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
libguestfs-1.55.9/daemon/ntfs.c:305:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/ntfs.c:274:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:280:6: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:280:6: branch_false: following ‘false’ branch (when ‘inode >= 0’)...
libguestfs-1.55.9/daemon/ntfs.c:287:24: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:286:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:292:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:295:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfs.c:296:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:305:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:305:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  303|      * message back.  Instead we can only cancel the transfer.
#  304|      */
#  305|->   reply (NULL, NULL);
#  306|   
#  307|     while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
libguestfs-1.55.9/daemon/ntfs.c:307:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/ntfs.c:274:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:280:6: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:280:6: branch_false: following ‘false’ branch (when ‘inode >= 0’)...
libguestfs-1.55.9/daemon/ntfs.c:287:24: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:286:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:292:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:295:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfs.c:296:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfs.c:305:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfs.c:307:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  305|     reply (NULL, NULL);
#  306|   
#  307|->   while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  308|       if (send_file_write (buffer, r) < 0) {
#  309|         pclose (fp);

Error: CPPCHECK_WARNING (CWE-476): [#def203]
libguestfs-1.55.9/daemon/ntfsclone.c:47: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#   45|       if (str == NULL)
#   46|         error (EXIT_FAILURE, errno, "strdup"); /* XXX */
#   47|->     len = strlen (str);
#   48|     }
#   49|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
libguestfs-1.55.9/daemon/ntfsclone.c:51:7: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/ntfsclone.c:67:1: enter_function: entry to ‘do_ntfsclone_in’
libguestfs-1.55.9/daemon/ntfsclone.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:84:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:94:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:110:8: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:113:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:114:5: branch_true: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:115:33: call_function: calling ‘read_error_file’ from ‘do_ntfsclone_in’
libguestfs-1.55.9/daemon/ntfsclone.c:115:33: return_function: returning to ‘do_ntfsclone_in’ from ‘read_error_file’
libguestfs-1.55.9/daemon/ntfsclone.c:51:7: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#   49|   
#   50|     /* Remove trailing \n character if any. */
#   51|->   if (len > 0 && str[len-1] == '\n')
#   52|       str[--len] = '\0';
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
libguestfs-1.55.9/daemon/ntfsclone.c:51:7: warning[-Wanalyzer-malloc-leak]: leak of ‘read_error_file(&error_file)’
libguestfs-1.55.9/daemon/ntfsclone.c:67:1: enter_function: entry to ‘do_ntfsclone_in’
libguestfs-1.55.9/daemon/ntfsclone.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:84:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:94:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:110:8: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:113:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:114:5: branch_true: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:115:33: call_function: calling ‘read_error_file’ from ‘do_ntfsclone_in’
libguestfs-1.55.9/daemon/ntfsclone.c:115:33: return_function: returning to ‘do_ntfsclone_in’ from ‘read_error_file’
libguestfs-1.55.9/daemon/ntfsclone.c:51:7: danger: ‘read_error_file(&error_file)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#   49|   
#   50|     /* Remove trailing \n character if any. */
#   51|->   if (len > 0 && str[len-1] == '\n')
#   52|       str[--len] = '\0';
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
libguestfs-1.55.9/daemon/ntfsclone.c:97:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/ntfsclone.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:84:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:94:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:97:8: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#   95|       fprintf (stderr, "%s\n", cmd);
#   96|   
#   97|->   fp = popen (cmd, "w");
#   98|     if (fp == NULL) {
#   99|       err = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
libguestfs-1.55.9/daemon/ntfsclone.c:112:7: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/ntfsclone.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:84:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:94:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:110:8: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:112:7: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  110|     fd = fileno (fp);
#  111|   
#  112|->   r = receive_file (write_cb, &fd);
#  113|     if (r == -1) {		/* write error */
#  114|       cancel_receive ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
libguestfs-1.55.9/daemon/ntfsclone.c:114:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/ntfsclone.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:84:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:94:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:110:8: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:113:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:114:5: branch_true: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:114:5: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  112|     r = receive_file (write_cb, &fd);
#  113|     if (r == -1) {		/* write error */
#  114|->     cancel_receive ();
#  115|       CLEANUP_FREE char *errstr = read_error_file (error_file);
#  116|       reply_with_error ("write error on device: %s: %s", device, errstr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
libguestfs-1.55.9/daemon/ntfsclone.c:125:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/ntfsclone.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:84:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:94:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:97:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:98:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:110:8: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:113:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:121:6: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:121:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:125:5: branch_true: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:125:5: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  123|        * cancel.  Nevertheless we must send an error reply here.
#  124|        */
#  125|->     reply_with_error ("ntfsclone cancelled");
#  126|       pclose (fp);
#  127|       unlink (error_file);

Error: CPPCHECK_WARNING (CWE-401): [#def210]
libguestfs-1.55.9/daemon/ntfsclone.c:171: error[memleak]: Memory leak: buf
#  169|                   device) == -1) {
#  170|       reply_with_perror ("asprintf");
#  171|->     return -1;
#  172|     }
#  173|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
libguestfs-1.55.9/daemon/ntfsclone.c:177:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/ntfsclone.c:157:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:168:17: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:163:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:174:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:177:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:177:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  175|       fprintf (stderr, "%s\n", cmd);
#  176|   
#  177|->   fp = popen (cmd, "r");
#  178|     if (fp == NULL) {
#  179|       reply_with_perror ("%s", cmd);

Error: CPPCHECK_WARNING (CWE-401): [#def212]
libguestfs-1.55.9/daemon/ntfsclone.c:180: error[memleak]: Memory leak: buf
#  178|     if (fp == NULL) {
#  179|       reply_with_perror ("%s", cmd);
#  180|->     return -1;
#  181|     }
#  182|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
libguestfs-1.55.9/daemon/ntfsclone.c:187:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/ntfsclone.c:157:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:168:17: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:163:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:174:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:177:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:178:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:187:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:187:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  185|      * message back.  Instead we can only cancel the transfer.
#  186|      */
#  187|->   reply (NULL, NULL);
#  188|   
#  189|     while ((r = fread (buf, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
libguestfs-1.55.9/daemon/ntfsclone.c:189:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/ntfsclone.c:157:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:168:17: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:163:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:174:7: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:177:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/ntfsclone.c:178:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/ntfsclone.c:187:3: branch_false: ...to here
libguestfs-1.55.9/daemon/ntfsclone.c:189:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  187|     reply (NULL, NULL);
#  188|   
#  189|->   while ((r = fread (buf, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  190|       if (send_file_write (buf, r) < 0) {
#  191|         pclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
libguestfs-1.55.9/daemon/parted.c:322:10: warning[-Wanalyzer-malloc-leak]: leak of ‘get_table_field(*<unknown>, 5)’
libguestfs-1.55.9/daemon/parted.c:460:1: enter_function: entry to ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:465:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:468:7: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:468:6: branch_true: following ‘true’ branch (when the strings are equal)...
libguestfs-1.55.9/daemon/parted.c:469:30: branch_true: ...to here
libguestfs-1.55.9/daemon/parted.c:469:30: call_function: calling ‘print_partition_table’ from ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:469:30: return_function: returning to ‘do_part_get_name’ from ‘print_partition_table’
libguestfs-1.55.9/daemon/parted.c:470:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:473:45: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:475:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:478:9: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:478:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:484:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:492:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:496:11: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:500:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:505:18: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:505:18: call_function: calling ‘get_table_field’ from ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:505:18: return_function: returning to ‘do_part_get_name’ from ‘get_table_field’
libguestfs-1.55.9/daemon/parted.c:322:10: danger: ‘get_table_field(*<unknown>, 5)’ leaks here; was allocated at [(29)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/28)
#  320|     const char *p = line;
#  321|   
#  322|->   while (*p && n > 0) {
#  323|       p += strcspn (p, ":;") + 1;
#  324|       n--;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
libguestfs-1.55.9/daemon/parted.c:322:10: warning[-Wanalyzer-malloc-leak]: leak of ‘get_table_field(*<unknown>, 6)’
libguestfs-1.55.9/daemon/parted.c:374:1: enter_function: entry to ‘do_part_get_bootable’
libguestfs-1.55.9/daemon/parted.c:376:6: branch_false: following ‘false’ branch (when ‘partnum > 0’)...
libguestfs-1.55.9/daemon/parted.c:381:28: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:381:28: call_function: calling ‘print_partition_table’ from ‘do_part_get_bootable’
libguestfs-1.55.9/daemon/parted.c:381:28: return_function: returning to ‘do_part_get_bootable’ from ‘print_partition_table’
libguestfs-1.55.9/daemon/parted.c:382:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:385:43: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:387:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:393:7: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:393:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:407:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:411:9: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:415:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:420:29: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:420:29: call_function: calling ‘get_table_field’ from ‘do_part_get_bootable’
libguestfs-1.55.9/daemon/parted.c:420:29: return_function: returning to ‘do_part_get_bootable’ from ‘get_table_field’
libguestfs-1.55.9/daemon/parted.c:322:10: danger: ‘get_table_field(*<unknown>, 6)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/26)
#  320|     const char *p = line;
#  321|   
#  322|->   while (*p && n > 0) {
#  323|       p += strcspn (p, ":;") + 1;
#  324|       n--;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
libguestfs-1.55.9/daemon/parted.c:469:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/parted.c:460:1: enter_function: entry to ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:465:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:468:7: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:468:6: branch_true: following ‘true’ branch (when the strings are equal)...
libguestfs-1.55.9/daemon/parted.c:469:30: branch_true: ...to here
libguestfs-1.55.9/daemon/parted.c:469:30: call_function: calling ‘print_partition_table’ from ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:469:30: return_function: returning to ‘do_part_get_name’ from ‘print_partition_table’
libguestfs-1.55.9/daemon/parted.c:470:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:473:45: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:475:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:478:9: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:478:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:484:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:492:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:496:11: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:500:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:505:18: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:505:18: call_function: calling ‘get_table_field’ from ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:505:18: return_function: returning to ‘do_part_get_name’ from ‘get_table_field’
libguestfs-1.55.9/daemon/parted.c:506:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:509:12: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:469:24: danger: ‘<unknown>’ leaks here; was allocated at [(29)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/28)
#  467|   
#  468|     if (STREQ (parttype, "gpt")) {
#  469|->     CLEANUP_FREE char *out = print_partition_table (device);
#  470|       if (!out)
#  471|         return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
libguestfs-1.55.9/daemon/parted.c:473:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/parted.c:460:1: enter_function: entry to ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:465:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:468:7: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:468:6: branch_true: following ‘true’ branch (when the strings are equal)...
libguestfs-1.55.9/daemon/parted.c:469:30: branch_true: ...to here
libguestfs-1.55.9/daemon/parted.c:469:30: call_function: calling ‘print_partition_table’ from ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:469:30: return_function: returning to ‘do_part_get_name’ from ‘print_partition_table’
libguestfs-1.55.9/daemon/parted.c:470:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:473:45: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:475:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:478:9: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:478:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:484:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:492:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:496:11: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:500:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:505:18: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:505:18: call_function: calling ‘get_table_field’ from ‘do_part_get_name’
libguestfs-1.55.9/daemon/parted.c:505:18: return_function: returning to ‘do_part_get_name’ from ‘get_table_field’
libguestfs-1.55.9/daemon/parted.c:506:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/parted.c:509:12: branch_false: ...to here
libguestfs-1.55.9/daemon/parted.c:473:37: danger: ‘<unknown>’ leaks here; was allocated at [(29)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/28)
#  471|         return NULL;
#  472|   
#  473|->     CLEANUP_FREE_STRING_LIST char **lines = split_lines (out);
#  474|   
#  475|       if (!lines)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/sleuthkit.c:108:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: branch_false: ...to here
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  111|     }
#  112|   
#  113|->   fp = popen (cmd, "r");
#  114|     if (fp == NULL) {
#  115|       reply_with_perror ("%s", cmd);

Error: CPPCHECK_WARNING (CWE-401): [#def220]
libguestfs-1.55.9/daemon/sleuthkit.c:116: error[memleak]: Memory leak: buffer
#  114|     if (fp == NULL) {
#  115|       reply_with_perror ("%s", cmd);
#  116|->     return -1;
#  117|     }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
libguestfs-1.55.9/daemon/sleuthkit.c:120:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/sleuthkit.c:108:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: branch_false: ...to here
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/sleuthkit.c:114:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/sleuthkit.c:120:3: branch_false: ...to here
libguestfs-1.55.9/daemon/sleuthkit.c:120:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  118|   
#  119|     /* Send reply message before the file content. */
#  120|->   reply (NULL, NULL);
#  121|   
#  122|     while ((ret = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
libguestfs-1.55.9/daemon/sleuthkit.c:122:17: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/sleuthkit.c:108:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: branch_false: ...to here
libguestfs-1.55.9/daemon/sleuthkit.c:113:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/sleuthkit.c:114:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/sleuthkit.c:120:3: branch_false: ...to here
libguestfs-1.55.9/daemon/sleuthkit.c:122:17: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  120|     reply (NULL, NULL);
#  121|   
#  122|->   while ((ret = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  123|       ret = send_file_write (buffer, ret);
#  124|       if (ret < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def223]
libguestfs-1.55.9/daemon/squashfs.c:112:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tmpfile, "r")’
libguestfs-1.55.9/daemon/squashfs.c:54:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:62:13: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:63:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:68:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:69:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:73:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:95:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:104:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:107:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:112:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:112:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/squashfs.c:112:8: danger: ‘fopen(tmpfile, "r")’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  110|     }
#  111|   
#  112|->   fp = fopen (tmpfile, "r");
#  113|     if (fp == NULL) {
#  114|       reply_with_perror ("%s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
libguestfs-1.55.9/daemon/squashfs.c:112:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tmpfile, "r")’
libguestfs-1.55.9/daemon/squashfs.c:54:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:62:13: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:63:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:68:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:69:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:73:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:95:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:104:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:107:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:112:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:112:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/squashfs.c:112:8: danger: ‘fopen(tmpfile, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  110|     }
#  111|   
#  112|->   fp = fopen (tmpfile, "r");
#  113|     if (fp == NULL) {
#  114|       reply_with_perror ("%s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def225]
libguestfs-1.55.9/daemon/squashfs.c:122:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tmpfile, "r")’
libguestfs-1.55.9/daemon/squashfs.c:54:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:62:13: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:63:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:68:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:69:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:73:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:95:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:104:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:107:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:112:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:112:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/squashfs.c:113:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:122:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:122:3: danger: ‘fopen(tmpfile, "r")’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  120|      * message back.  Instead we can only cancel the transfer.
#  121|      */
#  122|->   reply (NULL, NULL);
#  123|   
#  124|     while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
libguestfs-1.55.9/daemon/squashfs.c:122:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tmpfile, "r")’
libguestfs-1.55.9/daemon/squashfs.c:54:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:62:13: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:63:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:68:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:69:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:73:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:95:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:104:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:107:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:112:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:112:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/squashfs.c:113:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:122:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:122:3: danger: ‘fopen(tmpfile, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  120|      * message back.  Instead we can only cancel the transfer.
#  121|      */
#  122|->   reply (NULL, NULL);
#  123|   
#  124|     while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def227]
libguestfs-1.55.9/daemon/squashfs.c:124:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tmpfile, "r")’
libguestfs-1.55.9/daemon/squashfs.c:54:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:62:13: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:63:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:68:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:69:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:73:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:95:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:104:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:107:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:112:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:112:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/squashfs.c:113:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:122:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:124:15: danger: ‘fopen(tmpfile, "r")’ leaks here; was opened at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  122|     reply (NULL, NULL);
#  123|   
#  124|->   while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  125|       if (send_file_write (buffer, r) < 0) {
#  126|         fclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
libguestfs-1.55.9/daemon/squashfs.c:124:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tmpfile, "r")’
libguestfs-1.55.9/daemon/squashfs.c:54:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:62:13: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:63:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:68:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:69:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:73:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:76:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:81:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:95:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:104:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:107:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:112:8: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:112:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/squashfs.c:113:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/squashfs.c:122:3: branch_false: ...to here
libguestfs-1.55.9/daemon/squashfs.c:124:15: danger: ‘fopen(tmpfile, "r")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  122|     reply (NULL, NULL);
#  123|   
#  124|->   while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  125|       if (send_file_write (buffer, r) < 0) {
#  126|         fclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def229]
libguestfs-1.55.9/daemon/strings.c:44:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/strings.c:37:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/strings.c:38:25: branch_false: ...to here
libguestfs-1.55.9/daemon/strings.c:37:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/strings.c:43:3: branch_false: ...to here
libguestfs-1.55.9/daemon/strings.c:44:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/strings.c:44:8: danger: ‘open(path, 524288)’ leaks here; was opened at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#   42|   
#   43|     CHROOT_IN;
#   44|->   fd = open (path, O_RDONLY|O_CLOEXEC);
#   45|     CHROOT_OUT;
#   46|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def230]
libguestfs-1.55.9/daemon/strings.c:45:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/strings.c:37:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/strings.c:38:25: branch_false: ...to here
libguestfs-1.55.9/daemon/strings.c:37:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/strings.c:43:3: branch_false: ...to here
libguestfs-1.55.9/daemon/strings.c:44:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/strings.c:45:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/strings.c:45:3: danger: ‘open(path, 524288)’ leaks here; was opened at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#   43|     CHROOT_IN;
#   44|     fd = open (path, O_RDONLY|O_CLOEXEC);
#   45|->   CHROOT_OUT;
#   46|   
#   47|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def231]
libguestfs-1.55.9/daemon/strings.c:53:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/strings.c:37:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/strings.c:38:25: branch_false: ...to here
libguestfs-1.55.9/daemon/strings.c:37:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/strings.c:43:3: branch_false: ...to here
libguestfs-1.55.9/daemon/strings.c:44:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/strings.c:47:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/strings.c:52:3: branch_false: ...to here
libguestfs-1.55.9/daemon/strings.c:53:7: danger: ‘open(path, 524288)’ leaks here; was opened at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#   51|   
#   52|     flags = COMMAND_FLAG_CHROOT_COPY_FILE_TO_STDIN | fd;
#   53|->   r = commandf (&out, &err, flags, "strings", "-a", "-e", encoding, NULL);
#   54|     if (r == -1) {
#   55|       reply_with_error ("%s: %s", path, err);

Error: CPPCHECK_WARNING (CWE-476): [#def232]
libguestfs-1.55.9/daemon/stubs-0.c:1836: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: devices
# 1834|       size_t i;
# 1835|       for (i = 0; i < args.devices.devices_len; ++i)
# 1836|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1837|       devices[i] = NULL;
# 1838|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
libguestfs-1.55.9/daemon/stubs-0.c:1836:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-0.c:1815:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1820:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1820:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1825:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1825:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1832:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1832:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-0.c:1835:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1836:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1836:7: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1834|       size_t i;
# 1835|       for (i = 0; i < args.devices.devices_len; ++i)
# 1836|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1837|       devices[i] = NULL;
# 1838|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
libguestfs-1.55.9/daemon/stubs-0.c:1837:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-0.c:1815:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1820:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1820:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1825:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1825:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1832:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1832:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-0.c:1835:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-0.c:1837:12: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-0.c:1837:5: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 1835|       for (i = 0; i < args.devices.devices_len; ++i)
# 1836|         RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1837|->     devices[i] = NULL;
# 1838|     }
# 1839|     allocstart = args.allocstart;

Error: CPPCHECK_WARNING (CWE-476): [#def235]
libguestfs-1.55.9/daemon/stubs-1.c:1785: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: devices
# 1783|       size_t i;
# 1784|       for (i = 0; i < args.devices.devices_len; ++i)
# 1785|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1786|       devices[i] = NULL;
# 1787|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def236]
libguestfs-1.55.9/daemon/stubs-1.c:1785:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-1.c:1763:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1768:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1768:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1773:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1773:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1777:3: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1781:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-1.c:1784:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1785:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1785:7: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1783|       size_t i;
# 1784|       for (i = 0; i < args.devices.devices_len; ++i)
# 1785|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1786|       devices[i] = NULL;
# 1787|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def237]
libguestfs-1.55.9/daemon/stubs-1.c:1786:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-1.c:1763:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1768:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1768:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1773:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1773:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1777:3: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1781:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-1.c:1784:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-1.c:1786:12: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-1.c:1786:5: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 1784|       for (i = 0; i < args.devices.devices_len; ++i)
# 1785|         RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1786|->     devices[i] = NULL;
# 1787|     }
# 1788|     missingbitmap = args.missingbitmap;

Error: CPPCHECK_WARNING (CWE-476): [#def238]
libguestfs-1.55.9/daemon/stubs-2.c:1561: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: devices
# 1559|       size_t i;
# 1560|       for (i = 0; i < args.devices.devices_len; ++i)
# 1561|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1562|       devices[i] = NULL;
# 1563|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
libguestfs-1.55.9/daemon/stubs-2.c:1561:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-2.c:1540:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1545:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1545:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1550:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1550:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1557:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1557:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-2.c:1560:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1561:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1561:7: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1559|       size_t i;
# 1560|       for (i = 0; i < args.devices.devices_len; ++i)
# 1561|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1562|       devices[i] = NULL;
# 1563|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
libguestfs-1.55.9/daemon/stubs-2.c:1562:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-2.c:1540:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1545:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1545:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1550:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1550:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1557:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1557:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-2.c:1560:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-2.c:1562:12: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-2.c:1562:5: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 1560|       for (i = 0; i < args.devices.devices_len; ++i)
# 1561|         RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1562|->     devices[i] = NULL;
# 1563|     }
# 1564|   

Error: CPPCHECK_WARNING (CWE-476): [#def241]
libguestfs-1.55.9/daemon/stubs-3.c:462: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: devices
#  460|       size_t i;
#  461|       for (i = 0; i < args.devices.devices_len; ++i)
#  462|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
#  463|       devices[i] = NULL;
#  464|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def242]
libguestfs-1.55.9/daemon/stubs-3.c:462:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-3.c:441:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:446:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:446:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:451:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:451:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:458:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:458:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-3.c:461:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:462:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:462:7: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  460|       size_t i;
#  461|       for (i = 0; i < args.devices.devices_len; ++i)
#  462|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
#  463|       devices[i] = NULL;
#  464|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
libguestfs-1.55.9/daemon/stubs-3.c:463:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-3.c:441:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:446:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:446:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:451:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:451:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:458:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:458:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-3.c:461:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:463:12: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:463:5: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  461|       for (i = 0; i < args.devices.devices_len; ++i)
#  462|         RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
#  463|->     devices[i] = NULL;
#  464|     }
#  465|     fs = args.fs;

Error: CPPCHECK_WARNING (CWE-476): [#def244]
libguestfs-1.55.9/daemon/stubs-3.c:660: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: source
#  658|       size_t i;
#  659|       for (i = 0; i < args.source.source_len; ++i)
#  660|->       RESOLVE_DEVICE (args.source.source_val[i], source[i], false);
#  661|       source[i] = NULL;
#  662|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
libguestfs-1.55.9/daemon/stubs-3.c:660:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘source’
libguestfs-1.55.9/daemon/stubs-3.c:639:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:644:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:644:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:649:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:649:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:656:20: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:656:12: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-3.c:659:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:660:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:660:7: danger: ‘source + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  658|       size_t i;
#  659|       for (i = 0; i < args.source.source_len; ++i)
#  660|->       RESOLVE_DEVICE (args.source.source_val[i], source[i], false);
#  661|       source[i] = NULL;
#  662|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
libguestfs-1.55.9/daemon/stubs-3.c:661:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘source’
libguestfs-1.55.9/daemon/stubs-3.c:639:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:644:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:644:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:649:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:649:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:656:20: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:656:12: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-3.c:659:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-3.c:661:11: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-3.c:661:5: danger: ‘source + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  659|       for (i = 0; i < args.source.source_len; ++i)
#  660|         RESOLVE_DEVICE (args.source.source_val[i], source[i], false);
#  661|->     source[i] = NULL;
#  662|     }
#  663|     image = args.image;

Error: CPPCHECK_WARNING (CWE-476): [#def247]
libguestfs-1.55.9/daemon/stubs-5.c:252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: devices
#  250|       size_t i;
#  251|       for (i = 0; i < args.devices.devices_len; ++i)
#  252|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
#  253|       devices[i] = NULL;
#  254|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def248]
libguestfs-1.55.9/daemon/stubs-5.c:252:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-5.c:231:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:236:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:236:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:241:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:241:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:248:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:248:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-5.c:251:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:252:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:252:7: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  250|       size_t i;
#  251|       for (i = 0; i < args.devices.devices_len; ++i)
#  252|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
#  253|       devices[i] = NULL;
#  254|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
libguestfs-1.55.9/daemon/stubs-5.c:253:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-5.c:231:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:236:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:236:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:241:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:241:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:248:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:248:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-5.c:251:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:253:12: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:253:5: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  251|       for (i = 0; i < args.devices.devices_len; ++i)
#  252|         RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
#  253|->     devices[i] = NULL;
#  254|     }
#  255|     fs = args.fs;

Error: CPPCHECK_WARNING (CWE-476): [#def250]
libguestfs-1.55.9/daemon/stubs-5.c:1887: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: devices
# 1885|       size_t i;
# 1886|       for (i = 0; i < args.devices.devices_len; ++i)
# 1887|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1888|       devices[i] = NULL;
# 1889|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
libguestfs-1.55.9/daemon/stubs-5.c:1887:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-5.c:1866:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1871:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1871:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1876:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1876:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1883:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1883:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-5.c:1886:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1887:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1887:7: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 1885|       size_t i;
# 1886|       for (i = 0; i < args.devices.devices_len; ++i)
# 1887|->       RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1888|       devices[i] = NULL;
# 1889|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
libguestfs-1.55.9/daemon/stubs-5.c:1888:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘devices’
libguestfs-1.55.9/daemon/stubs-5.c:1866:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1871:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1871:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1876:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1876:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1883:21: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1883:13: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-5.c:1886:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-5.c:1888:12: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-5.c:1888:5: danger: ‘devices + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 1886|       for (i = 0; i < args.devices.devices_len; ++i)
# 1887|         RESOLVE_DEVICE (args.devices.devices_val[i], devices[i], false);
# 1888|->     devices[i] = NULL;
# 1889|     }
# 1890|   

Error: CPPCHECK_WARNING (CWE-476): [#def253]
libguestfs-1.55.9/daemon/stubs-6.c:2709: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: physvols
# 2707|       size_t i;
# 2708|       for (i = 0; i < args.physvols.physvols_len; ++i)
# 2709|->       RESOLVE_DEVICE (args.physvols.physvols_val[i], physvols[i], false);
# 2710|       physvols[i] = NULL;
# 2711|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
libguestfs-1.55.9/daemon/stubs-6.c:2709:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘physvols’
libguestfs-1.55.9/daemon/stubs-6.c:2687:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2692:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2692:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2697:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2697:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2701:3: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2705:14: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-6.c:2708:17: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2709:7: branch_true: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2709:7: danger: ‘physvols + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 2707|       size_t i;
# 2708|       for (i = 0; i < args.physvols.physvols_len; ++i)
# 2709|->       RESOLVE_DEVICE (args.physvols.physvols_val[i], physvols[i], false);
# 2710|       physvols[i] = NULL;
# 2711|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
libguestfs-1.55.9/daemon/stubs-6.c:2710:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘physvols’
libguestfs-1.55.9/daemon/stubs-6.c:2687:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2692:7: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2692:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2697:8: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2697:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2701:3: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2705:14: acquire_memory: this call could return NULL
libguestfs-1.55.9/daemon/stubs-6.c:2708:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/stubs-6.c:2710:13: branch_false: ...to here
libguestfs-1.55.9/daemon/stubs-6.c:2710:5: danger: ‘physvols + i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 2708|       for (i = 0; i < args.physvols.physvols_len; ++i)
# 2709|         RESOLVE_DEVICE (args.physvols.physvols_val[i], physvols[i], false);
# 2710|->     physvols[i] = NULL;
# 2711|     }
# 2712|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def256]
libguestfs-1.55.9/daemon/sync.c:117:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_path, 524288)’
libguestfs-1.55.9/daemon/sync.c:92:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/sync.c:100:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/sync.c:102:9: branch_false: ...to here
libguestfs-1.55.9/daemon/sync.c:117:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/sync.c:117:12: danger: ‘open(dev_path, 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  115|           continue;
#  116|   
#  117|->       fd = open (dev_path, O_RDONLY|O_CLOEXEC);
#  118|         if (fd == -1) {
#  119|           perror (dev_path);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def257]
libguestfs-1.55.9/daemon/sync.c:124:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_path, 524288)’
libguestfs-1.55.9/daemon/sync.c:92:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/sync.c:100:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/sync.c:102:9: branch_false: ...to here
libguestfs-1.55.9/daemon/sync.c:117:12: acquire_resource: opened here
libguestfs-1.55.9/daemon/sync.c:124:11: danger: ‘open(dev_path, 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  122|   
#  123|         /* fsync the device. */
#  124|->       if (verbose)
#  125|           fprintf (stderr, "fsync %s\n", dev_path);
#  126|   

Error: CPPCHECK_WARNING (CWE-476): [#def258]
libguestfs-1.55.9/daemon/tar.c:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#  114|       if (str == NULL)
#  115|         error (EXIT_FAILURE, errno, "strdup"); /* XXX */
#  116|->     len = strlen (str);
#  117|     }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
libguestfs-1.55.9/daemon/tar.c:120:7: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/tar.c:137:1: enter_function: entry to ‘do_tar_in’
libguestfs-1.55.9/daemon/tar.c:148:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:183:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:191:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:195:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:204:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:217:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:220:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:223:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:224:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:236:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:239:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/tar.c:240:5: branch_true: ...to here
libguestfs-1.55.9/daemon/tar.c:241:33: call_function: calling ‘read_error_file’ from ‘do_tar_in’
libguestfs-1.55.9/daemon/tar.c:241:33: return_function: returning to ‘do_tar_in’ from ‘read_error_file’
libguestfs-1.55.9/daemon/tar.c:120:7: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#  118|   
#  119|     /* Remove trailing \n character if any. */
#  120|->   if (len > 0 && str[len-1] == '\n')
#  121|       str[--len] = '\0';
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
libguestfs-1.55.9/daemon/tar.c:120:7: warning[-Wanalyzer-malloc-leak]: leak of ‘read_error_file(&error_file)’
libguestfs-1.55.9/daemon/tar.c:137:1: enter_function: entry to ‘do_tar_in’
libguestfs-1.55.9/daemon/tar.c:148:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:183:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:191:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:195:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:204:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:217:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:220:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:224:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:236:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:239:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/tar.c:240:5: branch_true: ...to here
libguestfs-1.55.9/daemon/tar.c:241:33: call_function: calling ‘read_error_file’ from ‘do_tar_in’
libguestfs-1.55.9/daemon/tar.c:241:33: return_function: returning to ‘do_tar_in’ from ‘read_error_file’
libguestfs-1.55.9/daemon/tar.c:120:7: danger: ‘read_error_file(&error_file)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
#  118|   
#  119|     /* Remove trailing \n character if any. */
#  120|->   if (len > 0 && str[len-1] == '\n')
#  121|       str[--len] = '\0';
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
libguestfs-1.55.9/daemon/tar.c:223:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/tar.c:148:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:183:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:191:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:195:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:204:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:217:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:220:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:223:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:223:8: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  221|       fprintf (stderr, "%s\n", cmd);
#  222|   
#  223|->   fp = popen (cmd, "w");
#  224|     if (fp == NULL) {
#  225|       err = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
libguestfs-1.55.9/daemon/tar.c:238:7: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/tar.c:148:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:183:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:191:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:195:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:204:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:217:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:220:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:223:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:224:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:236:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:238:7: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  236|     fd = fileno (fp);
#  237|   
#  238|->   r = receive_file (write_cb, &fd);
#  239|     if (r == -1) {		/* write error */
#  240|       cancel_receive ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
libguestfs-1.55.9/daemon/tar.c:240:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/tar.c:148:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:183:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:191:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:195:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:204:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:217:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:220:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:223:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:224:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:236:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:239:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/tar.c:240:5: branch_true: ...to here
libguestfs-1.55.9/daemon/tar.c:240:5: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  238|     r = receive_file (write_cb, &fd);
#  239|     if (r == -1) {		/* write error */
#  240|->     cancel_receive ();
#  241|       CLEANUP_FREE char *errstr = read_error_file (error_file);
#  242|       reply_with_error ("write error on directory: %s: %s", dir, errstr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
libguestfs-1.55.9/daemon/tar.c:251:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
libguestfs-1.55.9/daemon/tar.c:148:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:151:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:183:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:191:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:195:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:204:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:217:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:220:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:223:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:224:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:236:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:239:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:247:6: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:247:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/tar.c:251:5: branch_true: ...to here
libguestfs-1.55.9/daemon/tar.c:251:5: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  249|        * cancel.  Nevertheless we must send an error reply here.
#  250|        */
#  251|->     reply_with_error ("file upload cancelled");
#  252|       pclose (fp);
#  253|       unlink (error_file);

Error: CPPCHECK_WARNING (CWE-401): [#def265]
libguestfs-1.55.9/daemon/tar.c:325: error[memleak]: Memory leak: buffer
#  323|       else {
#  324|         reply_with_error ("unknown compression type: %s", compress);
#  325|->       return -1;
#  326|       }
#  327|     } else

Error: CPPCHECK_WARNING (CWE-401): [#def266]
libguestfs-1.55.9/daemon/tar.c:336: error[memleak]: Memory leak: buffer
#  334|       exclude_from_file = make_exclude_from_file ("tar-out", excludes);
#  335|       if (!exclude_from_file)
#  336|->       return -1;
#  337|     }
#  338|   

Error: CPPCHECK_WARNING (CWE-401): [#def267]
libguestfs-1.55.9/daemon/tar.c:352: error[memleak]: Memory leak: buffer
#  350|     if (buf == NULL) {
#  351|       reply_with_perror ("malloc");
#  352|->     return -1;
#  353|     }
#  354|   

Error: CPPCHECK_WARNING (CWE-401): [#def268]
libguestfs-1.55.9/daemon/tar.c:357: error[memleak]: Memory leak: buffer
#  355|     if (stat (buf, &statbuf) == -1) {
#  356|       reply_with_perror ("stat: %s", dir);
#  357|->     return -1;
#  358|     }
#  359|   

Error: CPPCHECK_WARNING (CWE-401): [#def269]
libguestfs-1.55.9/daemon/tar.c:362: error[memleak]: Memory leak: buffer
#  360|     if (! S_ISDIR (statbuf.st_mode)) {
#  361|       reply_with_error ("%s: not a directory", dir);
#  362|->     return -1;
#  363|     }
#  364|   

Error: CPPCHECK_WARNING (CWE-401): [#def270]
libguestfs-1.55.9/daemon/tar.c:370: error[memleak]: Memory leak: buffer
#  368|     cmd_error:
#  369|       reply_with_perror ("open_memstream");
#  370|->     return -1;
#  371|     }
#  372|     fprintf (fp, "tar -C ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
libguestfs-1.55.9/daemon/tar.c:388:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/tar.c:303:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:308:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:333:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:339:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:350:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:355:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:355:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:360:9: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:360:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:366:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:367:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:372:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:374:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:382:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:385:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:388:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:388:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
#  386|       fprintf (stderr, "%s\n", cmd);
#  387|   
#  388|->   fp = popen (cmd, "r");
#  389|     if (fp == NULL) {
#  390|       reply_with_perror ("%s", cmd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
libguestfs-1.55.9/daemon/tar.c:398:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/tar.c:303:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:308:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:333:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:339:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:350:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:355:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:355:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:360:9: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:360:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:366:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:367:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:372:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:374:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:382:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:385:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:388:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:389:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:398:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:398:3: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
#  396|      * message back.  Instead we can only cancel the transfer.
#  397|      */
#  398|->   reply (NULL, NULL);
#  399|   
#  400|     while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
libguestfs-1.55.9/daemon/tar.c:400:15: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/daemon/tar.c:303:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:308:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:333:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:339:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:350:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:355:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:355:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:360:9: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:360:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:366:8: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:367:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
libguestfs-1.55.9/daemon/tar.c:372:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:374:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:382:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:385:7: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:388:8: acquire_memory: allocated here
libguestfs-1.55.9/daemon/tar.c:389:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/tar.c:398:3: branch_false: ...to here
libguestfs-1.55.9/daemon/tar.c:400:15: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
#  398|     reply (NULL, NULL);
#  399|   
#  400|->   while ((r = fread (buffer, 1, GUESTFS_MAX_CHUNK_SIZE, fp)) > 0) {
#  401|       if (send_file_write (buffer, r) < 0) {
#  402|         pclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def274]
libguestfs-1.55.9/daemon/upload.c:177:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 524288)’
libguestfs-1.55.9/daemon/upload.c:169:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/upload.c:174:12: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:177:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/upload.c:177:8: danger: ‘open(filename, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  175|   
#  176|     if (!is_dev) CHROOT_IN;
#  177|->   fd = open (filename, O_RDONLY|O_CLOEXEC);
#  178|     if (!is_dev) CHROOT_OUT;
#  179|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def275]
libguestfs-1.55.9/daemon/upload.c:178:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 524288)’
libguestfs-1.55.9/daemon/upload.c:169:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/upload.c:174:12: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:177:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/upload.c:178:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/upload.c:178:16: danger: ‘open(filename, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  176|     if (!is_dev) CHROOT_IN;
#  177|     fd = open (filename, O_RDONLY|O_CLOEXEC);
#  178|->   if (!is_dev) CHROOT_OUT;
#  179|     if (fd == -1) {
#  180|       reply_with_perror ("%s", filename);

Error: CPPCHECK_WARNING (CWE-401): [#def276]
libguestfs-1.55.9/daemon/upload.c:259: error[memleak]: Memory leak: buf
#  257|     if (offset < 0) {
#  258|       reply_with_perror ("%s: offset in file is negative", filename);
#  259|->     return -1;
#  260|     }
#  261|   

Error: CPPCHECK_WARNING (CWE-401): [#def277]
libguestfs-1.55.9/daemon/upload.c:264: error[memleak]: Memory leak: buf
#  262|     if (size < 0) {
#  263|       reply_with_perror ("%s: size is negative", filename);
#  264|->     return -1;
#  265|     }
#  266|     uint64_t usize = (uint64_t) size;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def278]
libguestfs-1.55.9/daemon/upload.c:271:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 524288)’
libguestfs-1.55.9/daemon/upload.c:252:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/upload.c:257:6: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:257:6: branch_false: following ‘false’ branch (when ‘offset >= 0’)...
libguestfs-1.55.9/daemon/upload.c:262:6: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:262:6: branch_false: following ‘false’ branch (when ‘size >= 0’)...
libguestfs-1.55.9/daemon/upload.c:266:12: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:271:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/upload.c:271:8: danger: ‘open(filename, 524288)’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  269|   
#  270|     if (!is_dev) CHROOT_IN;
#  271|->   fd = open (filename, O_RDONLY|O_CLOEXEC);
#  272|     if (!is_dev) CHROOT_OUT;
#  273|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def279]
libguestfs-1.55.9/daemon/upload.c:272:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 524288)’
libguestfs-1.55.9/daemon/upload.c:252:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/upload.c:257:6: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:257:6: branch_false: following ‘false’ branch (when ‘offset >= 0’)...
libguestfs-1.55.9/daemon/upload.c:262:6: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:262:6: branch_false: following ‘false’ branch (when ‘size >= 0’)...
libguestfs-1.55.9/daemon/upload.c:266:12: branch_false: ...to here
libguestfs-1.55.9/daemon/upload.c:271:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/upload.c:272:6: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/upload.c:272:16: danger: ‘open(filename, 524288)’ leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  270|     if (!is_dev) CHROOT_IN;
#  271|     fd = open (filename, O_RDONLY|O_CLOEXEC);
#  272|->   if (!is_dev) CHROOT_OUT;
#  273|     if (fd == -1) {
#  274|       reply_with_perror ("%s", filename);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def280]
libguestfs-1.55.9/daemon/utils.c:159:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 524288)’
libguestfs-1.55.9/daemon/utils.c:114:1: enter_function: entry to ‘is_device_parameter’
libguestfs-1.55.9/daemon/utils.c:122:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/utils.c:126:7: branch_false: ...to here
libguestfs-1.55.9/daemon/utils.c:126:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/utils.c:130:7: branch_false: ...to here
libguestfs-1.55.9/daemon/utils.c:130:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/utils.c:140:7: branch_false: ...to here
libguestfs-1.55.9/daemon/utils.c:140:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/utils.c:143:6: branch_false: ...to here
libguestfs-1.55.9/daemon/utils.c:143:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/utils.c:147:7: call_function: inlined call to ‘is_root_device_stat’ from ‘is_device_parameter’
libguestfs-1.55.9/daemon/utils.c:159:8: branch_false: ...to here
libguestfs-1.55.9/daemon/utils.c:159:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/utils.c:159:8: danger: ‘open(device, 524288)’ leaks here; was opened at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  157|      * Only disk-like things should support BLKGETSIZE64.
#  158|      */
#  159|->   fd = open (device, O_RDONLY|O_CLOEXEC);
#  160|     if (fd == -1) {
#  161|       if (verbose)

Error: GCC_ANALYZER_WARNING (CWE-415): [#def281]
libguestfs-1.55.9/daemon/utils.c:274:7: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
libguestfs-1.55.9/daemon/utils.c:494:1: enter_function: entry to ‘filter_list’
libguestfs-1.55.9/daemon/utils.c:499:15: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/utils.c:500:9: branch_true: ...to here
libguestfs-1.55.9/daemon/utils.c:501:11: call_function: calling ‘add_string_nodup’ from ‘filter_list’
libguestfs-1.55.9/daemon/utils.c:501:11: return_function: returning to ‘filter_list’ from ‘add_string_nodup’
libguestfs-1.55.9/daemon/utils.c:501:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/utils.c:499:32: branch_false: ...to here
libguestfs-1.55.9/daemon/utils.c:507:7: call_function: inlined call to ‘end_stringsbuf’ from ‘filter_list’
#  272|       if (new_argv == NULL) {
#  273|         reply_with_perror ("realloc");
#  274|->       free (str);
#  275|         return -1;
#  276|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def282]
libguestfs-1.55.9/daemon/utils.c:701:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 524288)’
libguestfs-1.55.9/daemon/utils.c:696:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/utils.c:697:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/utils.c:700:7: branch_false: ...to here
libguestfs-1.55.9/daemon/utils.c:701:6: danger: ‘open("/dev/urandom", 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  699|   
#  700|     p = strrchr (template, '/');
#  701|->   if (p == NULL)
#  702|       abort ();                   /* internal error - bad template */
#  703|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def283]
libguestfs-1.55.9/daemon/wc.c:38:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/wc.c:38:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/wc.c:38:8: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   36|   
#   37|     CHROOT_IN;
#   38|->   fd = open (path, O_RDONLY|O_CLOEXEC);
#   39|     CHROOT_OUT;
#   40|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def284]
libguestfs-1.55.9/daemon/wc.c:39:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/wc.c:38:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/wc.c:39:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/wc.c:39:3: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   37|     CHROOT_IN;
#   38|     fd = open (path, O_RDONLY|O_CLOEXEC);
#   39|->   CHROOT_OUT;
#   40|   
#   41|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def285]
libguestfs-1.55.9/daemon/wc.c:47:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/wc.c:38:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/wc.c:41:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/wc.c:46:3: branch_false: ...to here
libguestfs-1.55.9/daemon/wc.c:47:7: danger: ‘open(path, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   45|   
#   46|     flags = COMMAND_FLAG_CHROOT_COPY_FILE_TO_STDIN | fd;
#   47|->   r = commandf (&out, &err, flags, "wc", flag, NULL);
#   48|     if (r == -1) {
#   49|       reply_with_error ("wc %s: %s", flag, err);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
libguestfs-1.55.9/daemon/xattr.c:249:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/xattr.c:157:1: enter_function: entry to ‘getxattrs’
libguestfs-1.55.9/daemon/xattr.c:169:9: call_function: calling ‘_listxattrs’ from ‘getxattrs’
libguestfs-1.55.9/daemon/xattr.c:169:9: return_function: returning to ‘getxattrs’ from ‘_listxattrs’
libguestfs-1.55.9/daemon/xattr.c:170:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:174:22: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:174:22: call_function: calling ‘split_attr_names’ from ‘getxattrs’
libguestfs-1.55.9/daemon/xattr.c:174:22: return_function: returning to ‘getxattrs’ from ‘split_attr_names’
libguestfs-1.55.9/daemon/xattr.c:175:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:177:11: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:178:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:181:7: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:182:6: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
libguestfs-1.55.9/daemon/xattr.c:187:35: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:191:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:196:15: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/xattr.c:197:5: branch_true: ...to here
libguestfs-1.55.9/daemon/xattr.c:200:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:205:8: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:205:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:211:62: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:212:60: acquire_memory: allocated here
libguestfs-1.55.9/daemon/xattr.c:215:8: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/xattr.c:217:7: branch_true: ...to here
libguestfs-1.55.9/daemon/xattr.c:241:6: branch_true: following ‘true’ branch (when ‘r’ is non-NULL)...
libguestfs-1.55.9/daemon/xattr.c:242:9: branch_true: ...to here
libguestfs-1.55.9/daemon/xattr.c:242:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
libguestfs-1.55.9/daemon/xattr.c:244:19: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:249:5: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:249:5: danger: ‘<unknown>’ leaks here; was allocated at [(34)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/33)
#  247|         }
#  248|       }
#  249|->     free (r->guestfs_int_xattr_list_val);
#  250|     }
#  251|     free (r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
libguestfs-1.55.9/daemon/xattr.c:377:8: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/xattr.c:343:6: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
libguestfs-1.55.9/daemon/xattr.c:348:3: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:351:15: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/xattr.c:353:24: branch_true: ...to here
libguestfs-1.55.9/daemon/xattr.c:368:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:375:24: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:377:8: branch_false: following ‘false’ branch (when ‘newptr’ is non-NULL)...
libguestfs-1.55.9/daemon/xattr.c:381:5: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:390:23: acquire_memory: allocated here
libguestfs-1.55.9/daemon/xattr.c:391:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:396:5: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:351:15: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/xattr.c:353:24: branch_true: ...to here
libguestfs-1.55.9/daemon/xattr.c:368:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:375:24: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:377:8: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#  375|                         (ret->guestfs_int_xattr_list_len+1) *
#  376|                         sizeof (guestfs_int_xattr));
#  377|->     if (newptr == NULL) {
#  378|         reply_with_perror ("realloc");
#  379|         goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
libguestfs-1.55.9/daemon/xattr.c:426:8: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/daemon/xattr.c:335:1: enter_function: entry to ‘do_internal_lxattrlist’
libguestfs-1.55.9/daemon/xattr.c:343:6: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
libguestfs-1.55.9/daemon/xattr.c:348:3: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:351:15: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/xattr.c:353:24: branch_true: ...to here
libguestfs-1.55.9/daemon/xattr.c:368:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:375:24: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:377:8: branch_false: following ‘false’ branch (when ‘newptr’ is non-NULL)...
libguestfs-1.55.9/daemon/xattr.c:381:5: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:390:23: acquire_memory: allocated here
libguestfs-1.55.9/daemon/xattr.c:391:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:396:5: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:399:8: branch_false: following ‘false’ branch (when ‘len != -1’)...
libguestfs-1.55.9/daemon/xattr.c:402:11: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:403:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:408:5: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:411:8: branch_false: following ‘false’ branch (when ‘len != -1’)...
libguestfs-1.55.9/daemon/xattr.c:414:28: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:414:28: call_function: calling ‘split_attr_names’ from ‘do_internal_lxattrlist’
libguestfs-1.55.9/daemon/xattr.c:414:28: return_function: returning to ‘do_internal_lxattrlist’ from ‘split_attr_names’
libguestfs-1.55.9/daemon/xattr.c:415:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:417:17: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:418:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xattr.c:420:16: branch_false: ...to here
libguestfs-1.55.9/daemon/xattr.c:426:8: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#  424|                  (ret->guestfs_int_xattr_list_len+nr_attrs) *
#  425|                  sizeof (guestfs_int_xattr));
#  426|->     if (newptr == NULL) {
#  427|         reply_with_perror ("realloc");
#  428|         goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(*<unknown>)’
libguestfs-1.55.9/daemon/xfs.c:322:1: enter_function: entry to ‘do_xfs_info’
libguestfs-1.55.9/daemon/xfs.c:333:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xfs.c:338:7: branch_false: ...to here
libguestfs-1.55.9/daemon/xfs.c:339:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xfs.c:344:11: branch_false: ...to here
libguestfs-1.55.9/daemon/xfs.c:345:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xfs.c:348:10: branch_false: ...to here
libguestfs-1.55.9/daemon/xfs.c:348:10: call_function: calling ‘parse_xfs_info’ from ‘do_xfs_info’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 10)’
libguestfs-1.55.9/daemon/xfs.c:322:1: enter_function: entry to ‘do_xfs_info’
libguestfs-1.55.9/daemon/xfs.c:333:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xfs.c:338:7: branch_false: ...to here
libguestfs-1.55.9/daemon/xfs.c:339:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xfs.c:344:11: branch_false: ...to here
libguestfs-1.55.9/daemon/xfs.c:345:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/xfs.c:348:10: branch_false: ...to here
libguestfs-1.55.9/daemon/xfs.c:348:10: call_function: calling ‘parse_xfs_info’ from ‘do_xfs_info’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 11)’
libguestfs-1.55.9/daemon/xfs.c:659:1: enter_function: entry to ‘xfs_minimum_size’
libguestfs-1.55.9/daemon/xfs.c:661:59: call_function: calling ‘do_xfs_info’ from ‘xfs_minimum_size’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 18)’
libguestfs-1.55.9/daemon/xfs.c:659:1: enter_function: entry to ‘xfs_minimum_size’
libguestfs-1.55.9/daemon/xfs.c:661:59: call_function: calling ‘do_xfs_info’ from ‘xfs_minimum_size’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 5)’
libguestfs-1.55.9/daemon/xfs.c:659:1: enter_function: entry to ‘xfs_minimum_size’
libguestfs-1.55.9/daemon/xfs.c:661:59: call_function: calling ‘do_xfs_info’ from ‘xfs_minimum_size’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 6)’
libguestfs-1.55.9/daemon/xfs.c:659:1: enter_function: entry to ‘xfs_minimum_size’
libguestfs-1.55.9/daemon/xfs.c:661:59: call_function: calling ‘do_xfs_info’ from ‘xfs_minimum_size’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 7)’
libguestfs-1.55.9/daemon/xfs.c:659:1: enter_function: entry to ‘xfs_minimum_size’
libguestfs-1.55.9/daemon/xfs.c:661:59: call_function: calling ‘do_xfs_info’ from ‘xfs_minimum_size’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 8)’
libguestfs-1.55.9/daemon/xfs.c:659:1: enter_function: entry to ‘xfs_minimum_size’
libguestfs-1.55.9/daemon/xfs.c:661:59: call_function: calling ‘do_xfs_info’ from ‘xfs_minimum_size’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
libguestfs-1.55.9/daemon/xfs.c:52:6: warning[-Wanalyzer-malloc-leak]: leak of ‘split_strdup(p + 9)’
libguestfs-1.55.9/daemon/xfs.c:659:1: enter_function: entry to ‘xfs_minimum_size’
libguestfs-1.55.9/daemon/xfs.c:661:59: call_function: calling ‘do_xfs_info’ from ‘xfs_minimum_size’
#   50|     len = strcspn (string, " ,=");
#   51|     ret = strndup (string, len);
#   52|->   if (!ret) {
#   53|       reply_with_perror ("malloc");
#   54|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
libguestfs-1.55.9/daemon/zero.c:208:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/zero.c:202:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/zero.c:207:3: branch_false: ...to here
libguestfs-1.55.9/daemon/zero.c:208:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/zero.c:208:8: danger: ‘open(path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  206|   
#  207|     CHROOT_IN;
#  208|->   fd = open (path, O_RDONLY|O_CLOEXEC);
#  209|     CHROOT_OUT;
#  210|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def299]
libguestfs-1.55.9/daemon/zero.c:209:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
libguestfs-1.55.9/daemon/zero.c:202:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/zero.c:207:3: branch_false: ...to here
libguestfs-1.55.9/daemon/zero.c:208:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/zero.c:209:3: branch_true: following ‘true’ branch...
libguestfs-1.55.9/daemon/zero.c:209:3: danger: ‘open(path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  207|     CHROOT_IN;
#  208|     fd = open (path, O_RDONLY|O_CLOEXEC);
#  209|->   CHROOT_OUT;
#  210|   
#  211|     if (fd == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
libguestfs-1.55.9/daemon/zero.c:250:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 524288)’
libguestfs-1.55.9/daemon/zero.c:245:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/zero.c:250:8: branch_false: ...to here
libguestfs-1.55.9/daemon/zero.c:250:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/zero.c:250:8: danger: ‘open(device, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  248|     }
#  249|   
#  250|->   fd = open (device, O_RDONLY|O_CLOEXEC);
#  251|     if (fd == -1) {
#  252|       reply_with_perror ("open: %s", device);

Error: CPPCHECK_WARNING (CWE-401): [#def301]
libguestfs-1.55.9/daemon/zero.c:253: error[memleak]: Memory leak: buf
#  251|     if (fd == -1) {
#  252|       reply_with_perror ("open: %s", device);
#  253|->     return -1;
#  254|     }
#  255|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
libguestfs-1.55.9/daemon/zero.c:256:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 524288)’
libguestfs-1.55.9/daemon/zero.c:245:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/daemon/zero.c:250:8: branch_false: ...to here
libguestfs-1.55.9/daemon/zero.c:250:8: acquire_resource: opened here
libguestfs-1.55.9/daemon/zero.c:251:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/daemon/zero.c:256:15: danger: ‘open(device, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  254|     }
#  255|   
#  256|->   while ((r = read (fd, buf, BUFSIZ)) > 0) {
#  257|       if (!is_zero (buf, r)) {
#  258|         close (fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
libguestfs-1.55.9/examples/display-icon.c:114:11: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("display -", "w")’
libguestfs-1.55.9/examples/display-icon.c:38:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libguestfs-1.55.9/examples/display-icon.c:42:3: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:45:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:51:7: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:51:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:59:7: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:59:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:63:11: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:64:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:66:7: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:66:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:71:15: branch_true: following ‘true’ branch...
libguestfs-1.55.9/examples/display-icon.c:79:19: branch_true: ...to here
libguestfs-1.55.9/examples/display-icon.c:80:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:85:17: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:93:5: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:102:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:104:9: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:104:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:109:12: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:109:12: acquire_memory: allocated here
libguestfs-1.55.9/examples/display-icon.c:110:10: branch_false: following ‘false’ branch...
libguestfs-1.55.9/examples/display-icon.c:114:11: branch_false: ...to here
libguestfs-1.55.9/examples/display-icon.c:114:11: danger: ‘popen("display -", "w")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
#  112|           exit (EXIT_FAILURE);
#  113|         }
#  114|->       if (fwrite (icon, 1, icon_size, fp) != icon_size) {
#  115|           perror ("write");
#  116|           exit (EXIT_FAILURE);

Error: CPPCHECK_WARNING (CWE-401): [#def304]
libguestfs-1.55.9/fish/events.c:124: error[memleak]: Memory leak: argv
#  122|     if (pid == -1) {
#  123|       perror ("event handler: fork");
#  124|->     return;
#  125|     }
#  126|   

Error: CPPCHECK_WARNING (CWE-476): [#def305]
libguestfs-1.55.9/fish/fish.c:352: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mp
#  350|   
#  351|       case 'm':
#  352|->       OPTION_m;
#  353|         break;
#  354|   

Error: CPPCHECK_WARNING (CWE-476): [#def306]
libguestfs-1.55.9/fish/fish.c:372: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  370|         if (!drv)
#  371|           error (EXIT_FAILURE, errno, "calloc");
#  372|->       drv->type = drv_N;
#  373|         p = strchr (optarg, '=');
#  374|         if (p != NULL) {

Error: CPPCHECK_WARNING (CWE-476): [#def307]
libguestfs-1.55.9/fish/fish.c:386: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  384|           p = optarg;
#  385|         }
#  386|->       drv->N.data = create_prepared_file (p, drv->N.filename);
#  387|         drv->N.data_free = free_prep_data;
#  388|         drv->next = drvs;

Error: CPPCHECK_WARNING (CWE-476): [#def308]
libguestfs-1.55.9/fish/fish.c:387: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  385|         }
#  386|         drv->N.data = create_prepared_file (p, drv->N.filename);
#  387|->       drv->N.data_free = free_prep_data;
#  388|         drv->next = drvs;
#  389|         drvs = drv;

Error: CPPCHECK_WARNING (CWE-476): [#def309]
libguestfs-1.55.9/fish/fish.c:388: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  386|         drv->N.data = create_prepared_file (p, drv->N.filename);
#  387|         drv->N.data_free = free_prep_data;
#  388|->       drv->next = drvs;
#  389|         drvs = drv;
#  390|         next_prepared_drive++;

Error: CPPCHECK_WARNING (CWE-476): [#def310]
libguestfs-1.55.9/fish/fish.c:453: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  451|           if (!drv)
#  452|             error (EXIT_FAILURE, errno, "calloc");
#  453|->         drv->type = drv_a;
#  454|           drv->a.filename = strdup (argv[optind]);
#  455|           if (!drv->a.filename)

Error: CPPCHECK_WARNING (CWE-476): [#def311]
libguestfs-1.55.9/fish/fish.c:454: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  452|             error (EXIT_FAILURE, errno, "calloc");
#  453|           drv->type = drv_a;
#  454|->         drv->a.filename = strdup (argv[optind]);
#  455|           if (!drv->a.filename)
#  456|             error (EXIT_FAILURE, errno, "strdup");

Error: CPPCHECK_WARNING (CWE-476): [#def312]
libguestfs-1.55.9/fish/fish.c:455: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  453|           drv->type = drv_a;
#  454|           drv->a.filename = strdup (argv[optind]);
#  455|->         if (!drv->a.filename)
#  456|             error (EXIT_FAILURE, errno, "strdup");
#  457|           drv->next = drvs;

Error: CPPCHECK_WARNING (CWE-476): [#def313]
libguestfs-1.55.9/fish/fish.c:463: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  461|           if (!drv)
#  462|             error (EXIT_FAILURE, errno, "calloc");
#  463|->         drv->type = drv_d;
#  464|           drv->d.guest = argv[optind];
#  465|           drv->next = drvs;

Error: CPPCHECK_WARNING (CWE-476): [#def314]
libguestfs-1.55.9/fish/fish.c:464: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  462|             error (EXIT_FAILURE, errno, "calloc");
#  463|           drv->type = drv_d;
#  464|->         drv->d.guest = argv[optind];
#  465|           drv->next = drvs;
#  466|           drvs = drv;

Error: CPPCHECK_WARNING (CWE-476): [#def315]
libguestfs-1.55.9/fish/fish.c:465: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  463|           drv->type = drv_d;
#  464|           drv->d.guest = argv[optind];
#  465|->         drv->next = drvs;
#  466|           drvs = drv;
#  467|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
libguestfs-1.55.9/fish/fish.c:1038:8: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libguestfs-1.55.9/fish/fish.c:1038:8: acquire_memory: allocated here
libguestfs-1.55.9/fish/fish.c:1038:8: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1036|     struct parsed_command pcmd;
# 1037|   
# 1038|->   pp = popen (cmd, "r");
# 1039|     if (!pp) {
# 1040|       perror ("popen");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def317]
libguestfs-1.55.9/fish/fish.c:1137:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
libguestfs-1.55.9/fish/fish.c:1132:6: branch_true: following ‘true’ branch (when ‘pipecmd’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1135:9: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1135:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1139:9: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1139:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1143:11: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1137:14: danger: ‘fd[0]’ leaks here
# 1135|       if (fflush (stdout) == EOF) {
# 1136|         perror ("failed to flush standard output");
# 1137|->       return -1;
# 1138|       }
# 1139|       if (pipe (fd) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def318]
libguestfs-1.55.9/fish/fish.c:1137:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
libguestfs-1.55.9/fish/fish.c:1132:6: branch_true: following ‘true’ branch (when ‘pipecmd’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1135:9: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1135:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1139:9: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1139:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1143:11: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1137:14: danger: ‘fd[1]’ leaks here
# 1135|       if (fflush (stdout) == EOF) {
# 1136|         perror ("failed to flush standard output");
# 1137|->       return -1;
# 1138|       }
# 1139|       if (pipe (fd) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def319]
libguestfs-1.55.9/fish/fish.c:1151:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[0], 0)’
libguestfs-1.55.9/fish/fish.c:1132:6: branch_true: following ‘true’ branch (when ‘pipecmd’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1135:9: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1135:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1139:9: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1139:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1143:11: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1144:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/fish/fish.c:1149:8: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1149:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libguestfs-1.55.9/fish/fish.c:1150:7: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1151:11: acquire_resource: opened here
libguestfs-1.55.9/fish/fish.c:1151:10: danger: ‘dup2(fd[0], 0)’ leaks here; was opened at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
# 1149|       if (pid == 0) {		/* Child process. */
# 1150|         close (fd[1]);
# 1151|->       if (dup2 (fd[0], 0) < 0) {
# 1152|           perror ("dup2 of stdin failed");
# 1153|           _exit (1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def320]
libguestfs-1.55.9/fish/fish.c:1169:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
libguestfs-1.55.9/fish/fish.c:1132:6: branch_true: following ‘true’ branch (when ‘pipecmd’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1135:9: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1135:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1139:9: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1139:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1143:11: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1144:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/fish/fish.c:1149:8: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1149:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libguestfs-1.55.9/fish/fish.c:1164:28: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1164:8: branch_false: following ‘false’ branch (when ‘stdout_saved_fd >= 0’)...
libguestfs-1.55.9/fish/fish.c:1168:5: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1169:9: acquire_resource: opened here
libguestfs-1.55.9/fish/fish.c:1169:8: danger: ‘dup2(fd[1], 1)’ leaks here; was opened at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
# 1167|       }
# 1168|       close (fd[0]);
# 1169|->     if (dup2 (fd[1], 1) < 0) {
# 1170|         perror ("failed to dup stdout");
# 1171|         close (stdout_saved_fd);

Error: GCC_ANALYZER_WARNING: [#def321]
libguestfs-1.55.9/fish/fish.c:1217:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
libguestfs-1.55.9/fish/fish.c:1132:6: branch_true: following ‘true’ branch (when ‘pipecmd’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1135:9: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1135:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1139:9: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1139:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1143:11: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1144:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libguestfs-1.55.9/fish/fish.c:1149:8: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1149:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libguestfs-1.55.9/fish/fish.c:1164:28: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1164:8: branch_false: following ‘false’ branch (when ‘stdout_saved_fd >= 0’)...
libguestfs-1.55.9/fish/fish.c:1168:5: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1169:8: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1174:5: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1199:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1205:7: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1215:6: branch_true: following ‘true’ branch (when ‘pipecmd’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1216:5: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1216:5: release_resource: closed here
libguestfs-1.55.9/fish/fish.c:1217:9: danger: ‘1’ could be invalid
# 1215|     if (pipecmd) {
# 1216|       close (1);
# 1217|->     if (dup2 (stdout_saved_fd, 1) < 0) {
# 1218|         perror ("failed to dup2 standard output");
# 1219|         r = -1;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def322]
libguestfs-1.55.9/fish/fish.c:1331:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
libguestfs-1.55.9/fish/fish.c:1335:1: enter_function: entry to ‘parse_string_list’
libguestfs-1.55.9/fish/fish.c:1355:10: branch_true: following ‘true’ branch...
libguestfs-1.55.9/fish/fish.c:1360:10: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1369:12: branch_true: following ‘true’ branch...
libguestfs-1.55.9/fish/fish.c:1369:20: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1369:12: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1373:10: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1395:10: branch_false: following ‘false’ branch (when ‘tok_new’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1404:19: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1424:8: branch_true: following ‘true’ branch (when ‘in_quote != 0’)...
libguestfs-1.55.9/fish/fish.c:1425:24: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1426:7: call_function: passing freed pointer ‘argv’ in call to ‘free_n_strings’ from ‘parse_string_list’
# 1329|       free (str[i]);
# 1330|     }
# 1331|->   free (str);
# 1332|   }
# 1333|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def323]
libguestfs-1.55.9/fish/fish.c:1439:25: warning[-Wanalyzer-double-free]: double-‘free’ of ‘argv’
libguestfs-1.55.9/fish/fish.c:1355:10: branch_true: following ‘true’ branch...
libguestfs-1.55.9/fish/fish.c:1360:10: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1369:12: branch_true: following ‘true’ branch...
libguestfs-1.55.9/fish/fish.c:1369:20: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1369:12: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/fish.c:1373:10: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1395:10: branch_false: following ‘false’ branch (when ‘tok_new’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1404:19: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1424:8: branch_false: following ‘false’ branch (when ‘in_quote == 0’)...
libguestfs-1.55.9/fish/fish.c:1433:8: branch_false: ...to here
libguestfs-1.55.9/fish/fish.c:1433:8: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
libguestfs-1.55.9/fish/fish.c:1435:10: branch_true: ...to here
libguestfs-1.55.9/fish/fish.c:1439:25: danger: second ‘free’ here
# 1437|         /* Add the argument to the argument list */
# 1438|         argv_len++;
# 1439|->       char **argv_new = realloc (argv, sizeof (*argv) * argv_len);
# 1440|         if (NULL == argv_new) {
# 1441|           perror ("realloc");

Error: CPPCHECK_WARNING (CWE-476): [#def324]
libguestfs-1.55.9/fish/fish.c:1619: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
# 1617|     }
# 1618|   
# 1619|->   ret[j] = '\0';
# 1620|     return ret;                   /* caller frees */
# 1621|   }

Error: CPPCHECK_WARNING (CWE-401): [#def325]
libguestfs-1.55.9/fish/fish.c:1871: error[memleak]: Memory leak: buffer
# 1869|     if (asprintf (&template, "%s/guestfishXXXXXX", tmpdir) == -1) {
# 1870|       perror ("asprintf");
# 1871|->     return NULL;
# 1872|     }
# 1873|   

Error: CPPCHECK_WARNING (CWE-401): [#def326]
libguestfs-1.55.9/fish/fish.c:1877: error[memleak]: Memory leak: buffer
# 1875|     if (file_in_tmpfile == NULL) {
# 1876|       perror ("strdup");
# 1877|->     return NULL;
# 1878|     }
# 1879|   

Error: CPPCHECK_WARNING (CWE-401): [#def327]
libguestfs-1.55.9/fish/glob.c:75: error[memleak]: Memory leak: count
#   73|     if (argc < 1) {
#   74|       fprintf (stderr, _("use 'glob command [args...]'\n"));
#   75|->     return -1;
#   76|     }
#   77|   

Error: CPPCHECK_WARNING (CWE-401): [#def328]
libguestfs-1.55.9/fish/glob.c:75: error[memleak]: Memory leak: globs
#   73|     if (argc < 1) {
#   74|       fprintf (stderr, _("use 'glob command [args...]'\n"));
#   75|->     return -1;
#   76|     }
#   77|   

Error: CPPCHECK_WARNING (CWE-401): [#def329]
libguestfs-1.55.9/fish/glob.c:75: error[memleak]: Memory leak: posn
#   73|     if (argc < 1) {
#   74|       fprintf (stderr, _("use 'glob command [args...]'\n"));
#   75|->     return -1;
#   76|     }
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
libguestfs-1.55.9/fish/glob.c:275:6: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libguestfs-1.55.9/fish/glob.c:190:1: enter_function: entry to ‘expand_devicename’
libguestfs-1.55.9/fish/glob.c:198:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/fish/glob.c:199:7: branch_false: ...to here
libguestfs-1.55.9/fish/glob.c:199:7: call_function: calling ‘add_strings_matching’ from ‘expand_devicename’
#  273|   
#  274|     new_ret = realloc (new_ret, (size + 2) * (sizeof (char *)));
#  275|->   if (!new_ret) {
#  276|       perror ("realloc");
#  277|       return -1;

Error: CPPCHECK_WARNING (CWE-476): [#def331]
libguestfs-1.55.9/fish/prep.c:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  114|     if (data == NULL)
#  115|       error (EXIT_FAILURE, errno, "malloc");
#  116|->   data->prep = &preps[i];
#  117|     data->orig_type_string = type_string;
#  118|   

Error: CPPCHECK_WARNING (CWE-476): [#def332]
libguestfs-1.55.9/fish/prep.c:117: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  115|       error (EXIT_FAILURE, errno, "malloc");
#  116|     data->prep = &preps[i];
#  117|->   data->orig_type_string = type_string;
#  118|   
#  119|     /* Set up the optional parameters to all-defaults. */

Error: CPPCHECK_WARNING (CWE-476): [#def333]
libguestfs-1.55.9/fish/prep.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  118|   
#  119|     /* Set up the optional parameters to all-defaults. */
#  120|->   data->params = malloc (data->prep->nr_params * sizeof (char *));
#  121|     if (data->params == NULL)
#  122|       error (EXIT_FAILURE, errno, "malloc");

Error: CPPCHECK_WARNING (CWE-476): [#def334]
libguestfs-1.55.9/fish/prep.c:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  119|     /* Set up the optional parameters to all-defaults. */
#  120|     data->params = malloc (data->prep->nr_params * sizeof (char *));
#  121|->   if (data->params == NULL)
#  122|       error (EXIT_FAILURE, errno, "malloc");
#  123|   

Error: CPPCHECK_WARNING (CWE-476): [#def335]
libguestfs-1.55.9/fish/prep.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  122|       error (EXIT_FAILURE, errno, "malloc");
#  123|   
#  124|->   for (i = 0; i < data->prep->nr_params; ++i)
#  125|       data->params[i] = (char *) data->prep->params[i].pdefault;
#  126|   

Error: CPPCHECK_WARNING (CWE-476): [#def336]
libguestfs-1.55.9/fish/prep.c:125: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  123|   
#  124|     for (i = 0; i < data->prep->nr_params; ++i)
#  125|->     data->params[i] = (char *) data->prep->params[i].pdefault;
#  126|   
#  127|     /* Parse the optional parameters. */

Error: CPPCHECK_WARNING (CWE-476): [#def337]
libguestfs-1.55.9/fish/tilde.c:72: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#   70|         if (str == NULL)
#   71|           error (EXIT_FAILURE, errno, "malloc");
#   72|->       strcpy (str, home);
#   73|         strcat (str, rest);
#   74|         return str;

Error: CPPCHECK_WARNING (CWE-476): [#def338]
libguestfs-1.55.9/fish/tilde.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#   71|           error (EXIT_FAILURE, errno, "malloc");
#   72|         strcpy (str, home);
#   73|->       strcat (str, rest);
#   74|         return str;
#   75|       }

Error: CPPCHECK_WARNING (CWE-476): [#def339]
libguestfs-1.55.9/fish/tilde.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#  105|       error (EXIT_FAILURE, errno, "malloc");
#  106|   
#  107|->   strcpy (str, home);
#  108|     if (append)
#  109|       strcat (str, append);

Error: CPPCHECK_WARNING (CWE-476): [#def340]
libguestfs-1.55.9/fish/tilde.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#  107|     strcpy (str, home);
#  108|     if (append)
#  109|->     strcat (str, append);
#  110|   
#  111|     return str;

Error: CPPCHECK_WARNING (CWE-476): [#def341]
libguestfs-1.55.9/fuse/guestmount.c:284: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mp
#  282|   
#  283|       case 'm':
#  284|->       OPTION_m;
#  285|         break;
#  286|   

Error: COMPILER_WARNING (CWE-9001): [#def342]
libguestfs-1.55.9/gobject/src/session.c:853:21: warning[-Wcomment]: '/*' within comment
#  853 |  * /dev/disk/guestfs/*label*.
#  851|    * using *only* ASCII characters "[a-zA-Z]". As well as its usual name
#  852|    * in the API (such as /dev/sda), the drive will also be named
#  853|->  * /dev/disk/guestfs/*label*.
#  854|    * 
#  855|    * See "DISK LABELS" in guestfs(3).

Error: COMPILER_WARNING (CWE-9001): [#def343]
libguestfs-1.55.9/gobject/src/session.c:1831:73: warning[-Wcomment]: '/*' within comment
# 1831 |  * This is just a shortcut for listing guestfs_session_aug_match() "path/*"
# 1829|    * list Augeas nodes under augpath
# 1830|    *
# 1831|->  * This is just a shortcut for listing guestfs_session_aug_match() "path/*"
# 1832|    * and sorting the resulting nodes into alphabetical order.
# 1833|    * 

Error: COMPILER_WARNING (CWE-9001): [#def344]
libguestfs-1.55.9/gobject/src/session.c:17014:42: warning[-Wcomment]: '/*' within comment
#17014 |  * The returned list contains /dev/mapper/* devices, eg. ones created by a
#17012|    * List all device mapper devices.
#17013|    * 
#17014|->  * The returned list contains /dev/mapper/* devices, eg. ones created by a
#17015|    * previous call to guestfs_session_luks_open().
#17016|    * 

Error: COMPILER_WARNING (CWE-9001): [#def345]
libguestfs-1.55.9/gobject/src/session.c:24586:34: warning[-Wcomment]: '/*' within comment
#24586 |  * <![CDATA[><fs> glob rsync-out /* rsync://remote/]]>
#24584|    * command (see "glob" in guestfish(1)), for example:
#24585|    * 
#24586|->  * <![CDATA[><fs> glob rsync-out /* rsync://remote/]]>
#24587|    * 
#24588|    * This function depends on the feature "rsync".

Error: CPPCHECK_WARNING (CWE-457): [#def346]
libguestfs-1.55.9/lib/actions-2.c:225: warning[uninitvar]: Uninitialized variable: optargs->name
#  223|                                         "add_drive_scratch", 17);
#  224|     if ((optargs->bitmask & GUESTFS_ADD_DRIVE_SCRATCH_NAME_BITMASK) &&
#  225|->       optargs->name == NULL) {
#  226|       error (g, "%s: %s: optional parameter cannot be NULL",
#  227|              "add_drive_scratch", "name");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def347]
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(appliance, 524288)'
libguestfs-1.55.9/lib/appliance-kcmdline.c:72:8: acquire_resource: opened here
libguestfs-1.55.9/lib/appliance-kcmdline.c:73:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:7: branch_false: ...to here
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:6: danger: 'open(appliance, 524288)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   75|       return NULL;
#   76|     }
#   77|->   if (read (fd, magic, 4) != 4 || !strncmp ((char *) magic, "QFI\xfb", 4)) {
#   78|       /* No point looking for extfs signature in QCOW2 directly. */
#   79|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def348]
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(appliance, 524288)'
libguestfs-1.55.9/lib/appliance-kcmdline.c:72:8: acquire_resource: opened here
libguestfs-1.55.9/lib/appliance-kcmdline.c:73:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:7: branch_false: ...to here
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:36: branch_false: ...to here
libguestfs-1.55.9/lib/appliance-kcmdline.c:77:7: danger: 'open(appliance, 524288)' leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   75|       return NULL;
#   76|     }
#   77|->   if (read (fd, magic, 4) != 4 || !strncmp ((char *) magic, "QFI\xfb", 4)) {
#   78|       /* No point looking for extfs signature in QCOW2 directly. */
#   79|       return NULL;

Error: GCC_ANALYZER_WARNING: [#def349]
libguestfs-1.55.9/lib/command.c:499:7: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor '-1'
libguestfs-1.55.9/lib/command.c:749:1: enter_function: entry to 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: return_function: returning to 'guestfs_int_cmd_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:756:7: call_function: calling 'run_command' from 'guestfs_int_cmd_run'
#  497|       close (errorfd[0]);
#  498|       if (!cmd->stdout_callback)
#  499|->       dup2 (errorfd[1], 1);
#  500|       dup2 (errorfd[1], 2);
#  501|       close (errorfd[1]);

Error: GCC_ANALYZER_WARNING: [#def350]
libguestfs-1.55.9/lib/command.c:500:5: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor '-1'
libguestfs-1.55.9/lib/command.c:749:1: enter_function: entry to 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: return_function: returning to 'guestfs_int_cmd_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:756:7: call_function: calling 'run_command' from 'guestfs_int_cmd_run'
#  498|       if (!cmd->stdout_callback)
#  499|         dup2 (errorfd[1], 1);
#  500|->     dup2 (errorfd[1], 2);
#  501|       close (errorfd[1]);
#  502|     }

Error: GCC_ANALYZER_WARNING: [#def351]
libguestfs-1.55.9/lib/command.c:506:5: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor '-1'
libguestfs-1.55.9/lib/command.c:749:1: enter_function: entry to 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: return_function: returning to 'guestfs_int_cmd_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:756:7: call_function: calling 'run_command' from 'guestfs_int_cmd_run'
#  504|     if (cmd->stdout_callback) {
#  505|       close (outfd[0]);
#  506|->     dup2 (outfd[1], 1);
#  507|       close (outfd[1]);
#  508|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def352]
libguestfs-1.55.9/lib/command.c:527:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'errorfd[0]'
libguestfs-1.55.9/lib/command.c:749:1: enter_function: entry to 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: return_function: returning to 'guestfs_int_cmd_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:756:7: call_function: calling 'run_command' from 'guestfs_int_cmd_run'
#  525|   
#  526|     return -1;
#  527|-> }
#  528|   
#  529|   static void

Error: GCC_ANALYZER_WARNING (CWE-775): [#def353]
libguestfs-1.55.9/lib/command.c:527:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'errorfd[1]'
libguestfs-1.55.9/lib/command.c:749:1: enter_function: entry to 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: return_function: returning to 'guestfs_int_cmd_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:756:7: call_function: calling 'run_command' from 'guestfs_int_cmd_run'
#  525|   
#  526|     return -1;
#  527|-> }
#  528|   
#  529|   static void

Error: GCC_ANALYZER_WARNING (CWE-775): [#def354]
libguestfs-1.55.9/lib/command.c:527:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'outfd[0]'
libguestfs-1.55.9/lib/command.c:749:1: enter_function: entry to 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: return_function: returning to 'guestfs_int_cmd_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:756:7: call_function: calling 'run_command' from 'guestfs_int_cmd_run'
#  525|   
#  526|     return -1;
#  527|-> }
#  528|   
#  529|   static void

Error: GCC_ANALYZER_WARNING (CWE-775): [#def355]
libguestfs-1.55.9/lib/command.c:527:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'outfd[1]'
libguestfs-1.55.9/lib/command.c:749:1: enter_function: entry to 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_run'
libguestfs-1.55.9/lib/command.c:751:3: return_function: returning to 'guestfs_int_cmd_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:756:7: call_function: calling 'run_command' from 'guestfs_int_cmd_run'
#  525|   
#  526|     return -1;
#  527|-> }
#  528|   
#  529|   static void

Error: GCC_ANALYZER_WARNING (CWE-775): [#def356]
libguestfs-1.55.9/lib/command.c:875:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd[0]'
libguestfs-1.55.9/lib/command.c:781:1: enter_function: entry to 'guestfs_int_cmd_pipe_run'
libguestfs-1.55.9/lib/command.c:789:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_pipe_run'
libguestfs-1.55.9/lib/command.c:789:3: return_function: returning to 'guestfs_int_cmd_pipe_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:795:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:796:3: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:796:3: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/command.c:797:3: branch_true: ...to here
libguestfs-1.55.9/lib/command.c:797:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:799:7: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:803:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:812:21: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:813:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/command.c:814:5: branch_true: ...to here
libguestfs-1.55.9/lib/command.c:870:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:872:7: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:872:6: branch_false: following 'false' branch...
 branch_false: ...to here
libguestfs-1.55.9/lib/command.c:875:1: danger: 'fd[0]' leaks here
#  873|       close (fd[1]);
#  874|     return -1;
#  875|-> }
#  876|   
#  877|   /**

Error: GCC_ANALYZER_WARNING (CWE-775): [#def357]
libguestfs-1.55.9/lib/command.c:875:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd[1]'
libguestfs-1.55.9/lib/command.c:781:1: enter_function: entry to 'guestfs_int_cmd_pipe_run'
libguestfs-1.55.9/lib/command.c:789:3: call_function: calling 'finish_command' from 'guestfs_int_cmd_pipe_run'
libguestfs-1.55.9/lib/command.c:789:3: return_function: returning to 'guestfs_int_cmd_pipe_run' from 'finish_command'
libguestfs-1.55.9/lib/command.c:795:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:796:3: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:796:3: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/command.c:797:3: branch_true: ...to here
libguestfs-1.55.9/lib/command.c:797:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:799:7: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:803:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:812:21: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:813:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/command.c:814:5: branch_true: ...to here
libguestfs-1.55.9/lib/command.c:870:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/command.c:872:7: branch_false: ...to here
libguestfs-1.55.9/lib/command.c:872:6: branch_false: following 'false' branch...
 branch_false: ...to here
libguestfs-1.55.9/lib/command.c:875:1: danger: 'fd[1]' leaks here
#  873|       close (fd[1]);
#  874|     return -1;
#  875|-> }
#  876|   
#  877|   /**

Error: GCC_ANALYZER_WARNING (CWE-775): [#def358]
libguestfs-1.55.9/lib/file.c:97:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(tmpfile, 524288)'
libguestfs-1.55.9/lib/file.c:91:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:94:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:94:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:97:8: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:97:8: acquire_resource: opened here
libguestfs-1.55.9/lib/file.c:97:8: danger: 'open(tmpfile, 524288)' leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   95|       goto err;
#   96|   
#   97|->   fd = open (tmpfile, O_RDONLY|O_CLOEXEC);
#   98|     if (fd == -1) {
#   99|       perrorf (g, "open: %s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def359]
libguestfs-1.55.9/lib/file.c:138:5: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
libguestfs-1.55.9/lib/file.c:91:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:94:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:94:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:97:8: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:97:8: acquire_resource: opened here
libguestfs-1.55.9/lib/file.c:98:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:104:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:104:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:110:10: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:112:6: branch_false: following 'false' branch (when 'ret' is non-NULL)...
libguestfs-1.55.9/lib/file.c:117:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:117:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:122:6: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:124:7: release_resource: first 'close' here
libguestfs-1.55.9/lib/file.c:124:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/file.c:125:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:137:6: branch_true: following 'true' branch (when 'fd >= 0')...
libguestfs-1.55.9/lib/file.c:138:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:138:5: danger: second 'close' here; first 'close' was at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  136|     free (ret);
#  137|     if (fd >= 0)
#  138|->     close (fd);
#  139|     return NULL;
#  140|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def360]
libguestfs-1.55.9/lib/file.c:223:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(tmpfile, 524288)'
libguestfs-1.55.9/lib/file.c:217:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:220:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:220:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:223:8: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:223:8: acquire_resource: opened here
libguestfs-1.55.9/lib/file.c:223:8: danger: 'open(tmpfile, 524288)' leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  221|       goto err;
#  222|   
#  223|->   fd = open (tmpfile, O_RDONLY|O_CLOEXEC);
#  224|     if (fd == -1) {
#  225|       perrorf (g, "open: %s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def361]
libguestfs-1.55.9/lib/file.c:298:5: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
libguestfs-1.55.9/lib/file.c:217:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:220:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:220:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:223:8: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:223:8: acquire_resource: opened here
libguestfs-1.55.9/lib/file.c:224:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:230:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:230:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:236:10: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:238:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:243:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:243:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:248:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:248:7: release_resource: first 'close' here
libguestfs-1.55.9/lib/file.c:248:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/file.c:249:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:297:6: branch_true: following 'true' branch (when 'fd >= 0')...
libguestfs-1.55.9/lib/file.c:298:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:298:5: danger: second 'close' here; first 'close' was at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
#  296|     free (ret);
#  297|     if (fd >= 0)
#  298|->     close (fd);
#  299|     return NULL;
#  300|   }

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def362]
libguestfs-1.55.9/lib/file.c:358:5: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'open(guestfs_int_make_temp_path(g, "write", 0), 524609, 384)'
libguestfs-1.55.9/lib/file.c:314:6: branch_false: following 'false' branch (when 'size > 2097152')...
libguestfs-1.55.9/lib/file.c:320:13: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:321:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:324:8: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:325:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:330:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:330:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:335:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:335:7: release_resource: first 'close' here
libguestfs-1.55.9/lib/file.c:335:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/file.c:336:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:357:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/file.c:358:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:358:5: danger: second 'close' here; first 'close' was at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  356|    err:
#  357|     if (fd >= 0)
#  358|->     close (fd);
#  359|     return -1;
#  360|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def363]
libguestfs-1.55.9/lib/file.c:523:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(tmpfile, 524288)'
libguestfs-1.55.9/lib/file.c:517:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:520:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:520:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:523:8: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:523:8: acquire_resource: opened here
libguestfs-1.55.9/lib/file.c:523:8: danger: 'open(tmpfile, 524288)' leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  521|       goto err;
#  522|   
#  523|->   fd = open (tmpfile, O_RDONLY|O_CLOEXEC);
#  524|     if (fd == -1) {
#  525|       perrorf (g, "open: %s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def364]
libguestfs-1.55.9/lib/file.c:597:5: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
libguestfs-1.55.9/lib/file.c:517:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:520:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:520:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:523:8: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:523:8: acquire_resource: opened here
libguestfs-1.55.9/lib/file.c:524:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:530:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:530:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:536:10: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:538:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:543:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:543:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/file.c:548:7: branch_false: ...to here
libguestfs-1.55.9/lib/file.c:548:7: release_resource: first 'close' here
libguestfs-1.55.9/lib/file.c:548:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/file.c:549:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:596:6: branch_true: following 'true' branch (when 'fd >= 0')...
libguestfs-1.55.9/lib/file.c:597:5: branch_true: ...to here
libguestfs-1.55.9/lib/file.c:597:5: danger: second 'close' here; first 'close' was at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
#  595|     free (ret);
#  596|     if (fd >= 0)
#  597|->     close (fd);
#  598|     return NULL;
#  599|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
libguestfs-1.55.9/lib/fuse.c:1328:6: warning[-Wanalyzer-malloc-leak]: leak of 'entry'
libguestfs-1.55.9/lib/fuse.c:1405:1: enter_function: entry to 'rlc_insert'
libguestfs-1.55.9/lib/fuse.c:1412:11: acquire_memory: allocated here
libguestfs-1.55.9/lib/fuse.c:1413:6: branch_false: following 'false' branch (when 'entry' is non-NULL)...
libguestfs-1.55.9/lib/fuse.c:1418:9: branch_false: ...to here
libguestfs-1.55.9/lib/fuse.c:1420:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/fuse.c:1425:7: branch_false: ...to here
libguestfs-1.55.9/lib/fuse.c:1434:10: call_function: calling 'gen_replace' from 'rlc_insert'
libguestfs-1.55.9/lib/fuse.c:1434:10: return_function: returning to 'rlc_insert' from 'gen_replace'
libguestfs-1.55.9/lib/fuse.c:1328:6: danger: 'entry' leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
# 1326|   
# 1327|     old_entry = hash_insert (ht, new_entry);
# 1328|->   if (old_entry == NULL) {
# 1329|       perrorf (g, "hash_insert");
# 1330|       freer (new_entry);

Error: CPPCHECK_WARNING (CWE-401): [#def366]
libguestfs-1.55.9/lib/fuse.c:1368: error[memleak]: Memory leak: entry.c
# 1366|     entry->c.timeout = now + g->ml_dir_cache_timeout;
# 1367|   
# 1368|->   return gen_replace (g, g->lsc_ht, (struct entry_common *) entry, lsc_free);
# 1369|   }
# 1370|   

Error: CPPCHECK_WARNING (CWE-401): [#def367]
libguestfs-1.55.9/lib/fuse.c:1401: error[memleak]: Memory leak: entry.c
# 1399|     entry->c.timeout = now + g->ml_dir_cache_timeout;
# 1400|   
# 1401|->   return gen_replace (g, g->xac_ht, (struct entry_common *) entry, xac_free);
# 1402|   }
# 1403|   

Error: CPPCHECK_WARNING (CWE-401): [#def368]
libguestfs-1.55.9/lib/fuse.c:1434: error[memleak]: Memory leak: entry.c
# 1432|     entry->c.timeout = now + g->ml_dir_cache_timeout;
# 1433|   
# 1434|->   return gen_replace (g, g->rlc_ht, (struct entry_common *) entry, rlc_free);
# 1435|   }
# 1436|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def369]
libguestfs-1.55.9/lib/inspect-apps.c:199:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_resource: opened here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  197|       return NULL;
#  198|   
#  199|->   fp = fopen (status, "r");
#  200|     if (fp == NULL) {
#  201|       perrorf (g, "fopen: %s", status);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
libguestfs-1.55.9/lib/inspect-apps.c:199:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  197|       return NULL;
#  198|   
#  199|->   fp = fopen (status, "r");
#  200|     if (fp == NULL) {
#  201|       perrorf (g, "fopen: %s", status);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def371]
libguestfs-1.55.9/lib/inspect-apps.c:206:10: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_resource: opened here
libguestfs-1.55.9/lib/inspect-apps.c:200:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:206:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:206:10: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  204|   
#  205|     /* Allocate 'apps' list. */
#  206|->   apps = safe_malloc (g, sizeof *apps);
#  207|     apps->len = 0;
#  208|     apps->val = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
libguestfs-1.55.9/lib/inspect-apps.c:206:10: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/inspect-apps.c:200:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:206:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:206:10: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  204|   
#  205|     /* Allocate 'apps' list. */
#  206|->   apps = safe_malloc (g, sizeof *apps);
#  207|     apps->len = 0;
#  208|     apps->val = NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def373]
libguestfs-1.55.9/lib/inspect-apps.c:213:10: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_resource: opened here
libguestfs-1.55.9/lib/inspect-apps.c:200:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:206:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:213:10: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  211|      * a blank line.
#  212|      */
#  213|->   while (fgets (line, sizeof line, fp) != NULL) {
#  214|       len = strlen (line);
#  215|       if (len > 0 && line[len-1] == '\n') {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
libguestfs-1.55.9/lib/inspect-apps.c:213:10: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/inspect-apps.c:200:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:206:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:213:10: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  211|      * a blank line.
#  212|      */
#  213|->   while (fgets (line, sizeof line, fp) != NULL) {
#  214|       len = strlen (line);
#  215|       if (len > 0 && line[len-1] == '\n') {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def375]
libguestfs-1.55.9/lib/inspect-apps.c:223:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_resource: opened here
libguestfs-1.55.9/lib/inspect-apps.c:200:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:206:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:213:10: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/inspect-apps.c:214:11: branch_true: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:249:8: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/inspect-apps.c:250:7: branch_true: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:223:9: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  221|        * checking for other headers.
#  222|        */
#  223|->     if (line[0] == ' ' && continuation_field) {
#  224|         /* This is a continuation line, and this is the first line of
#  225|          * the field.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
libguestfs-1.55.9/lib/inspect-apps.c:223:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:196:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:199:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:199:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/inspect-apps.c:200:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:206:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:213:10: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/inspect-apps.c:214:11: branch_true: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:249:8: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/inspect-apps.c:250:7: branch_true: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:223:9: danger: 'fopen(guestfs_int_download_to_tmp(g, "/var/lib/dpkg/status", 0, 50000000), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  221|        * checking for other headers.
#  222|        */
#  223|->     if (line[0] == ' ' && continuation_field) {
#  224|         /* This is a continuation line, and this is the first line of
#  225|          * the field.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def377]
libguestfs-1.55.9/lib/inspect-apps.c:379:10: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(guestfs_int_download_to_tmp(g,  fname, 0, 8192), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:352:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:356:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:360:15: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/inspect-apps.c:361:13: branch_true: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:363:8: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:376:8: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:379:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:379:10: acquire_resource: opened here
libguestfs-1.55.9/lib/inspect-apps.c:379:10: danger: 'fopen(guestfs_int_download_to_tmp(g,  fname, 0, 8192), "r")' leaks here; was opened at [(9)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/8)
#  377|         continue;
#  378|   
#  379|->     fp = fopen (desc_file, "r");
#  380|       if (fp == NULL) {
#  381|         perrorf (g, "fopen: %s", desc_file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
libguestfs-1.55.9/lib/inspect-apps.c:379:10: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(guestfs_int_download_to_tmp(g,  fname, 0, 8192), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:352:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:356:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:360:15: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/inspect-apps.c:361:13: branch_true: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:363:8: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:376:8: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:379:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:379:10: acquire_memory: allocated here
libguestfs-1.55.9/lib/inspect-apps.c:379:10: danger: 'fopen(guestfs_int_download_to_tmp(g,  fname, 0, 8192), "r")' leaks here; was allocated at [(9)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/8)
#  377|         continue;
#  378|   
#  379|->     fp = fopen (desc_file, "r");
#  380|       if (fp == NULL) {
#  381|         perrorf (g, "fopen: %s", desc_file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def379]
libguestfs-1.55.9/lib/inspect-apps.c:483:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:480:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:483:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:483:8: acquire_resource: opened here
libguestfs-1.55.9/lib/inspect-apps.c:483:8: danger: 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
#  481|       return NULL;
#  482|   
#  483|->   fp = fopen (installed, "r");
#  484|     if (fp == NULL) {
#  485|       perrorf (g, "fopen: %s", installed);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
libguestfs-1.55.9/lib/inspect-apps.c:483:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:480:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:483:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:483:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/inspect-apps.c:483:8: danger: 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
#  481|       return NULL;
#  482|   
#  483|->   fp = fopen (installed, "r");
#  484|     if (fp == NULL) {
#  485|       perrorf (g, "fopen: %s", installed);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def381]
libguestfs-1.55.9/lib/inspect-apps.c:490:10: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:480:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:483:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:483:8: acquire_resource: opened here
libguestfs-1.55.9/lib/inspect-apps.c:484:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:490:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:490:10: danger: 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
#  488|   
#  489|     /* Allocate 'apps' list. */
#  490|->   apps = safe_malloc (g, sizeof *apps);
#  491|     apps->len = 0;
#  492|     apps->val = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
libguestfs-1.55.9/lib/inspect-apps.c:490:10: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")'
libguestfs-1.55.9/lib/inspect-apps.c:480:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:483:8: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:483:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/inspect-apps.c:484:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/inspect-apps.c:490:10: branch_false: ...to here
libguestfs-1.55.9/lib/inspect-apps.c:490:10: danger: 'fopen(guestfs_int_download_to_tmp(g, "/lib/apk/db/installed", 0, 50000000), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
#  488|   
#  489|     /* Allocate 'apps' list. */
#  490|->   apps = safe_malloc (g, sizeof *apps);
#  491|     apps->len = 0;
#  492|     apps->val = NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def383]
libguestfs-1.55.9/lib/journal.c:76:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(tmpfile, 524288)'
libguestfs-1.55.9/lib/journal.c:70:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:73:7: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:73:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:76:8: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:76:8: acquire_resource: opened here
libguestfs-1.55.9/lib/journal.c:76:8: danger: 'open(tmpfile, 524288)' leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   74|       goto err;
#   75|   
#   76|->   fd = open (tmpfile, O_RDONLY|O_CLOEXEC);
#   77|     if (fd == -1) {
#   78|       perrorf (g, "open: %s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def384]
libguestfs-1.55.9/lib/journal.c:159:5: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
libguestfs-1.55.9/lib/journal.c:70:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:73:7: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:73:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:76:8: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:76:8: acquire_resource: opened here
libguestfs-1.55.9/lib/journal.c:77:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:83:7: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:83:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:89:10: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:91:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:95:3: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:98:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/journal.c:103:7: branch_false: ...to here
libguestfs-1.55.9/lib/journal.c:103:7: release_resource: first 'close' here
libguestfs-1.55.9/lib/journal.c:103:6: branch_true: following 'true' branch...
libguestfs-1.55.9/lib/journal.c:104:5: branch_true: ...to here
libguestfs-1.55.9/lib/journal.c:158:6: branch_true: following 'true' branch (when 'fd >= 0')...
libguestfs-1.55.9/lib/journal.c:159:5: branch_true: ...to here
libguestfs-1.55.9/lib/journal.c:159:5: danger: second 'close' here; first 'close' was at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  157|     guestfs_free_xattr_list (ret);
#  158|     if (fd >= 0)
#  159|->     close (fd);
#  160|     return NULL;
#  161|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def385]
libguestfs-1.55.9/lib/launch-direct.c:852:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup(sv[1])'
libguestfs-1.55.9/lib/launch-direct.c:473:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:478:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:481:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:483:25: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:504:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:506:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:510:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:512:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:515:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:519:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:531:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:535:24: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:536:6: branch_false: following 'false' branch (when 'daemon_accept_sock != -1')...
libguestfs-1.55.9/lib/launch-direct.c:541:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:545:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:551:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:551:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:556:8: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:570:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:575:35: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:575:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:580:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:580:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:582:37: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:597:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:600:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:606:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:608:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:608:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:614:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:614:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:619:9: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:622:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:624:53: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:642:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:645:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:645:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:648:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:648:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:649:37: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:657:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:660:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:660:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:672:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:689:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:690:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:690:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:696:44: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:710:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:711:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:711:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:712:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:712:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:713:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:713:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:716:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:716:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:720:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:738:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:742:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:742:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:755:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:755:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:756:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:756:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:757:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:757:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:758:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:758:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:759:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:759:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:760:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:760:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:761:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:761:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:762:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:762:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:763:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:763:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:764:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:764:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:767:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:802:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:809:8: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:825:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:828:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:829:6: branch_false: following 'false' branch (when 'r != -1')...
libguestfs-1.55.9/lib/launch-direct.c:838:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:838:6: branch_true: following 'true' branch (when 'r == 0')...
libguestfs-1.55.9/lib/launch-direct.c:839:10: branch_true: ...to here
libguestfs-1.55.9/lib/launch-direct.c:839:8: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:841:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:852:11: acquire_resource: opened here
libguestfs-1.55.9/lib/launch-direct.c:852:10: danger: 'dup(sv[1])' leaks here; was opened at [(96)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/95)
#  850|   
#  851|         /* Stdin. */
#  852|->       if (dup (sv[1]) == -1) {
#  853|         dup_failed:
#  854|           perror ("dup failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def386]
libguestfs-1.55.9/lib/launch-direct.c:858:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup(sv[1])'
libguestfs-1.55.9/lib/launch-direct.c:473:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:478:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:481:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:483:25: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:504:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:506:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:510:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:512:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:515:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:519:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:531:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:535:24: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:536:6: branch_false: following 'false' branch (when 'daemon_accept_sock != -1')...
libguestfs-1.55.9/lib/launch-direct.c:541:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:545:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:551:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:551:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:556:8: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:570:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:575:35: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:575:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:580:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:580:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:582:37: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:597:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:600:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:606:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:608:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:608:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:614:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:614:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:619:9: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:622:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:624:53: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:642:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:645:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:645:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:648:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:648:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:649:37: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:657:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:660:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:660:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:672:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:689:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:690:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:690:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:696:44: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:710:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:711:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:711:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:712:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:712:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:713:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:713:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:716:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:716:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:720:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:738:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:742:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:742:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:755:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:755:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:756:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:756:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:757:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:757:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:758:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:758:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:759:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:759:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:760:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:760:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:761:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:761:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:762:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:762:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:763:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:763:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:764:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:764:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:767:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:802:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:809:8: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:825:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:828:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:829:6: branch_false: following 'false' branch (when 'r != -1')...
libguestfs-1.55.9/lib/launch-direct.c:838:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:838:6: branch_true: following 'true' branch (when 'r == 0')...
libguestfs-1.55.9/lib/launch-direct.c:839:10: branch_true: ...to here
libguestfs-1.55.9/lib/launch-direct.c:839:8: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:841:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:852:10: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:858:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:858:11: acquire_resource: opened here
libguestfs-1.55.9/lib/launch-direct.c:858:10: danger: 'dup(sv[1])' leaks here; was opened at [(98)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/97)
#  856|         }
#  857|         /* Stdout. */
#  858|->       if (dup (sv[1]) == -1)
#  859|           goto dup_failed;
#  860|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def387]
libguestfs-1.55.9/lib/launch-direct.c:866:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup(sv[1])'
libguestfs-1.55.9/lib/launch-direct.c:473:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:478:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:481:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:483:25: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:504:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:506:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:510:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:512:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:515:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:519:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:531:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:535:24: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:536:6: branch_false: following 'false' branch (when 'daemon_accept_sock != -1')...
libguestfs-1.55.9/lib/launch-direct.c:541:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:545:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:551:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:551:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:556:8: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:570:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:575:35: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:575:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:580:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:580:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:582:37: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:597:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:600:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:606:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:608:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:608:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:614:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:614:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:619:9: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:622:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:624:53: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:642:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:645:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:645:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:648:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:648:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:649:37: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:657:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:660:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:660:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:672:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:689:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:690:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:690:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:696:44: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:710:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:711:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:711:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:712:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:712:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:713:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:713:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:716:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:716:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:720:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:738:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:742:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:742:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:755:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:755:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:756:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:756:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:757:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:757:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:758:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:758:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:759:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:759:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:760:3: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:760:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:761:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:761:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:762:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:762:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:763:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:763:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:764:5: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:764:5: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:767:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:802:3: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:809:8: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:825:6: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:828:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:829:6: branch_false: following 'false' branch (when 'r != -1')...
libguestfs-1.55.9/lib/launch-direct.c:838:6: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:838:6: branch_true: following 'true' branch (when 'r == 0')...
libguestfs-1.55.9/lib/launch-direct.c:839:10: branch_true: ...to here
libguestfs-1.55.9/lib/launch-direct.c:839:8: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:841:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:852:10: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:858:11: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:858:10: branch_false: following 'false' branch...
libguestfs-1.55.9/lib/launch-direct.c:865:7: branch_false: ...to here
libguestfs-1.55.9/lib/launch-direct.c:866:11: acquire_resource: opened here
libguestfs-1.55.9/lib/launch-direct.c:866:10: danger: 'dup(sv[1])' leaks here; was opened at [(100)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/99)
#  864|          */
#  865|         close (2);
#  866|->       if (dup (sv[1]) == -1)
#  867|           goto dup_failed;
#  868|   

Error: CPPCHECK_WARNING (CWE-457): [#def388]
libguestfs-1.55.9/lib/libvirt-auth.c:109: warning[uninitvar]: Uninitialized variable: credtypes
#  107|   
#  108|     g->nr_supported_credentials = ncredtypes;
#  109|->   memcpy (g->supported_credentials, credtypes, sizeof g->supported_credentials);
#  110|   
#  111|     return 0;

Error: CPPCHECK_WARNING (CWE-404): [#def389]
libguestfs-1.55.9/lib/qemu.c:395: error[resourceLeak]: Resource leak: fp
#  393|                 &data->prev_size,
#  394|                 &data->prev_mtime) != 3)
#  395|->     return 0;
#  396|   
#  397|     return 1;

Error: CPPCHECK_WARNING (CWE-404): [#def390]
libguestfs-1.55.9/lib/qemu.c:397: error[resourceLeak]: Resource leak: fp
#  395|       return 0;
#  396|   
#  397|->   return 1;
#  398|   }
#  399|   

Error: CPPCHECK_WARNING (CWE-404): [#def391]
libguestfs-1.55.9/lib/qemu.c:418: error[resourceLeak]: Resource leak: fp
#  416|                  g->hv) == -1) {
#  417|       perrorf (g, "%s: write", filename);
#  418|->     return -1;
#  419|     }
#  420|   

Error: CPPCHECK_WARNING (CWE-404): [#def392]
libguestfs-1.55.9/lib/qemu.c:421: error[resourceLeak]: Resource leak: fp
#  419|     }
#  420|   
#  421|->   return 0;
#  422|   }
#  423|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def393]
libguestfs-1.55.9/lib/tsk.c:84:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(tmpfile, "r")'
libguestfs-1.55.9/lib/tsk.c:84:8: acquire_resource: opened here
libguestfs-1.55.9/lib/tsk.c:84:8: danger: 'fopen(tmpfile, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   82|     struct guestfs_tsk_dirent_list *dirents = NULL;
#   83|   
#   84|->   fp = fopen (tmpfile, "r");
#   85|     if (fp == NULL) {
#   86|       perrorf (g, "fopen: %s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
libguestfs-1.55.9/lib/tsk.c:84:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(tmpfile, "r")'
libguestfs-1.55.9/lib/tsk.c:84:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/tsk.c:84:8: danger: 'fopen(tmpfile, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   82|     struct guestfs_tsk_dirent_list *dirents = NULL;
#   83|   
#   84|->   fp = fopen (tmpfile, "r");
#   85|     if (fp == NULL) {
#   86|       perrorf (g, "fopen: %s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def395]
libguestfs-1.55.9/lib/umask.c:86:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/proc/self/status", "r")'
libguestfs-1.55.9/lib/umask.c:86:8: acquire_resource: opened here
libguestfs-1.55.9/lib/umask.c:86:8: danger: 'fopen("/proc/self/status", "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   84|     bool found = false;
#   85|   
#   86|->   fp = fopen ("/proc/self/status", "r");
#   87|     if (fp == NULL) {
#   88|       if (errno == ENOENT || errno == ENOTDIR)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
libguestfs-1.55.9/lib/umask.c:86:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/proc/self/status", "r")'
libguestfs-1.55.9/lib/umask.c:86:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/umask.c:86:8: danger: 'fopen("/proc/self/status", "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   84|     bool found = false;
#   85|   
#   86|->   fp = fopen ("/proc/self/status", "r");
#   87|     if (fp == NULL) {
#   88|       if (errno == ENOENT || errno == ENOTDIR)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def397]
libguestfs-1.55.9/lib/yara.c:67:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(tmpfile, "r")'
libguestfs-1.55.9/lib/yara.c:67:8: acquire_resource: opened here
libguestfs-1.55.9/lib/yara.c:67:8: danger: 'fopen(tmpfile, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   65|     struct guestfs_yara_detection_list *detections = NULL;
#   66|   
#   67|->   fp = fopen (tmpfile, "r");
#   68|     if (fp == NULL) {
#   69|       perrorf (g, "fopen: %s", tmpfile);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
libguestfs-1.55.9/lib/yara.c:67:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(tmpfile, "r")'
libguestfs-1.55.9/lib/yara.c:67:8: acquire_memory: allocated here
libguestfs-1.55.9/lib/yara.c:67:8: danger: 'fopen(tmpfile, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   65|     struct guestfs_yara_detection_list *detections = NULL;
#   66|   
#   67|->   fp = fopen (tmpfile, "r");
#   68|     if (fp == NULL) {
#   69|       perrorf (g, "fopen: %s", tmpfile);

Error: CPPCHECK_WARNING (CWE-401): [#def399]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1392: error[memleak]: Memory leak: optargs_s.cachemode
# 1390|   
# 1391|     rv = Val_int (r);
# 1392|->   CAMLreturn (rv);
# 1393|   }
# 1394|   

Error: CPPCHECK_WARNING (CWE-401): [#def400]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1392: error[memleak]: Memory leak: optargs_s.discard
# 1390|   
# 1391|     rv = Val_int (r);
# 1392|->   CAMLreturn (rv);
# 1393|   }
# 1394|   

Error: CPPCHECK_WARNING (CWE-401): [#def401]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1392: error[memleak]: Memory leak: optargs_s.iface
# 1390|   
# 1391|     rv = Val_int (r);
# 1392|->   CAMLreturn (rv);
# 1393|   }
# 1394|   

Error: CPPCHECK_WARNING (CWE-401): [#def402]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1392: error[memleak]: Memory leak: optargs_s.libvirturi
# 1390|   
# 1391|     rv = Val_int (r);
# 1392|->   CAMLreturn (rv);
# 1393|   }
# 1394|   

Error: CPPCHECK_WARNING (CWE-401): [#def403]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1392: error[memleak]: Memory leak: optargs_s.readonlydisk
# 1390|   
# 1391|     rv = Val_int (r);
# 1392|->   CAMLreturn (rv);
# 1393|   }
# 1394|   

Error: CPPCHECK_WARNING (CWE-401): [#def404]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.cachemode
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def405]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.discard
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def406]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.format
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def407]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.iface
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def408]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.label
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def409]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.name
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def410]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.protocol
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def411]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.secret
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def412]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1517: error[memleak]: Memory leak: optargs_s.username
# 1515|   
# 1516|     rv = Val_unit;
# 1517|->   CAMLreturn (rv);
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-401): [#def413]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1640: error[memleak]: Memory leak: optargs_s.label
# 1638|   
# 1639|     rv = Val_unit;
# 1640|->   CAMLreturn (rv);
# 1641|   }
# 1642|   

Error: CPPCHECK_WARNING (CWE-401): [#def414]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1640: error[memleak]: Memory leak: optargs_s.name
# 1638|   
# 1639|     rv = Val_unit;
# 1640|->   CAMLreturn (rv);
# 1641|   }
# 1642|   

Error: CPPCHECK_WARNING (CWE-401): [#def415]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1748: error[memleak]: Memory leak: optargs_s.cachemode
# 1746|   
# 1747|     rv = Val_int (r);
# 1748|->   CAMLreturn (rv);
# 1749|   }
# 1750|   

Error: CPPCHECK_WARNING (CWE-401): [#def416]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1748: error[memleak]: Memory leak: optargs_s.discard
# 1746|   
# 1747|     rv = Val_int (r);
# 1748|->   CAMLreturn (rv);
# 1749|   }
# 1750|   

Error: CPPCHECK_WARNING (CWE-401): [#def417]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1748: error[memleak]: Memory leak: optargs_s.iface
# 1746|   
# 1747|     rv = Val_int (r);
# 1748|->   CAMLreturn (rv);
# 1749|   }
# 1750|   

Error: CPPCHECK_WARNING (CWE-401): [#def418]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:1748: error[memleak]: Memory leak: optargs_s.readonlydisk
# 1746|   
# 1747|     rv = Val_int (r);
# 1748|->   CAMLreturn (rv);
# 1749|   }
# 1750|   

Error: CPPCHECK_WARNING (CWE-401): [#def419]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:3253: error[memleak]: Memory leak: optargs_s.compress
# 3251|   
# 3252|     rv = Val_unit;
# 3253|->   CAMLreturn (rv);
# 3254|   }
# 3255|   

Error: CPPCHECK_WARNING (CWE-401): [#def420]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:4052: error[memleak]: Memory leak: optargs_s.qgroupid
# 4050|   
# 4051|     rv = Val_unit;
# 4052|->   CAMLreturn (rv);
# 4053|   }
# 4054|   

Error: CPPCHECK_WARNING (CWE-401): [#def421]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:4272: error[memleak]: Memory leak: optargs_s.qgroupid
# 4270|   
# 4271|     rv = Val_unit;
# 4272|->   CAMLreturn (rv);
# 4273|   }
# 4274|   

Error: CPPCHECK_WARNING (CWE-401): [#def422]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:5672: error[memleak]: Memory leak: optargs_s.format
# 5670|   
# 5671|     rv = Val_unit;
# 5672|->   CAMLreturn (rv);
# 5673|   }
# 5674|   

Error: CPPCHECK_WARNING (CWE-401): [#def423]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:5767: error[memleak]: Memory leak: optargs_s.cipher
# 5765|   
# 5766|     rv = Val_unit;
# 5767|->   CAMLreturn (rv);
# 5768|   }
# 5769|   

Error: CPPCHECK_WARNING (CWE-401): [#def424]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:5767: error[memleak]: Memory leak: optargs_s.crypttype
# 5765|   
# 5766|     rv = Val_unit;
# 5767|->   CAMLreturn (rv);
# 5768|   }
# 5769|   

Error: CPPCHECK_WARNING (CWE-401): [#def425]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:6114: error[memleak]: Memory leak: optargs_s.backingfile
# 6112|   
# 6113|     rv = Val_unit;
# 6114|->   CAMLreturn (rv);
# 6115|   }
# 6116|   

Error: CPPCHECK_WARNING (CWE-401): [#def426]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:6114: error[memleak]: Memory leak: optargs_s.backingformat
# 6112|   
# 6113|     rv = Val_unit;
# 6114|->   CAMLreturn (rv);
# 6115|   }
# 6116|   

Error: CPPCHECK_WARNING (CWE-401): [#def427]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:6114: error[memleak]: Memory leak: optargs_s.compat
# 6112|   
# 6113|     rv = Val_unit;
# 6114|->   CAMLreturn (rv);
# 6115|   }
# 6116|   

Error: CPPCHECK_WARNING (CWE-401): [#def428]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:6114: error[memleak]: Memory leak: optargs_s.preallocation
# 6112|   
# 6113|     rv = Val_unit;
# 6114|->   CAMLreturn (rv);
# 6115|   }
# 6116|   

Error: CPPCHECK_WARNING (CWE-401): [#def429]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:10904: error[memleak]: Memory leak: optargs_s.ostring
#10902|   
#10903|     rv = Val_unit;
#10904|->   CAMLreturn (rv);
#10905|   }
#10906|   

Error: CPPCHECK_WARNING (CWE-401): [#def430]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:14990: error[memleak]: Memory leak: optargs_s.level
#14988|   
#14989|     rv = Val_unit;
#14990|->   CAMLreturn (rv);
#14991|   }
#14992|   

Error: CPPCHECK_WARNING (CWE-401): [#def431]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15451: error[memleak]: Memory leak: optargs_s.creatoros
#15449|   
#15450|     rv = Val_unit;
#15451|->   CAMLreturn (rv);
#15452|   }
#15453|   

Error: CPPCHECK_WARNING (CWE-401): [#def432]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15451: error[memleak]: Memory leak: optargs_s.fstype
#15449|   
#15450|     rv = Val_unit;
#15451|->   CAMLreturn (rv);
#15452|   }
#15453|   

Error: CPPCHECK_WARNING (CWE-401): [#def433]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15451: error[memleak]: Memory leak: optargs_s.journaldevice
#15449|   
#15450|     rv = Val_unit;
#15451|->   CAMLreturn (rv);
#15452|   }
#15453|   

Error: CPPCHECK_WARNING (CWE-401): [#def434]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15451: error[memleak]: Memory leak: optargs_s.label
#15449|   
#15450|     rv = Val_unit;
#15451|->   CAMLreturn (rv);
#15452|   }
#15453|   

Error: CPPCHECK_WARNING (CWE-401): [#def435]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15451: error[memleak]: Memory leak: optargs_s.lastmounteddir
#15449|   
#15450|     rv = Val_unit;
#15451|->   CAMLreturn (rv);
#15452|   }
#15453|   

Error: CPPCHECK_WARNING (CWE-401): [#def436]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15451: error[memleak]: Memory leak: optargs_s.usagetype
#15449|   
#15450|     rv = Val_unit;
#15451|->   CAMLreturn (rv);
#15452|   }
#15453|   

Error: CPPCHECK_WARNING (CWE-401): [#def437]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15451: error[memleak]: Memory leak: optargs_s.uuid
#15449|   
#15450|     rv = Val_unit;
#15451|->   CAMLreturn (rv);
#15452|   }
#15453|   

Error: CPPCHECK_WARNING (CWE-401): [#def438]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15796: error[memleak]: Memory leak: optargs_s.features
#15794|   
#15795|     rv = Val_unit;
#15796|->   CAMLreturn (rv);
#15797|   }
#15798|   

Error: CPPCHECK_WARNING (CWE-401): [#def439]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15796: error[memleak]: Memory leak: optargs_s.label
#15794|   
#15795|     rv = Val_unit;
#15796|->   CAMLreturn (rv);
#15797|   }
#15798|   

Error: CPPCHECK_WARNING (CWE-401): [#def440]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15918: error[memleak]: Memory leak: optargs_s.datatype
#15916|   
#15917|     rv = Val_unit;
#15918|->   CAMLreturn (rv);
#15919|   }
#15920|   

Error: CPPCHECK_WARNING (CWE-401): [#def441]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15918: error[memleak]: Memory leak: optargs_s.label
#15916|   
#15917|     rv = Val_unit;
#15918|->   CAMLreturn (rv);
#15919|   }
#15920|   

Error: CPPCHECK_WARNING (CWE-401): [#def442]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:15918: error[memleak]: Memory leak: optargs_s.metadata
#15916|   
#15917|     rv = Val_unit;
#15918|->   CAMLreturn (rv);
#15919|   }
#15920|   

Error: CPPCHECK_WARNING (CWE-401): [#def443]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:16153: error[memleak]: Memory leak: optargs_s.compress
#16151|   
#16152|     rv = Val_unit;
#16153|->   CAMLreturn (rv);
#16154|   }
#16155|   

Error: CPPCHECK_WARNING (CWE-401): [#def444]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:16202: error[memleak]: Memory leak: optargs_s.label
#16200|   
#16201|     rv = Val_unit;
#16202|->   CAMLreturn (rv);
#16203|   }
#16204|   

Error: CPPCHECK_WARNING (CWE-401): [#def445]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:16202: error[memleak]: Memory leak: optargs_s.uuid
#16200|   
#16201|     rv = Val_unit;
#16202|->   CAMLreturn (rv);
#16203|   }
#16204|   

Error: CPPCHECK_WARNING (CWE-401): [#def446]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:16352: error[memleak]: Memory leak: optargs_s.suffix
#16350|     rv = caml_copy_string (r);
#16351|     free (r);
#16352|->   CAMLreturn (rv);
#16353|   }
#16354|   

Error: CPPCHECK_WARNING (CWE-401): [#def447]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:16468: error[memleak]: Memory leak: optargs_s.options
#16466|   
#16467|     rv = Val_unit;
#16468|->   CAMLreturn (rv);
#16469|   }
#16470|   

Error: CPPCHECK_WARNING (CWE-401): [#def448]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:16523: error[memleak]: Memory leak: optargs_s.options
#16521|   
#16522|     rv = Val_unit;
#16523|->   CAMLreturn (rv);
#16524|   }
#16525|   

Error: CPPCHECK_WARNING (CWE-401): [#def449]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:21546: error[memleak]: Memory leak: optargs_s.directory
#21544|   
#21545|     rv = Val_unit;
#21546|->   CAMLreturn (rv);
#21547|   }
#21548|   

Error: CPPCHECK_WARNING (CWE-401): [#def450]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:21678: error[memleak]: Memory leak: optargs_s.compress
#21676|   
#21677|     rv = Val_unit;
#21678|->   CAMLreturn (rv);
#21679|   }
#21680|   

Error: CPPCHECK_WARNING (CWE-401): [#def451]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:21756: error[memleak]: Memory leak: optargs_s.compress
#21754|   
#21755|     rv = Val_unit;
#21756|->   CAMLreturn (rv);
#21757|   }
#21758|   

Error: CPPCHECK_WARNING (CWE-401): [#def452]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:22022: error[memleak]: Memory leak: optargs_s.errorbehavior
#22020|   
#22021|     rv = Val_unit;
#22022|->   CAMLreturn (rv);
#22023|   }
#22024|   

Error: CPPCHECK_WARNING (CWE-401): [#def453]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:22022: error[memleak]: Memory leak: optargs_s.lastmounteddirectory
#22020|   
#22021|     rv = Val_unit;
#22022|->   CAMLreturn (rv);
#22023|   }
#22024|   

Error: CPPCHECK_WARNING (CWE-401): [#def454]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:23426: error[memleak]: Memory leak: optargs_s.label
#23424|   
#23425|     rv = Val_unit;
#23426|->   CAMLreturn (rv);
#23427|   }
#23428|   

Error: CPPCHECK_WARNING (CWE-401): [#def455]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:23426: error[memleak]: Memory leak: optargs_s.uuid
#23424|   
#23425|     rv = Val_unit;
#23426|->   CAMLreturn (rv);
#23427|   }
#23428|   

Error: CPPCHECK_WARNING (CWE-401): [#def456]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:23629: error[memleak]: Memory leak: optargs_s.logdev
#23627|   
#23628|     rv = Val_int (r);
#23629|->   CAMLreturn (rv);
#23630|   }
#23631|   

Error: CPPCHECK_WARNING (CWE-401): [#def457]
libguestfs-1.55.9/ocaml/guestfs-c-actions.c:23629: error[memleak]: Memory leak: optargs_s.rtdev
#23627|   
#23628|     rv = Val_int (r);
#23629|->   CAMLreturn (rv);
#23630|   }
#23631|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
libguestfs-1.55.9/ocaml/guestfs-c.c:304:9: warning[-Wanalyzer-malloc-leak]: leak of ‘get_all_event_callbacks(g, & len)’
libguestfs-1.55.9/ocaml/guestfs-c.c:146:1: enter_function: entry to ‘guestfs_int_ocaml_close’
libguestfs-1.55.9/ocaml/guestfs-c.c:148:3: branch_false: following ‘false’ branch...
libguestfs-1.55.9/ocaml/guestfs-c.c:148:3: branch_false: ...to here
libguestfs-1.55.9/ocaml/guestfs-c.c:151:6: branch_true: following ‘true’ branch (when ‘g’ is non-NULL)...
libguestfs-1.55.9/ocaml/guestfs-c.c:157:21: branch_true: ...to here
libguestfs-1.55.9/ocaml/guestfs-c.c:157:21: call_function: calling ‘get_all_event_callbacks’ from ‘guestfs_int_ocaml_close’
libguestfs-1.55.9/ocaml/guestfs-c.c:157:21: return_function: returning to ‘guestfs_int_ocaml_close’ from ‘get_all_event_callbacks’
libguestfs-1.55.9/ocaml/guestfs-c.c:171:8: branch_true: following ‘true’ branch...
libguestfs-1.55.9/ocaml/guestfs-c.c:171:18: branch_true: ...to here
libguestfs-1.55.9/ocaml/guestfs-c.c:304:9: danger: ‘get_all_event_callbacks(g, & len)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#  302|     root = guestfs_first_private (g, &key);
#  303|     while (root != NULL) {
#  304|->     if (strncmp (key, "_ocaml_event_", strlen ("_ocaml_event_")) == 0)
#  305|         (*len_rtn)++;
#  306|       root = guestfs_next_private (g, &key);

Error: COMPILER_WARNING (CWE-569): [#def459]
libguestfs-1.55.9/php/extension/guestfs_php.c: scope_hint: In function 'get_stringlist'
libguestfs-1.55.9/php/extension/guestfs_php.c:3741:8: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 3741 |        d = zend_hash_get_current_data_ex (a, &p);
#      |        ^
# 3739|     for (zend_hash_internal_pointer_reset_ex (a, &p);
# 3740|   #if ZEND_MODULE_API_NO >= 20151012
# 3741|->        d = zend_hash_get_current_data_ex (a, &p);
# 3742|   #else
# 3743|          zend_hash_get_current_data_ex (a, (void **) &d, &p) == SUCCESS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
libguestfs-1.55.9/python/handle.c:260:9: warning[-Wanalyzer-malloc-leak]: leak of 'get_all_event_callbacks(get_handle(py_g), &len)'
libguestfs-1.55.9/python/handle.c:63:1: enter_function: entry to 'guestfs_int_py_close'
libguestfs-1.55.9/python/handle.c:70:6: branch_false: following 'false' branch...
libguestfs-1.55.9/python/handle.c:72:7: branch_false: ...to here
libguestfs-1.55.9/python/handle.c:72:7: call_function: calling 'get_handle' from 'guestfs_int_py_close'
libguestfs-1.55.9/python/handle.c:72:7: return_function: returning to 'guestfs_int_py_close' from 'get_handle'
libguestfs-1.55.9/python/handle.c:83:15: call_function: calling 'get_all_event_callbacks' from 'guestfs_int_py_close'
libguestfs-1.55.9/python/handle.c:83:15: return_function: returning to 'guestfs_int_py_close' from 'get_all_event_callbacks'
libguestfs-1.55.9/python/handle.c:84:7: branch_false: following 'false' branch...
libguestfs-1.55.9/python/handle.c:87:3: branch_false: ...to here
libguestfs-1.55.9/python/handle.c:91:6: branch_true: following 'true' branch...
libguestfs-1.55.9/python/handle.c:91:7: branch_true: ...to here
libguestfs-1.55.9/python/handle.c:260:9: danger: 'get_all_event_callbacks(get_handle(py_g), &len)' leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  258|     cb = guestfs_first_private (g, &key);
#  259|     while (cb != NULL) {
#  260|->     if (strncmp (key, "_python_event_", strlen ("_python_event_")) == 0)
#  261|         (*len_rtn)++;
#  262|       cb = guestfs_next_private (g, &key);

Error: CPPCHECK_WARNING (CWE-476): [#def461]
libguestfs-1.55.9/rescue/rescue.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mp
#  256|           memsize = m;
#  257|         else {
#  258|->         OPTION_m;
#  259|         }
#  260|         break;

Error: CPPCHECK_WARNING (CWE-476): [#def462]
libguestfs-1.55.9/rescue/rescue.c:300: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  298|           if (!drv)
#  299|             error (EXIT_FAILURE, errno, "calloc");
#  300|->         drv->type = drv_a;
#  301|           drv->a.filename = strdup (argv[optind]);
#  302|           if (!drv->a.filename)

Error: CPPCHECK_WARNING (CWE-476): [#def463]
libguestfs-1.55.9/rescue/rescue.c:301: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  299|             error (EXIT_FAILURE, errno, "calloc");
#  300|           drv->type = drv_a;
#  301|->         drv->a.filename = strdup (argv[optind]);
#  302|           if (!drv->a.filename)
#  303|             error (EXIT_FAILURE, errno, "strdup");

Error: CPPCHECK_WARNING (CWE-476): [#def464]
libguestfs-1.55.9/rescue/rescue.c:302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  300|           drv->type = drv_a;
#  301|           drv->a.filename = strdup (argv[optind]);
#  302|->         if (!drv->a.filename)
#  303|             error (EXIT_FAILURE, errno, "strdup");
#  304|           drv->next = drvs;

Error: CPPCHECK_WARNING (CWE-476): [#def465]
libguestfs-1.55.9/rescue/rescue.c:310: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  308|           if (!drv)
#  309|             error (EXIT_FAILURE, errno, "calloc");
#  310|->         drv->type = drv_d;
#  311|           drv->d.guest = argv[optind];
#  312|           drv->next = drvs;

Error: CPPCHECK_WARNING (CWE-476): [#def466]
libguestfs-1.55.9/rescue/rescue.c:311: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  309|             error (EXIT_FAILURE, errno, "calloc");
#  310|           drv->type = drv_d;
#  311|->         drv->d.guest = argv[optind];
#  312|           drv->next = drvs;
#  313|           drvs = drv;

Error: CPPCHECK_WARNING (CWE-476): [#def467]
libguestfs-1.55.9/rescue/rescue.c:312: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  310|           drv->type = drv_d;
#  311|           drv->d.guest = argv[optind];
#  312|->         drv->next = drvs;
#  313|           drvs = drv;
#  314|         }

Error: CPPCHECK_WARNING (CWE-476): [#def468]
libguestfs-1.55.9/rescue/rescue.c:687: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  685|     if (!drv)
#  686|       error (EXIT_FAILURE, errno, "calloc");
#  687|->   drv->type = drv_scratch;
#  688|     drv->scratch.size = INT64_C (10737418240);
#  689|     drv->next = *drvs;

Error: CPPCHECK_WARNING (CWE-476): [#def469]
libguestfs-1.55.9/rescue/rescue.c:688: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  686|       error (EXIT_FAILURE, errno, "calloc");
#  687|     drv->type = drv_scratch;
#  688|->   drv->scratch.size = INT64_C (10737418240);
#  689|     drv->next = *drvs;
#  690|     *drvs = drv;

Error: CPPCHECK_WARNING (CWE-476): [#def470]
libguestfs-1.55.9/rescue/rescue.c:689: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
#  687|     drv->type = drv_scratch;
#  688|     drv->scratch.size = INT64_C (10737418240);
#  689|->   drv->next = *drvs;
#  690|     *drvs = drv;
#  691|   }

Error: COMPILER_WARNING (CWE-477): [#def471]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_acl_delete_def_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:60:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   60 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:37: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   58|   {
#   59|     guestfs_h *g;
#   60|->   Data_Get_Struct (gv, guestfs_h, g);
#   61|     if (!g)
#   62|       rb_raise (rb_eArgError, "%s: used handle after closing it", "acl_delete_def_file");

Error: COMPILER_WARNING (CWE-477): [#def472]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:60:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   58|   {
#   59|     guestfs_h *g;
#   60|->   Data_Get_Struct (gv, guestfs_h, g);
#   61|     if (!g)
#   62|       rb_raise (rb_eArgError, "%s: used handle after closing it", "acl_delete_def_file");

Error: COMPILER_WARNING (CWE-477): [#def473]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_add_domain’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:177:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  177 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  175|   {
#  176|     guestfs_h *g;
#  177|->   Data_Get_Struct (gv, guestfs_h, g);
#  178|     if (!g)
#  179|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_domain");

Error: COMPILER_WARNING (CWE-477): [#def474]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:177:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  175|   {
#  176|     guestfs_h *g;
#  177|->   Data_Get_Struct (gv, guestfs_h, g);
#  178|     if (!g)
#  179|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_domain");

Error: COMPILER_WARNING (CWE-477): [#def475]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_add_drive_ro’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  270 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  268|   {
#  269|     guestfs_h *g;
#  270|->   Data_Get_Struct (gv, guestfs_h, g);
#  271|     if (!g)
#  272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive_ro");

Error: COMPILER_WARNING (CWE-477): [#def476]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  268|   {
#  269|     guestfs_h *g;
#  270|->   Data_Get_Struct (gv, guestfs_h, g);
#  271|     if (!g)
#  272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive_ro");

Error: COMPILER_WARNING (CWE-477): [#def477]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_add_drive_ro_with_if’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:308:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  308 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  306|   {
#  307|     guestfs_h *g;
#  308|->   Data_Get_Struct (gv, guestfs_h, g);
#  309|     if (!g)
#  310|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive_ro_with_if");

Error: COMPILER_WARNING (CWE-477): [#def478]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:308:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  306|   {
#  307|     guestfs_h *g;
#  308|->   Data_Get_Struct (gv, guestfs_h, g);
#  309|     if (!g)
#  310|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive_ro_with_if");

Error: COMPILER_WARNING (CWE-477): [#def479]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_aug_ls’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:346:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  346 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  344|   {
#  345|     guestfs_h *g;
#  346|->   Data_Get_Struct (gv, guestfs_h, g);
#  347|     if (!g)
#  348|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_ls");

Error: COMPILER_WARNING (CWE-477): [#def480]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:346:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  344|   {
#  345|     guestfs_h *g;
#  346|->   Data_Get_Struct (gv, guestfs_h, g);
#  347|     if (!g)
#  348|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_ls");

Error: COMPILER_WARNING (CWE-477): [#def481]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_aug_match’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:389:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  389 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  387|   {
#  388|     guestfs_h *g;
#  389|->   Data_Get_Struct (gv, guestfs_h, g);
#  390|     if (!g)
#  391|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_match");

Error: COMPILER_WARNING (CWE-477): [#def482]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:389:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  387|   {
#  388|     guestfs_h *g;
#  389|->   Data_Get_Struct (gv, guestfs_h, g);
#  390|     if (!g)
#  391|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_match");

Error: COMPILER_WARNING (CWE-477): [#def483]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_aug_transform’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:438:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  438 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  436|   {
#  437|     guestfs_h *g;
#  438|->   Data_Get_Struct (gv, guestfs_h, g);
#  439|     if (!g)
#  440|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_transform");

Error: COMPILER_WARNING (CWE-477): [#def484]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:438:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  436|   {
#  437|     guestfs_h *g;
#  438|->   Data_Get_Struct (gv, guestfs_h, g);
#  439|     if (!g)
#  440|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_transform");

Error: COMPILER_WARNING (CWE-477): [#def485]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_qgroup_create’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:492:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  492 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  490|   {
#  491|     guestfs_h *g;
#  492|->   Data_Get_Struct (gv, guestfs_h, g);
#  493|     if (!g)
#  494|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_create");

Error: COMPILER_WARNING (CWE-477): [#def486]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:492:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  490|   {
#  491|     guestfs_h *g;
#  492|->   Data_Get_Struct (gv, guestfs_h, g);
#  493|     if (!g)
#  494|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_create");

Error: COMPILER_WARNING (CWE-477): [#def487]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_rescue_super_recover’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:528:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  528 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  526|   {
#  527|     guestfs_h *g;
#  528|->   Data_Get_Struct (gv, guestfs_h, g);
#  529|     if (!g)
#  530|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_rescue_super_recover");

Error: COMPILER_WARNING (CWE-477): [#def488]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:528:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  526|   {
#  527|     guestfs_h *g;
#  528|->   Data_Get_Struct (gv, guestfs_h, g);
#  529|     if (!g)
#  530|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_rescue_super_recover");

Error: COMPILER_WARNING (CWE-477): [#def489]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_btrfstune_enable_extended_inode_refs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:563:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  563 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  561|   {
#  562|     guestfs_h *g;
#  563|->   Data_Get_Struct (gv, guestfs_h, g);
#  564|     if (!g)
#  565|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfstune_enable_extended_inode_refs");

Error: COMPILER_WARNING (CWE-477): [#def490]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:563:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  561|   {
#  562|     guestfs_h *g;
#  563|->   Data_Get_Struct (gv, guestfs_h, g);
#  564|     if (!g)
#  565|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfstune_enable_extended_inode_refs");

Error: COMPILER_WARNING (CWE-477): [#def491]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_clevis_luks_unlock’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:631:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  631 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  629|   {
#  630|     guestfs_h *g;
#  631|->   Data_Get_Struct (gv, guestfs_h, g);
#  632|     if (!g)
#  633|       rb_raise (rb_eArgError, "%s: used handle after closing it", "clevis_luks_unlock");

Error: COMPILER_WARNING (CWE-477): [#def492]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:631:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  629|   {
#  630|     guestfs_h *g;
#  631|->   Data_Get_Struct (gv, guestfs_h, g);
#  632|     if (!g)
#  633|       rb_raise (rb_eArgError, "%s: used handle after closing it", "clevis_luks_unlock");

Error: COMPILER_WARNING (CWE-477): [#def493]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_command_lines’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:672:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  672 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  670|   {
#  671|     guestfs_h *g;
#  672|->   Data_Get_Struct (gv, guestfs_h, g);
#  673|     if (!g)
#  674|       rb_raise (rb_eArgError, "%s: used handle after closing it", "command_lines");

Error: COMPILER_WARNING (CWE-477): [#def494]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:672:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  670|   {
#  671|     guestfs_h *g;
#  672|->   Data_Get_Struct (gv, guestfs_h, g);
#  673|     if (!g)
#  674|       rb_raise (rb_eArgError, "%s: used handle after closing it", "command_lines");

Error: COMPILER_WARNING (CWE-477): [#def495]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_compress_device_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:733:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  733 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  731|   {
#  732|     guestfs_h *g;
#  733|->   Data_Get_Struct (gv, guestfs_h, g);
#  734|     if (!g)
#  735|       rb_raise (rb_eArgError, "%s: used handle after closing it", "compress_device_out");

Error: COMPILER_WARNING (CWE-477): [#def496]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:733:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  731|   {
#  732|     guestfs_h *g;
#  733|->   Data_Get_Struct (gv, guestfs_h, g);
#  734|     if (!g)
#  735|       rb_raise (rb_eArgError, "%s: used handle after closing it", "compress_device_out");

Error: COMPILER_WARNING (CWE-477): [#def497]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_compress_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:802:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  802 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  800|   {
#  801|     guestfs_h *g;
#  802|->   Data_Get_Struct (gv, guestfs_h, g);
#  803|     if (!g)
#  804|       rb_raise (rb_eArgError, "%s: used handle after closing it", "compress_out");

Error: COMPILER_WARNING (CWE-477): [#def498]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:802:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  800|   {
#  801|     guestfs_h *g;
#  802|->   Data_Get_Struct (gv, guestfs_h, g);
#  803|     if (!g)
#  804|       rb_raise (rb_eArgError, "%s: used handle after closing it", "compress_out");

Error: COMPILER_WARNING (CWE-477): [#def499]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_copy_in’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:859:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  859 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  857|   {
#  858|     guestfs_h *g;
#  859|->   Data_Get_Struct (gv, guestfs_h, g);
#  860|     if (!g)
#  861|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_in");

Error: COMPILER_WARNING (CWE-477): [#def500]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:859:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  857|   {
#  858|     guestfs_h *g;
#  859|->   Data_Get_Struct (gv, guestfs_h, g);
#  860|     if (!g)
#  861|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_in");

Error: COMPILER_WARNING (CWE-477): [#def501]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_cp’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:894:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  894 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  892|   {
#  893|     guestfs_h *g;
#  894|->   Data_Get_Struct (gv, guestfs_h, g);
#  895|     if (!g)
#  896|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cp");

Error: COMPILER_WARNING (CWE-477): [#def502]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:894:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  892|   {
#  893|     guestfs_h *g;
#  894|->   Data_Get_Struct (gv, guestfs_h, g);
#  895|     if (!g)
#  896|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cp");

Error: COMPILER_WARNING (CWE-477): [#def503]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_cryptsetup_close’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:933:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  933 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  931|   {
#  932|     guestfs_h *g;
#  933|->   Data_Get_Struct (gv, guestfs_h, g);
#  934|     if (!g)
#  935|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cryptsetup_close");

Error: COMPILER_WARNING (CWE-477): [#def504]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:933:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  931|   {
#  932|     guestfs_h *g;
#  933|->   Data_Get_Struct (gv, guestfs_h, g);
#  934|     if (!g)
#  935|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cryptsetup_close");

Error: COMPILER_WARNING (CWE-477): [#def505]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_device_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:973:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  973 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  971|   {
#  972|     guestfs_h *g;
#  973|->   Data_Get_Struct (gv, guestfs_h, g);
#  974|     if (!g)
#  975|       rb_raise (rb_eArgError, "%s: used handle after closing it", "device_name");

Error: COMPILER_WARNING (CWE-477): [#def506]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:973:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  971|   {
#  972|     guestfs_h *g;
#  973|->   Data_Get_Struct (gv, guestfs_h, g);
#  974|     if (!g)
#  975|       rb_raise (rb_eArgError, "%s: used handle after closing it", "device_name");

Error: COMPILER_WARNING (CWE-477): [#def507]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_df_h’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1013:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1013 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1011|   {
# 1012|     guestfs_h *g;
# 1013|->   Data_Get_Struct (gv, guestfs_h, g);
# 1014|     if (!g)
# 1015|       rb_raise (rb_eArgError, "%s: used handle after closing it", "df_h");

Error: COMPILER_WARNING (CWE-477): [#def508]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1013:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1011|   {
# 1012|     guestfs_h *g;
# 1013|->   Data_Get_Struct (gv, guestfs_h, g);
# 1014|     if (!g)
# 1015|       rb_raise (rb_eArgError, "%s: used handle after closing it", "df_h");

Error: COMPILER_WARNING (CWE-477): [#def509]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_disk_has_backing_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1051:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1051 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1049|   {
# 1050|     guestfs_h *g;
# 1051|->   Data_Get_Struct (gv, guestfs_h, g);
# 1052|     if (!g)
# 1053|       rb_raise (rb_eArgError, "%s: used handle after closing it", "disk_has_backing_file");

Error: COMPILER_WARNING (CWE-477): [#def510]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1051:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1049|   {
# 1050|     guestfs_h *g;
# 1051|->   Data_Get_Struct (gv, guestfs_h, g);
# 1052|     if (!g)
# 1053|       rb_raise (rb_eArgError, "%s: used handle after closing it", "disk_has_backing_file");

Error: COMPILER_WARNING (CWE-477): [#def511]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_e2fsck’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1105:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1105 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1103|   {
# 1104|     guestfs_h *g;
# 1105|->   Data_Get_Struct (gv, guestfs_h, g);
# 1106|     if (!g)
# 1107|       rb_raise (rb_eArgError, "%s: used handle after closing it", "e2fsck");

Error: COMPILER_WARNING (CWE-477): [#def512]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1105:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1103|   {
# 1104|     guestfs_h *g;
# 1105|->   Data_Get_Struct (gv, guestfs_h, g);
# 1106|     if (!g)
# 1107|       rb_raise (rb_eArgError, "%s: used handle after closing it", "e2fsck");

Error: COMPILER_WARNING (CWE-477): [#def513]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_extlinux’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1181:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1181 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1179|   {
# 1180|     guestfs_h *g;
# 1181|->   Data_Get_Struct (gv, guestfs_h, g);
# 1182|     if (!g)
# 1183|       rb_raise (rb_eArgError, "%s: used handle after closing it", "extlinux");

Error: COMPILER_WARNING (CWE-477): [#def514]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1181:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1179|   {
# 1180|     guestfs_h *g;
# 1181|->   Data_Get_Struct (gv, guestfs_h, g);
# 1182|     if (!g)
# 1183|       rb_raise (rb_eArgError, "%s: used handle after closing it", "extlinux");

Error: COMPILER_WARNING (CWE-477): [#def515]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_fsck’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1232:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1232 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1230|   {
# 1231|     guestfs_h *g;
# 1232|->   Data_Get_Struct (gv, guestfs_h, g);
# 1233|     if (!g)
# 1234|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fsck");

Error: COMPILER_WARNING (CWE-477): [#def516]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1232:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1230|   {
# 1231|     guestfs_h *g;
# 1232|->   Data_Get_Struct (gv, guestfs_h, g);
# 1233|     if (!g)
# 1234|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fsck");

Error: COMPILER_WARNING (CWE-477): [#def517]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_attach_method’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1270 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1268|   {
# 1269|     guestfs_h *g;
# 1270|->   Data_Get_Struct (gv, guestfs_h, g);
# 1271|     if (!g)
# 1272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_attach_method");

Error: COMPILER_WARNING (CWE-477): [#def518]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1268|   {
# 1269|     guestfs_h *g;
# 1270|->   Data_Get_Struct (gv, guestfs_h, g);
# 1271|     if (!g)
# 1272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_attach_method");

Error: COMPILER_WARNING (CWE-477): [#def519]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_cachedir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1307:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1307 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1305|   {
# 1306|     guestfs_h *g;
# 1307|->   Data_Get_Struct (gv, guestfs_h, g);
# 1308|     if (!g)
# 1309|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_cachedir");

Error: COMPILER_WARNING (CWE-477): [#def520]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1307:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1305|   {
# 1306|     guestfs_h *g;
# 1307|->   Data_Get_Struct (gv, guestfs_h, g);
# 1308|     if (!g)
# 1309|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_cachedir");

Error: COMPILER_WARNING (CWE-477): [#def521]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_libvirt_requested_credential_defresult’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1347:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1347 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1345|   {
# 1346|     guestfs_h *g;
# 1347|->   Data_Get_Struct (gv, guestfs_h, g);
# 1348|     if (!g)
# 1349|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_libvirt_requested_credential_defresult");

Error: COMPILER_WARNING (CWE-477): [#def522]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1347:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1345|   {
# 1346|     guestfs_h *g;
# 1347|->   Data_Get_Struct (gv, guestfs_h, g);
# 1348|     if (!g)
# 1349|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_libvirt_requested_credential_defresult");

Error: COMPILER_WARNING (CWE-477): [#def523]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_path’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1385:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1385 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1383|   {
# 1384|     guestfs_h *g;
# 1385|->   Data_Get_Struct (gv, guestfs_h, g);
# 1386|     if (!g)
# 1387|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_path");

Error: COMPILER_WARNING (CWE-477): [#def524]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1385:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1383|   {
# 1384|     guestfs_h *g;
# 1385|->   Data_Get_Struct (gv, guestfs_h, g);
# 1386|     if (!g)
# 1387|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_path");

Error: COMPILER_WARNING (CWE-477): [#def525]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_pgroup’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1417:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1417 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1415|   {
# 1416|     guestfs_h *g;
# 1417|->   Data_Get_Struct (gv, guestfs_h, g);
# 1418|     if (!g)
# 1419|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_pgroup");

Error: COMPILER_WARNING (CWE-477): [#def526]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1417:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1415|   {
# 1416|     guestfs_h *g;
# 1417|->   Data_Get_Struct (gv, guestfs_h, g);
# 1418|     if (!g)
# 1419|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_pgroup");

Error: COMPILER_WARNING (CWE-477): [#def527]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_smp’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1450:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1450 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1448|   {
# 1449|     guestfs_h *g;
# 1450|->   Data_Get_Struct (gv, guestfs_h, g);
# 1451|     if (!g)
# 1452|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_smp");

Error: COMPILER_WARNING (CWE-477): [#def528]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1450:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1448|   {
# 1449|     guestfs_h *g;
# 1450|->   Data_Get_Struct (gv, guestfs_h, g);
# 1451|     if (!g)
# 1452|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_smp");

Error: COMPILER_WARNING (CWE-477): [#def529]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_sockdir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1495:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1495 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1493|   {
# 1494|     guestfs_h *g;
# 1495|->   Data_Get_Struct (gv, guestfs_h, g);
# 1496|     if (!g)
# 1497|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_sockdir");

Error: COMPILER_WARNING (CWE-477): [#def530]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1495:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1493|   {
# 1494|     guestfs_h *g;
# 1495|->   Data_Get_Struct (gv, guestfs_h, g);
# 1496|     if (!g)
# 1497|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_sockdir");

Error: COMPILER_WARNING (CWE-477): [#def531]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_get_trace’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1529:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1529 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1527|   {
# 1528|     guestfs_h *g;
# 1529|->   Data_Get_Struct (gv, guestfs_h, g);
# 1530|     if (!g)
# 1531|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_trace");

Error: COMPILER_WARNING (CWE-477): [#def532]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1529:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1527|   {
# 1528|     guestfs_h *g;
# 1529|->   Data_Get_Struct (gv, guestfs_h, g);
# 1530|     if (!g)
# 1531|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_trace");

Error: COMPILER_WARNING (CWE-477): [#def533]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_get_child’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1568:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1568 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1566|   {
# 1567|     guestfs_h *g;
# 1568|->   Data_Get_Struct (gv, guestfs_h, g);
# 1569|     if (!g)
# 1570|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_get_child");

Error: COMPILER_WARNING (CWE-477): [#def534]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1568:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1566|   {
# 1567|     guestfs_h *g;
# 1568|->   Data_Get_Struct (gv, guestfs_h, g);
# 1569|     if (!g)
# 1570|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_get_child");

Error: COMPILER_WARNING (CWE-477): [#def535]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_set_value’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1609:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1609 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1607|   {
# 1608|     guestfs_h *g;
# 1609|->   Data_Get_Struct (gv, guestfs_h, g);
# 1610|     if (!g)
# 1611|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_set_value");

Error: COMPILER_WARNING (CWE-477): [#def536]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1609:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1607|   {
# 1608|     guestfs_h *g;
# 1609|->   Data_Get_Struct (gv, guestfs_h, g);
# 1610|     if (!g)
# 1611|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_set_value");

Error: COMPILER_WARNING (CWE-477): [#def537]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_hivex_value_key’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1656:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1656 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1654|   {
# 1655|     guestfs_h *g;
# 1656|->   Data_Get_Struct (gv, guestfs_h, g);
# 1657|     if (!g)
# 1658|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_key");

Error: COMPILER_WARNING (CWE-477): [#def538]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1656:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1654|   {
# 1655|     guestfs_h *g;
# 1656|->   Data_Get_Struct (gv, guestfs_h, g);
# 1657|     if (!g)
# 1658|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_key");

Error: COMPILER_WARNING (CWE-477): [#def539]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_hivex_value_type’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1697:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1697 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1695|   {
# 1696|     guestfs_h *g;
# 1697|->   Data_Get_Struct (gv, guestfs_h, g);
# 1698|     if (!g)
# 1699|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_type");

Error: COMPILER_WARNING (CWE-477): [#def540]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1697:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1695|   {
# 1696|     guestfs_h *g;
# 1697|->   Data_Get_Struct (gv, guestfs_h, g);
# 1698|     if (!g)
# 1699|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_type");

Error: COMPILER_WARNING (CWE-477): [#def541]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_distro’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1867:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1867 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1865|   {
# 1866|     guestfs_h *g;
# 1867|->   Data_Get_Struct (gv, guestfs_h, g);
# 1868|     if (!g)
# 1869|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_distro");

Error: COMPILER_WARNING (CWE-477): [#def542]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1867:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1865|   {
# 1866|     guestfs_h *g;
# 1867|->   Data_Get_Struct (gv, guestfs_h, g);
# 1868|     if (!g)
# 1869|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_distro");

Error: COMPILER_WARNING (CWE-477): [#def543]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_filesystems’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1912:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1912 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1910|   {
# 1911|     guestfs_h *g;
# 1912|->   Data_Get_Struct (gv, guestfs_h, g);
# 1913|     if (!g)
# 1914|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_filesystems");

Error: COMPILER_WARNING (CWE-477): [#def544]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1912:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1910|   {
# 1911|     guestfs_h *g;
# 1912|->   Data_Get_Struct (gv, guestfs_h, g);
# 1913|     if (!g)
# 1914|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_filesystems");

Error: COMPILER_WARNING (CWE-477): [#def545]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_minor_version’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1960:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1960 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1958|   {
# 1959|     guestfs_h *g;
# 1960|->   Data_Get_Struct (gv, guestfs_h, g);
# 1961|     if (!g)
# 1962|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_minor_version");

Error: COMPILER_WARNING (CWE-477): [#def546]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:1960:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1958|   {
# 1959|     guestfs_h *g;
# 1960|->   Data_Get_Struct (gv, guestfs_h, g);
# 1961|     if (!g)
# 1962|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_minor_version");

Error: COMPILER_WARNING (CWE-477): [#def547]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_package_format’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2008:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2008 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2006|   {
# 2007|     guestfs_h *g;
# 2008|->   Data_Get_Struct (gv, guestfs_h, g);
# 2009|     if (!g)
# 2010|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_package_format");

Error: COMPILER_WARNING (CWE-477): [#def548]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2008:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2006|   {
# 2007|     guestfs_h *g;
# 2008|->   Data_Get_Struct (gv, guestfs_h, g);
# 2009|     if (!g)
# 2010|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_package_format");

Error: COMPILER_WARNING (CWE-477): [#def549]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_product_variant’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2065:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2065 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2063|   {
# 2064|     guestfs_h *g;
# 2065|->   Data_Get_Struct (gv, guestfs_h, g);
# 2066|     if (!g)
# 2067|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_product_variant");

Error: COMPILER_WARNING (CWE-477): [#def550]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2065:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2063|   {
# 2064|     guestfs_h *g;
# 2065|->   Data_Get_Struct (gv, guestfs_h, g);
# 2066|     if (!g)
# 2067|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_product_variant");

Error: COMPILER_WARNING (CWE-477): [#def551]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_windows_software_hive’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2111:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2111 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2109|   {
# 2110|     guestfs_h *g;
# 2111|->   Data_Get_Struct (gv, guestfs_h, g);
# 2112|     if (!g)
# 2113|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_windows_software_hive");

Error: COMPILER_WARNING (CWE-477): [#def552]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2111:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2109|   {
# 2110|     guestfs_h *g;
# 2111|->   Data_Get_Struct (gv, guestfs_h, g);
# 2112|     if (!g)
# 2113|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_windows_software_hive");

Error: COMPILER_WARNING (CWE-477): [#def553]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_list_applications’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2232:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2232 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2230|   {
# 2231|     guestfs_h *g;
# 2232|->   Data_Get_Struct (gv, guestfs_h, g);
# 2233|     if (!g)
# 2234|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_list_applications");

Error: COMPILER_WARNING (CWE-477): [#def554]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2232:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2230|   {
# 2231|     guestfs_h *g;
# 2232|->   Data_Get_Struct (gv, guestfs_h, g);
# 2233|     if (!g)
# 2234|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_list_applications");

Error: COMPILER_WARNING (CWE-477): [#def555]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_inspect_os’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2320:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2320 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2318|   {
# 2319|     guestfs_h *g;
# 2320|->   Data_Get_Struct (gv, guestfs_h, g);
# 2321|     if (!g)
# 2322|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_os");

Error: COMPILER_WARNING (CWE-477): [#def556]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2320:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2318|   {
# 2319|     guestfs_h *g;
# 2320|->   Data_Get_Struct (gv, guestfs_h, g);
# 2321|     if (!g)
# 2322|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_os");

Error: COMPILER_WARNING (CWE-477): [#def557]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rboolerr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2352:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2352 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2350|   {
# 2351|     guestfs_h *g;
# 2352|->   Data_Get_Struct (gv, guestfs_h, g);
# 2353|     if (!g)
# 2354|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rboolerr");

Error: COMPILER_WARNING (CWE-477): [#def558]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2352:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2350|   {
# 2351|     guestfs_h *g;
# 2352|->   Data_Get_Struct (gv, guestfs_h, g);
# 2353|     if (!g)
# 2354|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rboolerr");

Error: COMPILER_WARNING (CWE-477): [#def559]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstring’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2376:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2376 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2374|   {
# 2375|     guestfs_h *g;
# 2376|->   Data_Get_Struct (gv, guestfs_h, g);
# 2377|     if (!g)
# 2378|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstring");

Error: COMPILER_WARNING (CWE-477): [#def560]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2376:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2374|   {
# 2375|     guestfs_h *g;
# 2376|->   Data_Get_Struct (gv, guestfs_h, g);
# 2377|     if (!g)
# 2378|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstring");

Error: COMPILER_WARNING (CWE-477): [#def561]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstructerr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2403:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2403 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2401|   {
# 2402|     guestfs_h *g;
# 2403|->   Data_Get_Struct (gv, guestfs_h, g);
# 2404|     if (!g)
# 2405|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstructerr");

Error: COMPILER_WARNING (CWE-477): [#def562]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2403:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2401|   {
# 2402|     guestfs_h *g;
# 2403|->   Data_Get_Struct (gv, guestfs_h, g);
# 2404|     if (!g)
# 2405|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstructerr");

Error: COMPILER_WARNING (CWE-477): [#def563]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_journal_get’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2467:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2467 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2465|   {
# 2466|     guestfs_h *g;
# 2467|->   Data_Get_Struct (gv, guestfs_h, g);
# 2468|     if (!g)
# 2469|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_get");

Error: COMPILER_WARNING (CWE-477): [#def564]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2467:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2465|   {
# 2466|     guestfs_h *g;
# 2467|->   Data_Get_Struct (gv, guestfs_h, g);
# 2468|     if (!g)
# 2469|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_get");

Error: COMPILER_WARNING (CWE-477): [#def565]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_journal_get_data_threshold’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2516:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2516 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2514|   {
# 2515|     guestfs_h *g;
# 2516|->   Data_Get_Struct (gv, guestfs_h, g);
# 2517|     if (!g)
# 2518|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_get_data_threshold");

Error: COMPILER_WARNING (CWE-477): [#def566]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2516:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2514|   {
# 2515|     guestfs_h *g;
# 2516|->   Data_Get_Struct (gv, guestfs_h, g);
# 2517|     if (!g)
# 2518|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_get_data_threshold");

Error: COMPILER_WARNING (CWE-477): [#def567]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_diskgroup_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2553:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2553 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2551|   {
# 2552|     guestfs_h *g;
# 2553|->   Data_Get_Struct (gv, guestfs_h, g);
# 2554|     if (!g)
# 2555|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_diskgroup_name");

Error: COMPILER_WARNING (CWE-477): [#def568]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2553:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2551|   {
# 2552|     guestfs_h *g;
# 2553|->   Data_Get_Struct (gv, guestfs_h, g);
# 2554|     if (!g)
# 2555|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_diskgroup_name");

Error: COMPILER_WARNING (CWE-477): [#def569]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_diskgroup_volumes’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2593:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2593 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2591|   {
# 2592|     guestfs_h *g;
# 2593|->   Data_Get_Struct (gv, guestfs_h, g);
# 2594|     if (!g)
# 2595|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_diskgroup_volumes");

Error: COMPILER_WARNING (CWE-477): [#def570]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2593:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2591|   {
# 2592|     guestfs_h *g;
# 2593|->   Data_Get_Struct (gv, guestfs_h, g);
# 2594|     if (!g)
# 2595|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_diskgroup_volumes");

Error: COMPILER_WARNING (CWE-477): [#def571]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_ll’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2639:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2639 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2637|   {
# 2638|     guestfs_h *g;
# 2639|->   Data_Get_Struct (gv, guestfs_h, g);
# 2640|     if (!g)
# 2641|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ll");

Error: COMPILER_WARNING (CWE-477): [#def572]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2639:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2637|   {
# 2638|     guestfs_h *g;
# 2639|->   Data_Get_Struct (gv, guestfs_h, g);
# 2640|     if (!g)
# 2641|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ll");

Error: COMPILER_WARNING (CWE-477): [#def573]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_ln_f’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2675:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2675 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2673|   {
# 2674|     guestfs_h *g;
# 2675|->   Data_Get_Struct (gv, guestfs_h, g);
# 2676|     if (!g)
# 2677|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ln_f");

Error: COMPILER_WARNING (CWE-477): [#def574]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2675:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2673|   {
# 2674|     guestfs_h *g;
# 2675|->   Data_Get_Struct (gv, guestfs_h, g);
# 2676|     if (!g)
# 2677|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ln_f");

Error: COMPILER_WARNING (CWE-477): [#def575]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_ln_s’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2710:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2710 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2708|   {
# 2709|     guestfs_h *g;
# 2710|->   Data_Get_Struct (gv, guestfs_h, g);
# 2711|     if (!g)
# 2712|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ln_s");

Error: COMPILER_WARNING (CWE-477): [#def576]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2710:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2708|   {
# 2709|     guestfs_h *g;
# 2710|->   Data_Get_Struct (gv, guestfs_h, g);
# 2711|     if (!g)
# 2712|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ln_s");

Error: COMPILER_WARNING (CWE-477): [#def577]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_lremovexattr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2748:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2748 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2746|   {
# 2747|     guestfs_h *g;
# 2748|->   Data_Get_Struct (gv, guestfs_h, g);
# 2749|     if (!g)
# 2750|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lremovexattr");

Error: COMPILER_WARNING (CWE-477): [#def578]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2748:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2746|   {
# 2747|     guestfs_h *g;
# 2748|->   Data_Get_Struct (gv, guestfs_h, g);
# 2749|     if (!g)
# 2750|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lremovexattr");

Error: COMPILER_WARNING (CWE-477): [#def579]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_lstatnslist’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2796:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2796 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2794|   {
# 2795|     guestfs_h *g;
# 2796|->   Data_Get_Struct (gv, guestfs_h, g);
# 2797|     if (!g)
# 2798|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstatnslist");

Error: COMPILER_WARNING (CWE-477): [#def580]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2796:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2794|   {
# 2795|     guestfs_h *g;
# 2796|->   Data_Get_Struct (gv, guestfs_h, g);
# 2797|     if (!g)
# 2798|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstatnslist");

Error: COMPILER_WARNING (CWE-477): [#def581]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_luks_close’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2879:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2879 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2877|   {
# 2878|     guestfs_h *g;
# 2879|->   Data_Get_Struct (gv, guestfs_h, g);
# 2880|     if (!g)
# 2881|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_close");

Error: COMPILER_WARNING (CWE-477): [#def582]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2879:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2877|   {
# 2878|     guestfs_h *g;
# 2879|->   Data_Get_Struct (gv, guestfs_h, g);
# 2880|     if (!g)
# 2881|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_close");

Error: COMPILER_WARNING (CWE-477): [#def583]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_lvremove’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2920:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2920 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2918|   {
# 2919|     guestfs_h *g;
# 2920|->   Data_Get_Struct (gv, guestfs_h, g);
# 2921|     if (!g)
# 2922|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvremove");

Error: COMPILER_WARNING (CWE-477): [#def584]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2920:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2918|   {
# 2919|     guestfs_h *g;
# 2920|->   Data_Get_Struct (gv, guestfs_h, g);
# 2921|     if (!g)
# 2922|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvremove");

Error: COMPILER_WARNING (CWE-477): [#def585]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_md_stop’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2956:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2956 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2954|   {
# 2955|     guestfs_h *g;
# 2956|->   Data_Get_Struct (gv, guestfs_h, g);
# 2957|     if (!g)
# 2958|       rb_raise (rb_eArgError, "%s: used handle after closing it", "md_stop");

Error: COMPILER_WARNING (CWE-477): [#def586]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:2956:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2954|   {
# 2955|     guestfs_h *g;
# 2956|->   Data_Get_Struct (gv, guestfs_h, g);
# 2957|     if (!g)
# 2958|       rb_raise (rb_eArgError, "%s: used handle after closing it", "md_stop");

Error: COMPILER_WARNING (CWE-477): [#def587]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_mkfs_btrfs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3002:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3002 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3000|   {
# 3001|     guestfs_h *g;
# 3002|->   Data_Get_Struct (gv, guestfs_h, g);
# 3003|     if (!g)
# 3004|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkfs_btrfs");

Error: COMPILER_WARNING (CWE-477): [#def588]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3002:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3000|   {
# 3001|     guestfs_h *g;
# 3002|->   Data_Get_Struct (gv, guestfs_h, g);
# 3003|     if (!g)
# 3004|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkfs_btrfs");

Error: COMPILER_WARNING (CWE-477): [#def589]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_mklost_and_found’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3101:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3101 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3099|   {
# 3100|     guestfs_h *g;
# 3101|->   Data_Get_Struct (gv, guestfs_h, g);
# 3102|     if (!g)
# 3103|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mklost_and_found");

Error: COMPILER_WARNING (CWE-477): [#def590]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3101:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3099|   {
# 3100|     guestfs_h *g;
# 3101|->   Data_Get_Struct (gv, guestfs_h, g);
# 3102|     if (!g)
# 3103|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mklost_and_found");

Error: COMPILER_WARNING (CWE-477): [#def591]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_mkmountpoint’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3176:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3176 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3174|   {
# 3175|     guestfs_h *g;
# 3176|->   Data_Get_Struct (gv, guestfs_h, g);
# 3177|     if (!g)
# 3178|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkmountpoint");

Error: COMPILER_WARNING (CWE-477): [#def592]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3176:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3174|   {
# 3175|     guestfs_h *g;
# 3176|->   Data_Get_Struct (gv, guestfs_h, g);
# 3177|     if (!g)
# 3178|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkmountpoint");

Error: COMPILER_WARNING (CWE-477): [#def593]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_mkswap_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3213:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3213 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3211|   {
# 3212|     guestfs_h *g;
# 3213|->   Data_Get_Struct (gv, guestfs_h, g);
# 3214|     if (!g)
# 3215|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkswap_file");

Error: COMPILER_WARNING (CWE-477): [#def594]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3213:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3211|   {
# 3212|     guestfs_h *g;
# 3213|->   Data_Get_Struct (gv, guestfs_h, g);
# 3214|     if (!g)
# 3215|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkswap_file");

Error: COMPILER_WARNING (CWE-477): [#def595]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_mount_9p’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3252:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3252 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3250|   {
# 3251|     guestfs_h *g;
# 3252|->   Data_Get_Struct (gv, guestfs_h, g);
# 3253|     if (!g)
# 3254|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_9p");

Error: COMPILER_WARNING (CWE-477): [#def596]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3252:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3250|   {
# 3251|     guestfs_h *g;
# 3252|->   Data_Get_Struct (gv, guestfs_h, g);
# 3253|     if (!g)
# 3254|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_9p");

Error: COMPILER_WARNING (CWE-477): [#def597]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_mountable_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3311:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3311 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3309|   {
# 3310|     guestfs_h *g;
# 3311|->   Data_Get_Struct (gv, guestfs_h, g);
# 3312|     if (!g)
# 3313|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mountable_device");

Error: COMPILER_WARNING (CWE-477): [#def598]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3311:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3309|   {
# 3310|     guestfs_h *g;
# 3311|->   Data_Get_Struct (gv, guestfs_h, g);
# 3312|     if (!g)
# 3313|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mountable_device");

Error: COMPILER_WARNING (CWE-477): [#def599]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_mv’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3349:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3349 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3347|   {
# 3348|     guestfs_h *g;
# 3349|->   Data_Get_Struct (gv, guestfs_h, g);
# 3350|     if (!g)
# 3351|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mv");

Error: COMPILER_WARNING (CWE-477): [#def600]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3349:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3347|   {
# 3348|     guestfs_h *g;
# 3349|->   Data_Get_Struct (gv, guestfs_h, g);
# 3350|     if (!g)
# 3351|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mv");

Error: COMPILER_WARNING (CWE-477): [#def601]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_ntfsresize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3413:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3413 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3411|   {
# 3412|     guestfs_h *g;
# 3413|->   Data_Get_Struct (gv, guestfs_h, g);
# 3414|     if (!g)
# 3415|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsresize");

Error: COMPILER_WARNING (CWE-477): [#def602]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3413:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3411|   {
# 3412|     guestfs_h *g;
# 3413|->   Data_Get_Struct (gv, guestfs_h, g);
# 3414|     if (!g)
# 3415|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsresize");

Error: COMPILER_WARNING (CWE-477): [#def603]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_part_disk’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3473:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3473 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3471|   {
# 3472|     guestfs_h *g;
# 3473|->   Data_Get_Struct (gv, guestfs_h, g);
# 3474|     if (!g)
# 3475|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_disk");

Error: COMPILER_WARNING (CWE-477): [#def604]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3473:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3471|   {
# 3472|     guestfs_h *g;
# 3473|->   Data_Get_Struct (gv, guestfs_h, g);
# 3474|     if (!g)
# 3475|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_disk");

Error: COMPILER_WARNING (CWE-477): [#def605]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_part_expand_gpt’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3514:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3514 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3512|   {
# 3513|     guestfs_h *g;
# 3514|->   Data_Get_Struct (gv, guestfs_h, g);
# 3515|     if (!g)
# 3516|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_expand_gpt");

Error: COMPILER_WARNING (CWE-477): [#def606]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3514:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3512|   {
# 3513|     guestfs_h *g;
# 3514|->   Data_Get_Struct (gv, guestfs_h, g);
# 3515|     if (!g)
# 3516|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_expand_gpt");

Error: COMPILER_WARNING (CWE-477): [#def607]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_part_get_parttype’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3554:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3554 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3552|   {
# 3553|     guestfs_h *g;
# 3554|->   Data_Get_Struct (gv, guestfs_h, g);
# 3555|     if (!g)
# 3556|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_parttype");

Error: COMPILER_WARNING (CWE-477): [#def608]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3554:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3552|   {
# 3553|     guestfs_h *g;
# 3554|->   Data_Get_Struct (gv, guestfs_h, g);
# 3555|     if (!g)
# 3556|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_parttype");

Error: COMPILER_WARNING (CWE-477): [#def609]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_pvcreate’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3593:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3593 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3591|   {
# 3592|     guestfs_h *g;
# 3593|->   Data_Get_Struct (gv, guestfs_h, g);
# 3594|     if (!g)
# 3595|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvcreate");

Error: COMPILER_WARNING (CWE-477): [#def610]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3593:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3591|   {
# 3592|     guestfs_h *g;
# 3593|->   Data_Get_Struct (gv, guestfs_h, g);
# 3594|     if (!g)
# 3595|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvcreate");

Error: COMPILER_WARNING (CWE-477): [#def611]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_pvs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3634:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3634 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3632|   {
# 3633|     guestfs_h *g;
# 3634|->   Data_Get_Struct (gv, guestfs_h, g);
# 3635|     if (!g)
# 3636|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvs");

Error: COMPILER_WARNING (CWE-477): [#def612]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3634:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3632|   {
# 3633|     guestfs_h *g;
# 3634|->   Data_Get_Struct (gv, guestfs_h, g);
# 3635|     if (!g)
# 3636|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvs");

Error: COMPILER_WARNING (CWE-477): [#def613]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_pwrite’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3689:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3689 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3687|   {
# 3688|     guestfs_h *g;
# 3689|->   Data_Get_Struct (gv, guestfs_h, g);
# 3690|     if (!g)
# 3691|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pwrite");

Error: COMPILER_WARNING (CWE-477): [#def614]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3689:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3687|   {
# 3688|     guestfs_h *g;
# 3689|->   Data_Get_Struct (gv, guestfs_h, g);
# 3690|     if (!g)
# 3691|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pwrite");

Error: COMPILER_WARNING (CWE-477): [#def615]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_read_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3733:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3733 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3731|   {
# 3732|     guestfs_h *g;
# 3733|->   Data_Get_Struct (gv, guestfs_h, g);
# 3734|     if (!g)
# 3735|       rb_raise (rb_eArgError, "%s: used handle after closing it", "read_file");

Error: COMPILER_WARNING (CWE-477): [#def616]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3733:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3731|   {
# 3732|     guestfs_h *g;
# 3733|->   Data_Get_Struct (gv, guestfs_h, g);
# 3734|     if (!g)
# 3735|       rb_raise (rb_eArgError, "%s: used handle after closing it", "read_file");

Error: COMPILER_WARNING (CWE-477): [#def617]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_rename’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3771:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3771 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3769|   {
# 3770|     guestfs_h *g;
# 3771|->   Data_Get_Struct (gv, guestfs_h, g);
# 3772|     if (!g)
# 3773|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rename");

Error: COMPILER_WARNING (CWE-477): [#def618]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3771:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3769|   {
# 3770|     guestfs_h *g;
# 3771|->   Data_Get_Struct (gv, guestfs_h, g);
# 3772|     if (!g)
# 3773|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rename");

Error: COMPILER_WARNING (CWE-477): [#def619]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_resize2fs_M’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3815:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3815 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3813|   {
# 3814|     guestfs_h *g;
# 3815|->   Data_Get_Struct (gv, guestfs_h, g);
# 3816|     if (!g)
# 3817|       rb_raise (rb_eArgError, "%s: used handle after closing it", "resize2fs_M");

Error: COMPILER_WARNING (CWE-477): [#def620]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3815:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3813|   {
# 3814|     guestfs_h *g;
# 3815|->   Data_Get_Struct (gv, guestfs_h, g);
# 3816|     if (!g)
# 3817|       rb_raise (rb_eArgError, "%s: used handle after closing it", "resize2fs_M");

Error: COMPILER_WARNING (CWE-477): [#def621]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_rm_rf’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3850:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3850 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3848|   {
# 3849|     guestfs_h *g;
# 3850|->   Data_Get_Struct (gv, guestfs_h, g);
# 3851|     if (!g)
# 3852|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rm_rf");

Error: COMPILER_WARNING (CWE-477): [#def622]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3850:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3848|   {
# 3849|     guestfs_h *g;
# 3850|->   Data_Get_Struct (gv, guestfs_h, g);
# 3851|     if (!g)
# 3852|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rm_rf");

Error: COMPILER_WARNING (CWE-477): [#def623]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_scrub_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3891:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3891 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3889|   {
# 3890|     guestfs_h *g;
# 3891|->   Data_Get_Struct (gv, guestfs_h, g);
# 3892|     if (!g)
# 3893|       rb_raise (rb_eArgError, "%s: used handle after closing it", "scrub_file");

Error: COMPILER_WARNING (CWE-477): [#def624]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3891:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3889|   {
# 3890|     guestfs_h *g;
# 3891|->   Data_Get_Struct (gv, guestfs_h, g);
# 3892|     if (!g)
# 3893|       rb_raise (rb_eArgError, "%s: used handle after closing it", "scrub_file");

Error: COMPILER_WARNING (CWE-477): [#def625]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_set_append’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3931:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3931 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3929|   {
# 3930|     guestfs_h *g;
# 3931|->   Data_Get_Struct (gv, guestfs_h, g);
# 3932|     if (!g)
# 3933|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_append");

Error: COMPILER_WARNING (CWE-477): [#def626]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3931:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3929|   {
# 3930|     guestfs_h *g;
# 3931|->   Data_Get_Struct (gv, guestfs_h, g);
# 3932|     if (!g)
# 3933|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_append");

Error: COMPILER_WARNING (CWE-477): [#def627]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_set_backend’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3970:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3970 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3968|   {
# 3969|     guestfs_h *g;
# 3970|->   Data_Get_Struct (gv, guestfs_h, g);
# 3971|     if (!g)
# 3972|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_backend");

Error: COMPILER_WARNING (CWE-477): [#def628]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:3970:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3968|   {
# 3969|     guestfs_h *g;
# 3970|->   Data_Get_Struct (gv, guestfs_h, g);
# 3971|     if (!g)
# 3972|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_backend");

Error: COMPILER_WARNING (CWE-477): [#def629]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_set_direct’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4016:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4016 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4014|   {
# 4015|     guestfs_h *g;
# 4016|->   Data_Get_Struct (gv, guestfs_h, g);
# 4017|     if (!g)
# 4018|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_direct");

Error: COMPILER_WARNING (CWE-477): [#def630]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4016:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4014|   {
# 4015|     guestfs_h *g;
# 4016|->   Data_Get_Struct (gv, guestfs_h, g);
# 4017|     if (!g)
# 4018|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_direct");

Error: COMPILER_WARNING (CWE-477): [#def631]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_set_memsize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4060:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4060 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4058|   {
# 4059|     guestfs_h *g;
# 4060|->   Data_Get_Struct (gv, guestfs_h, g);
# 4061|     if (!g)
# 4062|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_memsize");

Error: COMPILER_WARNING (CWE-477): [#def632]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4060:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4058|   {
# 4059|     guestfs_h *g;
# 4060|->   Data_Get_Struct (gv, guestfs_h, g);
# 4061|     if (!g)
# 4062|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_memsize");

Error: COMPILER_WARNING (CWE-477): [#def633]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_set_program’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4098:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4098 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4096|   {
# 4097|     guestfs_h *g;
# 4098|->   Data_Get_Struct (gv, guestfs_h, g);
# 4099|     if (!g)
# 4100|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_program");

Error: COMPILER_WARNING (CWE-477): [#def634]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4098:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4096|   {
# 4097|     guestfs_h *g;
# 4098|->   Data_Get_Struct (gv, guestfs_h, g);
# 4099|     if (!g)
# 4100|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_program");

Error: COMPILER_WARNING (CWE-477): [#def635]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_set_selinux’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4141:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4141 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4139|   {
# 4140|     guestfs_h *g;
# 4141|->   Data_Get_Struct (gv, guestfs_h, g);
# 4142|     if (!g)
# 4143|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_selinux");

Error: COMPILER_WARNING (CWE-477): [#def636]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4141:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4139|   {
# 4140|     guestfs_h *g;
# 4141|->   Data_Get_Struct (gv, guestfs_h, g);
# 4142|     if (!g)
# 4143|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_selinux");

Error: COMPILER_WARNING (CWE-477): [#def637]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_setxattr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4182:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4182 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4180|   {
# 4181|     guestfs_h *g;
# 4182|->   Data_Get_Struct (gv, guestfs_h, g);
# 4183|     if (!g)
# 4184|       rb_raise (rb_eArgError, "%s: used handle after closing it", "setxattr");

Error: COMPILER_WARNING (CWE-477): [#def638]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4182:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4180|   {
# 4181|     guestfs_h *g;
# 4182|->   Data_Get_Struct (gv, guestfs_h, g);
# 4183|     if (!g)
# 4184|       rb_raise (rb_eArgError, "%s: used handle after closing it", "setxattr");

Error: COMPILER_WARNING (CWE-477): [#def639]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_sfdisk_l’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4224:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4224 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4222|   {
# 4223|     guestfs_h *g;
# 4224|->   Data_Get_Struct (gv, guestfs_h, g);
# 4225|     if (!g)
# 4226|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sfdisk_l");

Error: COMPILER_WARNING (CWE-477): [#def640]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4224:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4222|   {
# 4223|     guestfs_h *g;
# 4224|->   Data_Get_Struct (gv, guestfs_h, g);
# 4225|     if (!g)
# 4226|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sfdisk_l");

Error: COMPILER_WARNING (CWE-477): [#def641]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_umount_local’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4268:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4268 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4266|   {
# 4267|     guestfs_h *g;
# 4268|->   Data_Get_Struct (gv, guestfs_h, g);
# 4269|     if (!g)
# 4270|       rb_raise (rb_eArgError, "%s: used handle after closing it", "umount_local");

Error: COMPILER_WARNING (CWE-477): [#def642]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4268:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4266|   {
# 4267|     guestfs_h *g;
# 4268|->   Data_Get_Struct (gv, guestfs_h, g);
# 4269|     if (!g)
# 4270|       rb_raise (rb_eArgError, "%s: used handle after closing it", "umount_local");

Error: COMPILER_WARNING (CWE-477): [#def643]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_vfs_label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4321:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4321 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4319|   {
# 4320|     guestfs_h *g;
# 4321|->   Data_Get_Struct (gv, guestfs_h, g);
# 4322|     if (!g)
# 4323|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vfs_label");

Error: COMPILER_WARNING (CWE-477): [#def644]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4321:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4319|   {
# 4320|     guestfs_h *g;
# 4321|->   Data_Get_Struct (gv, guestfs_h, g);
# 4322|     if (!g)
# 4323|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vfs_label");

Error: COMPILER_WARNING (CWE-477): [#def645]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_vg_activate_all’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4361:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4361 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4359|   {
# 4360|     guestfs_h *g;
# 4361|->   Data_Get_Struct (gv, guestfs_h, g);
# 4362|     if (!g)
# 4363|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vg_activate_all");

Error: COMPILER_WARNING (CWE-477): [#def646]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4361:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4359|   {
# 4360|     guestfs_h *g;
# 4361|->   Data_Get_Struct (gv, guestfs_h, g);
# 4362|     if (!g)
# 4363|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vg_activate_all");

Error: COMPILER_WARNING (CWE-477): [#def647]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_vgchange_uuid_all’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4396:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4396 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4394|   {
# 4395|     guestfs_h *g;
# 4396|->   Data_Get_Struct (gv, guestfs_h, g);
# 4397|     if (!g)
# 4398|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgchange_uuid_all");

Error: COMPILER_WARNING (CWE-477): [#def648]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4396:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4394|   {
# 4395|     guestfs_h *g;
# 4396|->   Data_Get_Struct (gv, guestfs_h, g);
# 4397|     if (!g)
# 4398|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgchange_uuid_all");

Error: COMPILER_WARNING (CWE-477): [#def649]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_vgmeta’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4435:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4435 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4433|   {
# 4434|     guestfs_h *g;
# 4435|->   Data_Get_Struct (gv, guestfs_h, g);
# 4436|     if (!g)
# 4437|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgmeta");

Error: COMPILER_WARNING (CWE-477): [#def650]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4435:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4433|   {
# 4434|     guestfs_h *g;
# 4435|->   Data_Get_Struct (gv, guestfs_h, g);
# 4436|     if (!g)
# 4437|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgmeta");

Error: COMPILER_WARNING (CWE-477): [#def651]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_vgrename’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4472:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4472 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4470|   {
# 4471|     guestfs_h *g;
# 4472|->   Data_Get_Struct (gv, guestfs_h, g);
# 4473|     if (!g)
# 4474|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgrename");

Error: COMPILER_WARNING (CWE-477): [#def652]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4472:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4470|   {
# 4471|     guestfs_h *g;
# 4472|->   Data_Get_Struct (gv, guestfs_h, g);
# 4473|     if (!g)
# 4474|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgrename");

Error: COMPILER_WARNING (CWE-477): [#def653]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_vguuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4507:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4507 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4505|   {
# 4506|     guestfs_h *g;
# 4507|->   Data_Get_Struct (gv, guestfs_h, g);
# 4508|     if (!g)
# 4509|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vguuid");

Error: COMPILER_WARNING (CWE-477): [#def654]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4507:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4505|   {
# 4506|     guestfs_h *g;
# 4507|->   Data_Get_Struct (gv, guestfs_h, g);
# 4508|     if (!g)
# 4509|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vguuid");

Error: COMPILER_WARNING (CWE-477): [#def655]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_wc_w’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4543:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4543 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4541|   {
# 4542|     guestfs_h *g;
# 4543|->   Data_Get_Struct (gv, guestfs_h, g);
# 4544|     if (!g)
# 4545|       rb_raise (rb_eArgError, "%s: used handle after closing it", "wc_w");

Error: COMPILER_WARNING (CWE-477): [#def656]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4543:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4541|   {
# 4542|     guestfs_h *g;
# 4543|->   Data_Get_Struct (gv, guestfs_h, g);
# 4544|     if (!g)
# 4545|       rb_raise (rb_eArgError, "%s: used handle after closing it", "wc_w");

Error: COMPILER_WARNING (CWE-477): [#def657]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_write’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4580:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4580 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4578|   {
# 4579|     guestfs_h *g;
# 4580|->   Data_Get_Struct (gv, guestfs_h, g);
# 4581|     if (!g)
# 4582|       rb_raise (rb_eArgError, "%s: used handle after closing it", "write");

Error: COMPILER_WARNING (CWE-477): [#def658]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4580:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4578|   {
# 4579|     guestfs_h *g;
# 4580|->   Data_Get_Struct (gv, guestfs_h, g);
# 4581|     if (!g)
# 4582|       rb_raise (rb_eArgError, "%s: used handle after closing it", "write");

Error: COMPILER_WARNING (CWE-477): [#def659]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c: scope_hint: In function ‘guestfs_int_ruby_zfgrepi’
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4626:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4626 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4624|   {
# 4625|     guestfs_h *g;
# 4626|->   Data_Get_Struct (gv, guestfs_h, g);
# 4627|     if (!g)
# 4628|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zfgrepi");

Error: COMPILER_WARNING (CWE-477): [#def660]
libguestfs-1.55.9/ruby/ext/guestfs/actions-0.c:4626:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4624|   {
# 4625|     guestfs_h *g;
# 4626|->   Data_Get_Struct (gv, guestfs_h, g);
# 4627|     if (!g)
# 4628|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zfgrepi");

Error: COMPILER_WARNING (CWE-477): [#def661]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_aug_clear’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:58:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   58 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:37: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   56|   {
#   57|     guestfs_h *g;
#   58|->   Data_Get_Struct (gv, guestfs_h, g);
#   59|     if (!g)
#   60|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_clear");

Error: COMPILER_WARNING (CWE-477): [#def662]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:58:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   56|   {
#   57|     guestfs_h *g;
#   58|->   Data_Get_Struct (gv, guestfs_h, g);
#   59|     if (!g)
#   60|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_clear");

Error: COMPILER_WARNING (CWE-477): [#def663]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_aug_defvar’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:97:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   97 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   95|   {
#   96|     guestfs_h *g;
#   97|->   Data_Get_Struct (gv, guestfs_h, g);
#   98|     if (!g)
#   99|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_defvar");

Error: COMPILER_WARNING (CWE-477): [#def664]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:97:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   95|   {
#   96|     guestfs_h *g;
#   97|->   Data_Get_Struct (gv, guestfs_h, g);
#   98|     if (!g)
#   99|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_defvar");

Error: COMPILER_WARNING (CWE-477): [#def665]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_base64_in’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:132:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  132 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  130|   {
#  131|     guestfs_h *g;
#  132|->   Data_Get_Struct (gv, guestfs_h, g);
#  133|     if (!g)
#  134|       rb_raise (rb_eArgError, "%s: used handle after closing it", "base64_in");

Error: COMPILER_WARNING (CWE-477): [#def666]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:132:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  130|   {
#  131|     guestfs_h *g;
#  132|->   Data_Get_Struct (gv, guestfs_h, g);
#  133|     if (!g)
#  134|       rb_raise (rb_eArgError, "%s: used handle after closing it", "base64_in");

Error: COMPILER_WARNING (CWE-477): [#def667]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_base64_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:167:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  167 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  165|   {
#  166|     guestfs_h *g;
#  167|->   Data_Get_Struct (gv, guestfs_h, g);
#  168|     if (!g)
#  169|       rb_raise (rb_eArgError, "%s: used handle after closing it", "base64_out");

Error: COMPILER_WARNING (CWE-477): [#def668]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:167:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  165|   {
#  166|     guestfs_h *g;
#  167|->   Data_Get_Struct (gv, guestfs_h, g);
#  168|     if (!g)
#  169|       rb_raise (rb_eArgError, "%s: used handle after closing it", "base64_out");

Error: COMPILER_WARNING (CWE-477): [#def669]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_balance_resume’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:203:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  203 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  201|   {
#  202|     guestfs_h *g;
#  203|->   Data_Get_Struct (gv, guestfs_h, g);
#  204|     if (!g)
#  205|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_balance_resume");

Error: COMPILER_WARNING (CWE-477): [#def670]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:203:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  201|   {
#  202|     guestfs_h *g;
#  203|->   Data_Get_Struct (gv, guestfs_h, g);
#  204|     if (!g)
#  205|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_balance_resume");

Error: COMPILER_WARNING (CWE-477): [#def671]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_fsck’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:243:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  243 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  241|   {
#  242|     guestfs_h *g;
#  243|->   Data_Get_Struct (gv, guestfs_h, g);
#  244|     if (!g)
#  245|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_fsck");

Error: COMPILER_WARNING (CWE-477): [#def672]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:243:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  241|   {
#  242|     guestfs_h *g;
#  243|->   Data_Get_Struct (gv, guestfs_h, g);
#  244|     if (!g)
#  245|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_fsck");

Error: COMPILER_WARNING (CWE-477): [#def673]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_qgroup_show’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:300:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  300 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  298|   {
#  299|     guestfs_h *g;
#  300|->   Data_Get_Struct (gv, guestfs_h, g);
#  301|     if (!g)
#  302|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_show");

Error: COMPILER_WARNING (CWE-477): [#def674]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:300:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  298|   {
#  299|     guestfs_h *g;
#  300|->   Data_Get_Struct (gv, guestfs_h, g);
#  301|     if (!g)
#  302|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_show");

Error: COMPILER_WARNING (CWE-477): [#def675]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_rescue_chunk_recover’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:346:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  346 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  344|   {
#  345|     guestfs_h *g;
#  346|->   Data_Get_Struct (gv, guestfs_h, g);
#  347|     if (!g)
#  348|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_rescue_chunk_recover");

Error: COMPILER_WARNING (CWE-477): [#def676]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:346:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  344|   {
#  345|     guestfs_h *g;
#  346|->   Data_Get_Struct (gv, guestfs_h, g);
#  347|     if (!g)
#  348|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_rescue_chunk_recover");

Error: COMPILER_WARNING (CWE-477): [#def677]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_scrub_resume’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:382:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  382 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  380|   {
#  381|     guestfs_h *g;
#  382|->   Data_Get_Struct (gv, guestfs_h, g);
#  383|     if (!g)
#  384|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_scrub_resume");

Error: COMPILER_WARNING (CWE-477): [#def678]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:382:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  380|   {
#  381|     guestfs_h *g;
#  382|->   Data_Get_Struct (gv, guestfs_h, g);
#  383|     if (!g)
#  384|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_scrub_resume");

Error: COMPILER_WARNING (CWE-477): [#def679]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_cat’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:420:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  420 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  418|   {
#  419|     guestfs_h *g;
#  420|->   Data_Get_Struct (gv, guestfs_h, g);
#  421|     if (!g)
#  422|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cat");

Error: COMPILER_WARNING (CWE-477): [#def680]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:420:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  418|   {
#  419|     guestfs_h *g;
#  420|->   Data_Get_Struct (gv, guestfs_h, g);
#  421|     if (!g)
#  422|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cat");

Error: COMPILER_WARNING (CWE-477): [#def681]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_checksum_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:457:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  457 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  455|   {
#  456|     guestfs_h *g;
#  457|->   Data_Get_Struct (gv, guestfs_h, g);
#  458|     if (!g)
#  459|       rb_raise (rb_eArgError, "%s: used handle after closing it", "checksum_device");

Error: COMPILER_WARNING (CWE-477): [#def682]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:457:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  455|   {
#  456|     guestfs_h *g;
#  457|->   Data_Get_Struct (gv, guestfs_h, g);
#  458|     if (!g)
#  459|       rb_raise (rb_eArgError, "%s: used handle after closing it", "checksum_device");

Error: COMPILER_WARNING (CWE-477): [#def683]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_clear_backend_setting’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:501:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  501 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  499|   {
#  500|     guestfs_h *g;
#  501|->   Data_Get_Struct (gv, guestfs_h, g);
#  502|     if (!g)
#  503|       rb_raise (rb_eArgError, "%s: used handle after closing it", "clear_backend_setting");

Error: COMPILER_WARNING (CWE-477): [#def684]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:501:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  499|   {
#  500|     guestfs_h *g;
#  501|->   Data_Get_Struct (gv, guestfs_h, g);
#  502|     if (!g)
#  503|       rb_raise (rb_eArgError, "%s: used handle after closing it", "clear_backend_setting");

Error: COMPILER_WARNING (CWE-477): [#def685]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_config’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:542:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  542 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  540|   {
#  541|     guestfs_h *g;
#  542|->   Data_Get_Struct (gv, guestfs_h, g);
#  543|     if (!g)
#  544|       rb_raise (rb_eArgError, "%s: used handle after closing it", "config");

Error: COMPILER_WARNING (CWE-477): [#def686]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:542:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  540|   {
#  541|     guestfs_h *g;
#  542|->   Data_Get_Struct (gv, guestfs_h, g);
#  543|     if (!g)
#  544|       rb_raise (rb_eArgError, "%s: used handle after closing it", "config");

Error: COMPILER_WARNING (CWE-477): [#def687]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_copy_attributes’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:607:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  607 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  605|   {
#  606|     guestfs_h *g;
#  607|->   Data_Get_Struct (gv, guestfs_h, g);
#  608|     if (!g)
#  609|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_attributes");

Error: COMPILER_WARNING (CWE-477): [#def688]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:607:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  605|   {
#  606|     guestfs_h *g;
#  607|->   Data_Get_Struct (gv, guestfs_h, g);
#  608|     if (!g)
#  609|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_attributes");

Error: COMPILER_WARNING (CWE-477): [#def689]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_copy_device_to_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:707:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  707 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  705|   {
#  706|     guestfs_h *g;
#  707|->   Data_Get_Struct (gv, guestfs_h, g);
#  708|     if (!g)
#  709|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_device_to_device");

Error: COMPILER_WARNING (CWE-477): [#def690]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:707:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  705|   {
#  706|     guestfs_h *g;
#  707|->   Data_Get_Struct (gv, guestfs_h, g);
#  708|     if (!g)
#  709|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_device_to_device");

Error: COMPILER_WARNING (CWE-477): [#def691]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_dd’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:788:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  788 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  786|   {
#  787|     guestfs_h *g;
#  788|->   Data_Get_Struct (gv, guestfs_h, g);
#  789|     if (!g)
#  790|       rb_raise (rb_eArgError, "%s: used handle after closing it", "dd");

Error: COMPILER_WARNING (CWE-477): [#def692]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:788:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  786|   {
#  787|     guestfs_h *g;
#  788|->   Data_Get_Struct (gv, guestfs_h, g);
#  789|     if (!g)
#  790|       rb_raise (rb_eArgError, "%s: used handle after closing it", "dd");

Error: COMPILER_WARNING (CWE-477): [#def693]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_debug_drives’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:816:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  816 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  814|   {
#  815|     guestfs_h *g;
#  816|->   Data_Get_Struct (gv, guestfs_h, g);
#  817|     if (!g)
#  818|       rb_raise (rb_eArgError, "%s: used handle after closing it", "debug_drives");

Error: COMPILER_WARNING (CWE-477): [#def694]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:816:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  814|   {
#  815|     guestfs_h *g;
#  816|->   Data_Get_Struct (gv, guestfs_h, g);
#  817|     if (!g)
#  818|       rb_raise (rb_eArgError, "%s: used handle after closing it", "debug_drives");

Error: COMPILER_WARNING (CWE-477): [#def695]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_device_index’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:863:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  863 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  861|   {
#  862|     guestfs_h *g;
#  863|->   Data_Get_Struct (gv, guestfs_h, g);
#  864|     if (!g)
#  865|       rb_raise (rb_eArgError, "%s: used handle after closing it", "device_index");

Error: COMPILER_WARNING (CWE-477): [#def696]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:863:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  861|   {
#  862|     guestfs_h *g;
#  863|->   Data_Get_Struct (gv, guestfs_h, g);
#  864|     if (!g)
#  865|       rb_raise (rb_eArgError, "%s: used handle after closing it", "device_index");

Error: COMPILER_WARNING (CWE-477): [#def697]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_download_inode’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:906:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  906 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  904|   {
#  905|     guestfs_h *g;
#  906|->   Data_Get_Struct (gv, guestfs_h, g);
#  907|     if (!g)
#  908|       rb_raise (rb_eArgError, "%s: used handle after closing it", "download_inode");

Error: COMPILER_WARNING (CWE-477): [#def698]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:906:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  904|   {
#  905|     guestfs_h *g;
#  906|->   Data_Get_Struct (gv, guestfs_h, g);
#  907|     if (!g)
#  908|       rb_raise (rb_eArgError, "%s: used handle after closing it", "download_inode");

Error: COMPILER_WARNING (CWE-477): [#def699]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_exists’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:944:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  944 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  942|   {
#  943|     guestfs_h *g;
#  944|->   Data_Get_Struct (gv, guestfs_h, g);
#  945|     if (!g)
#  946|       rb_raise (rb_eArgError, "%s: used handle after closing it", "exists");

Error: COMPILER_WARNING (CWE-477): [#def700]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:944:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  942|   {
#  943|     guestfs_h *g;
#  944|->   Data_Get_Struct (gv, guestfs_h, g);
#  945|     if (!g)
#  946|       rb_raise (rb_eArgError, "%s: used handle after closing it", "exists");

Error: COMPILER_WARNING (CWE-477): [#def701]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_f2fs_expand’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:980:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  980 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  978|   {
#  979|     guestfs_h *g;
#  980|->   Data_Get_Struct (gv, guestfs_h, g);
#  981|     if (!g)
#  982|       rb_raise (rb_eArgError, "%s: used handle after closing it", "f2fs_expand");

Error: COMPILER_WARNING (CWE-477): [#def702]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:980:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  978|   {
#  979|     guestfs_h *g;
#  980|->   Data_Get_Struct (gv, guestfs_h, g);
#  981|     if (!g)
#  982|       rb_raise (rb_eArgError, "%s: used handle after closing it", "f2fs_expand");

Error: COMPILER_WARNING (CWE-477): [#def703]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_filesystem_walk’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1114:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1114 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1112|   {
# 1113|     guestfs_h *g;
# 1114|->   Data_Get_Struct (gv, guestfs_h, g);
# 1115|     if (!g)
# 1116|       rb_raise (rb_eArgError, "%s: used handle after closing it", "filesystem_walk");

Error: COMPILER_WARNING (CWE-477): [#def704]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1114:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1112|   {
# 1113|     guestfs_h *g;
# 1114|->   Data_Get_Struct (gv, guestfs_h, g);
# 1115|     if (!g)
# 1116|       rb_raise (rb_eArgError, "%s: used handle after closing it", "filesystem_walk");

Error: COMPILER_WARNING (CWE-477): [#def705]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_fill_dir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1173:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1173 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1171|   {
# 1172|     guestfs_h *g;
# 1173|->   Data_Get_Struct (gv, guestfs_h, g);
# 1174|     if (!g)
# 1175|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fill_dir");

Error: COMPILER_WARNING (CWE-477): [#def706]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1173:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1171|   {
# 1172|     guestfs_h *g;
# 1173|->   Data_Get_Struct (gv, guestfs_h, g);
# 1174|     if (!g)
# 1175|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fill_dir");

Error: COMPILER_WARNING (CWE-477): [#def707]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_findfs_label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1211:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1211 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1209|   {
# 1210|     guestfs_h *g;
# 1211|->   Data_Get_Struct (gv, guestfs_h, g);
# 1212|     if (!g)
# 1213|       rb_raise (rb_eArgError, "%s: used handle after closing it", "findfs_label");

Error: COMPILER_WARNING (CWE-477): [#def708]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1211:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1209|   {
# 1210|     guestfs_h *g;
# 1211|->   Data_Get_Struct (gv, guestfs_h, g);
# 1212|     if (!g)
# 1213|       rb_raise (rb_eArgError, "%s: used handle after closing it", "findfs_label");

Error: COMPILER_WARNING (CWE-477): [#def709]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_get_identifier’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1246:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1246 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1244|   {
# 1245|     guestfs_h *g;
# 1246|->   Data_Get_Struct (gv, guestfs_h, g);
# 1247|     if (!g)
# 1248|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_identifier");

Error: COMPILER_WARNING (CWE-477): [#def710]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1246:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1244|   {
# 1245|     guestfs_h *g;
# 1246|->   Data_Get_Struct (gv, guestfs_h, g);
# 1247|     if (!g)
# 1248|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_identifier");

Error: COMPILER_WARNING (CWE-477): [#def711]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_get_libvirt_requested_credential_prompt’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1283:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1283 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1281|   {
# 1282|     guestfs_h *g;
# 1283|->   Data_Get_Struct (gv, guestfs_h, g);
# 1284|     if (!g)
# 1285|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_libvirt_requested_credential_prompt");

Error: COMPILER_WARNING (CWE-477): [#def712]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1283:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1281|   {
# 1282|     guestfs_h *g;
# 1283|->   Data_Get_Struct (gv, guestfs_h, g);
# 1284|     if (!g)
# 1285|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_libvirt_requested_credential_prompt");

Error: COMPILER_WARNING (CWE-477): [#def713]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_get_network’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1318:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1318 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1316|   {
# 1317|     guestfs_h *g;
# 1318|->   Data_Get_Struct (gv, guestfs_h, g);
# 1319|     if (!g)
# 1320|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_network");

Error: COMPILER_WARNING (CWE-477): [#def714]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1318:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1316|   {
# 1317|     guestfs_h *g;
# 1318|->   Data_Get_Struct (gv, guestfs_h, g);
# 1319|     if (!g)
# 1320|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_network");

Error: COMPILER_WARNING (CWE-477): [#def715]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_get_qemu’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1355:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1355 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1353|   {
# 1354|     guestfs_h *g;
# 1355|->   Data_Get_Struct (gv, guestfs_h, g);
# 1356|     if (!g)
# 1357|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_qemu");

Error: COMPILER_WARNING (CWE-477): [#def716]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1355:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1353|   {
# 1354|     guestfs_h *g;
# 1355|->   Data_Get_Struct (gv, guestfs_h, g);
# 1356|     if (!g)
# 1357|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_qemu");

Error: COMPILER_WARNING (CWE-477): [#def717]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_get_state’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1393:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1393 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1391|   {
# 1392|     guestfs_h *g;
# 1393|->   Data_Get_Struct (gv, guestfs_h, g);
# 1394|     if (!g)
# 1395|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_state");

Error: COMPILER_WARNING (CWE-477): [#def718]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1393:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1391|   {
# 1392|     guestfs_h *g;
# 1393|->   Data_Get_Struct (gv, guestfs_h, g);
# 1394|     if (!g)
# 1395|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_state");

Error: COMPILER_WARNING (CWE-477): [#def719]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_get_umask’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1426:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1426 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1424|   {
# 1425|     guestfs_h *g;
# 1426|->   Data_Get_Struct (gv, guestfs_h, g);
# 1427|     if (!g)
# 1428|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_umask");

Error: COMPILER_WARNING (CWE-477): [#def720]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1426:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1424|   {
# 1425|     guestfs_h *g;
# 1426|->   Data_Get_Struct (gv, guestfs_h, g);
# 1427|     if (!g)
# 1428|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_umask");

Error: COMPILER_WARNING (CWE-477): [#def721]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_get_verbose’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1458:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1458 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1456|   {
# 1457|     guestfs_h *g;
# 1458|->   Data_Get_Struct (gv, guestfs_h, g);
# 1459|     if (!g)
# 1460|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_verbose");

Error: COMPILER_WARNING (CWE-477): [#def722]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1458:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1456|   {
# 1457|     guestfs_h *g;
# 1458|->   Data_Get_Struct (gv, guestfs_h, g);
# 1459|     if (!g)
# 1460|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_verbose");

Error: COMPILER_WARNING (CWE-477): [#def723]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_getxattrs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1498:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1498 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1496|   {
# 1497|     guestfs_h *g;
# 1498|->   Data_Get_Struct (gv, guestfs_h, g);
# 1499|     if (!g)
# 1500|       rb_raise (rb_eArgError, "%s: used handle after closing it", "getxattrs");

Error: COMPILER_WARNING (CWE-477): [#def724]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1498:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1496|   {
# 1497|     guestfs_h *g;
# 1498|->   Data_Get_Struct (gv, guestfs_h, g);
# 1499|     if (!g)
# 1500|       rb_raise (rb_eArgError, "%s: used handle after closing it", "getxattrs");

Error: COMPILER_WARNING (CWE-477): [#def725]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_grep’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1567:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1567 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1565|   {
# 1566|     guestfs_h *g;
# 1567|->   Data_Get_Struct (gv, guestfs_h, g);
# 1568|     if (!g)
# 1569|       rb_raise (rb_eArgError, "%s: used handle after closing it", "grep");

Error: COMPILER_WARNING (CWE-477): [#def726]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1567:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1565|   {
# 1566|     guestfs_h *g;
# 1567|->   Data_Get_Struct (gv, guestfs_h, g);
# 1568|     if (!g)
# 1569|       rb_raise (rb_eArgError, "%s: used handle after closing it", "grep");

Error: COMPILER_WARNING (CWE-477): [#def727]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_parent’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1646:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1646 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1644|   {
# 1645|     guestfs_h *g;
# 1646|->   Data_Get_Struct (gv, guestfs_h, g);
# 1647|     if (!g)
# 1648|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_parent");

Error: COMPILER_WARNING (CWE-477): [#def728]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1646:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1644|   {
# 1645|     guestfs_h *g;
# 1646|->   Data_Get_Struct (gv, guestfs_h, g);
# 1647|     if (!g)
# 1648|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_parent");

Error: COMPILER_WARNING (CWE-477): [#def729]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_hivex_root’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1684:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1684 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1682|   {
# 1683|     guestfs_h *g;
# 1684|->   Data_Get_Struct (gv, guestfs_h, g);
# 1685|     if (!g)
# 1686|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_root");

Error: COMPILER_WARNING (CWE-477): [#def730]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1684:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1682|   {
# 1683|     guestfs_h *g;
# 1684|->   Data_Get_Struct (gv, guestfs_h, g);
# 1685|     if (!g)
# 1686|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_root");

Error: COMPILER_WARNING (CWE-477): [#def731]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_hivex_value_string’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1727:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1727 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1725|   {
# 1726|     guestfs_h *g;
# 1727|->   Data_Get_Struct (gv, guestfs_h, g);
# 1728|     if (!g)
# 1729|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_string");

Error: COMPILER_WARNING (CWE-477): [#def732]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1727:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1725|   {
# 1726|     guestfs_h *g;
# 1727|->   Data_Get_Struct (gv, guestfs_h, g);
# 1728|     if (!g)
# 1729|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_string");

Error: COMPILER_WARNING (CWE-477): [#def733]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_hivex_value_value’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1769:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1769 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1767|   {
# 1768|     guestfs_h *g;
# 1769|->   Data_Get_Struct (gv, guestfs_h, g);
# 1770|     if (!g)
# 1771|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_value");

Error: COMPILER_WARNING (CWE-477): [#def734]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1769:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1767|   {
# 1768|     guestfs_h *g;
# 1769|->   Data_Get_Struct (gv, guestfs_h, g);
# 1770|     if (!g)
# 1771|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_value");

Error: COMPILER_WARNING (CWE-477): [#def735]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_initrd_list’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1814:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1814 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1812|   {
# 1813|     guestfs_h *g;
# 1814|->   Data_Get_Struct (gv, guestfs_h, g);
# 1815|     if (!g)
# 1816|       rb_raise (rb_eArgError, "%s: used handle after closing it", "initrd_list");

Error: COMPILER_WARNING (CWE-477): [#def736]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1814:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1812|   {
# 1813|     guestfs_h *g;
# 1814|->   Data_Get_Struct (gv, guestfs_h, g);
# 1815|     if (!g)
# 1816|       rb_raise (rb_eArgError, "%s: used handle after closing it", "initrd_list");

Error: COMPILER_WARNING (CWE-477): [#def737]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_inotify_files’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1860:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1860 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1858|   {
# 1859|     guestfs_h *g;
# 1860|->   Data_Get_Struct (gv, guestfs_h, g);
# 1861|     if (!g)
# 1862|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_files");

Error: COMPILER_WARNING (CWE-477): [#def738]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1860:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1858|   {
# 1859|     guestfs_h *g;
# 1860|->   Data_Get_Struct (gv, guestfs_h, g);
# 1861|     if (!g)
# 1862|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_files");

Error: COMPILER_WARNING (CWE-477): [#def739]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_inotify_rm_watch’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1903:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1903 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1901|   {
# 1902|     guestfs_h *g;
# 1903|->   Data_Get_Struct (gv, guestfs_h, g);
# 1904|     if (!g)
# 1905|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_rm_watch");

Error: COMPILER_WARNING (CWE-477): [#def740]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1903:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1901|   {
# 1902|     guestfs_h *g;
# 1903|->   Data_Get_Struct (gv, guestfs_h, g);
# 1904|     if (!g)
# 1905|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_rm_watch");

Error: COMPILER_WARNING (CWE-477): [#def741]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_icon’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1990:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1990 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1988|   {
# 1989|     guestfs_h *g;
# 1990|->   Data_Get_Struct (gv, guestfs_h, g);
# 1991|     if (!g)
# 1992|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_icon");

Error: COMPILER_WARNING (CWE-477): [#def742]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:1990:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1988|   {
# 1989|     guestfs_h *g;
# 1990|->   Data_Get_Struct (gv, guestfs_h, g);
# 1991|     if (!g)
# 1992|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_icon");

Error: COMPILER_WARNING (CWE-477): [#def743]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_windows_system_hive’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2058:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2058 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2056|   {
# 2057|     guestfs_h *g;
# 2058|->   Data_Get_Struct (gv, guestfs_h, g);
# 2059|     if (!g)
# 2060|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_windows_system_hive");

Error: COMPILER_WARNING (CWE-477): [#def744]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2058:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2056|   {
# 2057|     guestfs_h *g;
# 2058|->   Data_Get_Struct (gv, guestfs_h, g);
# 2059|     if (!g)
# 2060|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_windows_system_hive");

Error: COMPILER_WARNING (CWE-477): [#def745]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_inspect_is_netinst’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2097:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2097 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2095|   {
# 2096|     guestfs_h *g;
# 2097|->   Data_Get_Struct (gv, guestfs_h, g);
# 2098|     if (!g)
# 2099|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_is_netinst");

Error: COMPILER_WARNING (CWE-477): [#def746]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2097:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2095|   {
# 2096|     guestfs_h *g;
# 2097|->   Data_Get_Struct (gv, guestfs_h, g);
# 2098|     if (!g)
# 2099|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_is_netinst");

Error: COMPILER_WARNING (CWE-477): [#def747]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_inspect_list_applications2’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2221:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2221 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2219|   {
# 2220|     guestfs_h *g;
# 2221|->   Data_Get_Struct (gv, guestfs_h, g);
# 2222|     if (!g)
# 2223|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_list_applications2");

Error: COMPILER_WARNING (CWE-477): [#def748]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2221:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2219|   {
# 2220|     guestfs_h *g;
# 2221|->   Data_Get_Struct (gv, guestfs_h, g);
# 2222|     if (!g)
# 2223|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_list_applications2");

Error: COMPILER_WARNING (CWE-477): [#def749]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rbufferouterr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2270 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2268|   {
# 2269|     guestfs_h *g;
# 2270|->   Data_Get_Struct (gv, guestfs_h, g);
# 2271|     if (!g)
# 2272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rbufferouterr");

Error: COMPILER_WARNING (CWE-477): [#def750]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2268|   {
# 2269|     guestfs_h *g;
# 2270|->   Data_Get_Struct (gv, guestfs_h, g);
# 2271|     if (!g)
# 2272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rbufferouterr");

Error: COMPILER_WARNING (CWE-477): [#def751]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rconstoptstring’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2297:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2297 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2295|   {
# 2296|     guestfs_h *g;
# 2297|->   Data_Get_Struct (gv, guestfs_h, g);
# 2298|     if (!g)
# 2299|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rconstoptstring");

Error: COMPILER_WARNING (CWE-477): [#def752]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2297:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2295|   {
# 2296|     guestfs_h *g;
# 2297|->   Data_Get_Struct (gv, guestfs_h, g);
# 2298|     if (!g)
# 2299|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rconstoptstring");

Error: COMPILER_WARNING (CWE-477): [#def753]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rint64’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2323:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2323 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2321|   {
# 2322|     guestfs_h *g;
# 2323|->   Data_Get_Struct (gv, guestfs_h, g);
# 2324|     if (!g)
# 2325|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rint64");

Error: COMPILER_WARNING (CWE-477): [#def754]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2323:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2321|   {
# 2322|     guestfs_h *g;
# 2323|->   Data_Get_Struct (gv, guestfs_h, g);
# 2324|     if (!g)
# 2325|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rint64");

Error: COMPILER_WARNING (CWE-477): [#def755]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstringerr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2348:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2348 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2346|   {
# 2347|     guestfs_h *g;
# 2348|->   Data_Get_Struct (gv, guestfs_h, g);
# 2349|     if (!g)
# 2350|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstringerr");

Error: COMPILER_WARNING (CWE-477): [#def756]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2348:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2346|   {
# 2347|     guestfs_h *g;
# 2348|->   Data_Get_Struct (gv, guestfs_h, g);
# 2349|     if (!g)
# 2350|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstringerr");

Error: COMPILER_WARNING (CWE-477): [#def757]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstructlist’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2374:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2374 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2372|   {
# 2373|     guestfs_h *g;
# 2374|->   Data_Get_Struct (gv, guestfs_h, g);
# 2375|     if (!g)
# 2376|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstructlist");

Error: COMPILER_WARNING (CWE-477): [#def758]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2374:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2372|   {
# 2373|     guestfs_h *g;
# 2374|->   Data_Get_Struct (gv, guestfs_h, g);
# 2375|     if (!g)
# 2376|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstructlist");

Error: COMPILER_WARNING (CWE-477): [#def759]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstructlisterr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2420:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2420 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2418|   {
# 2419|     guestfs_h *g;
# 2420|->   Data_Get_Struct (gv, guestfs_h, g);
# 2421|     if (!g)
# 2422|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstructlisterr");

Error: COMPILER_WARNING (CWE-477): [#def760]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2420:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2418|   {
# 2419|     guestfs_h *g;
# 2420|->   Data_Get_Struct (gv, guestfs_h, g);
# 2421|     if (!g)
# 2422|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstructlisterr");

Error: COMPILER_WARNING (CWE-477): [#def761]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_is_symlink’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2476:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2476 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2474|   {
# 2475|     guestfs_h *g;
# 2476|->   Data_Get_Struct (gv, guestfs_h, g);
# 2477|     if (!g)
# 2478|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_symlink");

Error: COMPILER_WARNING (CWE-477): [#def762]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2476:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2474|   {
# 2475|     guestfs_h *g;
# 2476|->   Data_Get_Struct (gv, guestfs_h, g);
# 2477|     if (!g)
# 2478|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_symlink");

Error: COMPILER_WARNING (CWE-477): [#def763]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_is_zero’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2510:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2510 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2508|   {
# 2509|     guestfs_h *g;
# 2510|->   Data_Get_Struct (gv, guestfs_h, g);
# 2511|     if (!g)
# 2512|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_zero");

Error: COMPILER_WARNING (CWE-477): [#def764]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2510:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2508|   {
# 2509|     guestfs_h *g;
# 2510|->   Data_Get_Struct (gv, guestfs_h, g);
# 2511|     if (!g)
# 2512|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_zero");

Error: COMPILER_WARNING (CWE-477): [#def765]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_lchown’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2550:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2550 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2548|   {
# 2549|     guestfs_h *g;
# 2550|->   Data_Get_Struct (gv, guestfs_h, g);
# 2551|     if (!g)
# 2552|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lchown");

Error: COMPILER_WARNING (CWE-477): [#def766]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2550:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2548|   {
# 2549|     guestfs_h *g;
# 2550|->   Data_Get_Struct (gv, guestfs_h, g);
# 2551|     if (!g)
# 2552|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lchown");

Error: COMPILER_WARNING (CWE-477): [#def767]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_create_all’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2596:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2596 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2594|   {
# 2595|     guestfs_h *g;
# 2596|->   Data_Get_Struct (gv, guestfs_h, g);
# 2597|     if (!g)
# 2598|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_create_all");

Error: COMPILER_WARNING (CWE-477): [#def768]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2596:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2594|   {
# 2595|     guestfs_h *g;
# 2596|->   Data_Get_Struct (gv, guestfs_h, g);
# 2597|     if (!g)
# 2598|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_create_all");

Error: COMPILER_WARNING (CWE-477): [#def769]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_diskgroup_disks’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2633:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2633 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2631|   {
# 2632|     guestfs_h *g;
# 2633|->   Data_Get_Struct (gv, guestfs_h, g);
# 2634|     if (!g)
# 2635|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_diskgroup_disks");

Error: COMPILER_WARNING (CWE-477): [#def770]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2633:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2631|   {
# 2632|     guestfs_h *g;
# 2633|->   Data_Get_Struct (gv, guestfs_h, g);
# 2634|     if (!g)
# 2635|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_diskgroup_disks");

Error: COMPILER_WARNING (CWE-477): [#def771]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_list_partitions’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2682:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2682 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2680|   {
# 2681|     guestfs_h *g;
# 2682|->   Data_Get_Struct (gv, guestfs_h, g);
# 2683|     if (!g)
# 2684|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_partitions");

Error: COMPILER_WARNING (CWE-477): [#def772]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2682:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2680|   {
# 2681|     guestfs_h *g;
# 2682|->   Data_Get_Struct (gv, guestfs_h, g);
# 2683|     if (!g)
# 2684|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_partitions");

Error: COMPILER_WARNING (CWE-477): [#def773]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_llz’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2728:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2728 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2726|   {
# 2727|     guestfs_h *g;
# 2728|->   Data_Get_Struct (gv, guestfs_h, g);
# 2729|     if (!g)
# 2730|       rb_raise (rb_eArgError, "%s: used handle after closing it", "llz");

Error: COMPILER_WARNING (CWE-477): [#def774]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2728:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2726|   {
# 2727|     guestfs_h *g;
# 2728|->   Data_Get_Struct (gv, guestfs_h, g);
# 2729|     if (!g)
# 2730|       rb_raise (rb_eArgError, "%s: used handle after closing it", "llz");

Error: COMPILER_WARNING (CWE-477): [#def775]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_lstat’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2773:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2773 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2771|   {
# 2772|     guestfs_h *g;
# 2773|->   Data_Get_Struct (gv, guestfs_h, g);
# 2774|     if (!g)
# 2775|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstat");

Error: COMPILER_WARNING (CWE-477): [#def776]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2773:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2771|   {
# 2772|     guestfs_h *g;
# 2773|->   Data_Get_Struct (gv, guestfs_h, g);
# 2774|     if (!g)
# 2775|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstat");

Error: COMPILER_WARNING (CWE-477): [#def777]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_lstatlist’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2839:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2839 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2837|   {
# 2838|     guestfs_h *g;
# 2839|->   Data_Get_Struct (gv, guestfs_h, g);
# 2840|     if (!g)
# 2841|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstatlist");

Error: COMPILER_WARNING (CWE-477): [#def778]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2839:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2837|   {
# 2838|     guestfs_h *g;
# 2839|->   Data_Get_Struct (gv, guestfs_h, g);
# 2840|     if (!g)
# 2841|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstatlist");

Error: COMPILER_WARNING (CWE-477): [#def779]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_luks_open’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2930:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2930 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2928|   {
# 2929|     guestfs_h *g;
# 2930|->   Data_Get_Struct (gv, guestfs_h, g);
# 2931|     if (!g)
# 2932|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_open");

Error: COMPILER_WARNING (CWE-477): [#def780]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2930:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2928|   {
# 2929|     guestfs_h *g;
# 2930|->   Data_Get_Struct (gv, guestfs_h, g);
# 2931|     if (!g)
# 2932|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_open");

Error: COMPILER_WARNING (CWE-477): [#def781]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_luks_open_ro’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2972:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2972 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2970|   {
# 2971|     guestfs_h *g;
# 2972|->   Data_Get_Struct (gv, guestfs_h, g);
# 2973|     if (!g)
# 2974|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_open_ro");

Error: COMPILER_WARNING (CWE-477): [#def782]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:2972:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2970|   {
# 2971|     guestfs_h *g;
# 2972|->   Data_Get_Struct (gv, guestfs_h, g);
# 2973|     if (!g)
# 2974|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_open_ro");

Error: COMPILER_WARNING (CWE-477): [#def783]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_lvm_remove_all’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3012:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3012 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3010|   {
# 3011|     guestfs_h *g;
# 3012|->   Data_Get_Struct (gv, guestfs_h, g);
# 3013|     if (!g)
# 3014|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvm_remove_all");

Error: COMPILER_WARNING (CWE-477): [#def784]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3012:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3010|   {
# 3011|     guestfs_h *g;
# 3012|->   Data_Get_Struct (gv, guestfs_h, g);
# 3013|     if (!g)
# 3014|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvm_remove_all");

Error: COMPILER_WARNING (CWE-477): [#def785]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_lvresize_free’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3050:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3050 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3048|   {
# 3049|     guestfs_h *g;
# 3050|->   Data_Get_Struct (gv, guestfs_h, g);
# 3051|     if (!g)
# 3052|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvresize_free");

Error: COMPILER_WARNING (CWE-477): [#def786]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3050:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3048|   {
# 3049|     guestfs_h *g;
# 3050|->   Data_Get_Struct (gv, guestfs_h, g);
# 3051|     if (!g)
# 3052|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvresize_free");

Error: COMPILER_WARNING (CWE-477): [#def787]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_md_create’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3141:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3141 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3139|   {
# 3140|     guestfs_h *g;
# 3141|->   Data_Get_Struct (gv, guestfs_h, g);
# 3142|     if (!g)
# 3143|       rb_raise (rb_eArgError, "%s: used handle after closing it", "md_create");

Error: COMPILER_WARNING (CWE-477): [#def788]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3141:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3139|   {
# 3140|     guestfs_h *g;
# 3141|->   Data_Get_Struct (gv, guestfs_h, g);
# 3142|     if (!g)
# 3143|       rb_raise (rb_eArgError, "%s: used handle after closing it", "md_create");

Error: COMPILER_WARNING (CWE-477): [#def789]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_mkdtemp’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3242:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3242 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3240|   {
# 3241|     guestfs_h *g;
# 3242|->   Data_Get_Struct (gv, guestfs_h, g);
# 3243|     if (!g)
# 3244|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkdtemp");

Error: COMPILER_WARNING (CWE-477): [#def790]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3242:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3240|   {
# 3241|     guestfs_h *g;
# 3242|->   Data_Get_Struct (gv, guestfs_h, g);
# 3243|     if (!g)
# 3244|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkdtemp");

Error: COMPILER_WARNING (CWE-477): [#def791]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_mknod’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3295:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3295 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3293|   {
# 3294|     guestfs_h *g;
# 3295|->   Data_Get_Struct (gv, guestfs_h, g);
# 3296|     if (!g)
# 3297|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mknod");

Error: COMPILER_WARNING (CWE-477): [#def792]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3295:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3293|   {
# 3294|     guestfs_h *g;
# 3295|->   Data_Get_Struct (gv, guestfs_h, g);
# 3296|     if (!g)
# 3297|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mknod");

Error: COMPILER_WARNING (CWE-477): [#def793]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_mount’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3353:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3353 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3351|   {
# 3352|     guestfs_h *g;
# 3353|->   Data_Get_Struct (gv, guestfs_h, g);
# 3354|     if (!g)
# 3355|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount");

Error: COMPILER_WARNING (CWE-477): [#def794]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3353:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3351|   {
# 3352|     guestfs_h *g;
# 3353|->   Data_Get_Struct (gv, guestfs_h, g);
# 3354|     if (!g)
# 3355|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount");

Error: COMPILER_WARNING (CWE-477): [#def795]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_mount_local_run’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3402:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3402 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3400|   {
# 3401|     guestfs_h *g;
# 3402|->   Data_Get_Struct (gv, guestfs_h, g);
# 3403|     if (!g)
# 3404|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_local_run");

Error: COMPILER_WARNING (CWE-477): [#def796]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3402:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3400|   {
# 3401|     guestfs_h *g;
# 3402|->   Data_Get_Struct (gv, guestfs_h, g);
# 3403|     if (!g)
# 3404|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_local_run");

Error: COMPILER_WARNING (CWE-477): [#def797]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_mount_ro’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3435:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3435 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3433|   {
# 3434|     guestfs_h *g;
# 3435|->   Data_Get_Struct (gv, guestfs_h, g);
# 3436|     if (!g)
# 3437|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_ro");

Error: COMPILER_WARNING (CWE-477): [#def798]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3435:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3433|   {
# 3434|     guestfs_h *g;
# 3435|->   Data_Get_Struct (gv, guestfs_h, g);
# 3436|     if (!g)
# 3437|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_ro");

Error: COMPILER_WARNING (CWE-477): [#def799]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_mountable_subvolume’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3477:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3477 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3475|   {
# 3476|     guestfs_h *g;
# 3477|->   Data_Get_Struct (gv, guestfs_h, g);
# 3478|     if (!g)
# 3479|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mountable_subvolume");

Error: COMPILER_WARNING (CWE-477): [#def800]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3477:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3475|   {
# 3476|     guestfs_h *g;
# 3477|->   Data_Get_Struct (gv, guestfs_h, g);
# 3478|     if (!g)
# 3479|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mountable_subvolume");

Error: COMPILER_WARNING (CWE-477): [#def801]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_mounts’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3518:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3518 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3516|   {
# 3517|     guestfs_h *g;
# 3518|->   Data_Get_Struct (gv, guestfs_h, g);
# 3519|     if (!g)
# 3520|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mounts");

Error: COMPILER_WARNING (CWE-477): [#def802]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3518:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3516|   {
# 3517|     guestfs_h *g;
# 3518|->   Data_Get_Struct (gv, guestfs_h, g);
# 3519|     if (!g)
# 3520|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mounts");

Error: COMPILER_WARNING (CWE-477): [#def803]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_ntfs_3g_probe’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3572:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3572 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3570|   {
# 3571|     guestfs_h *g;
# 3572|->   Data_Get_Struct (gv, guestfs_h, g);
# 3573|     if (!g)
# 3574|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfs_3g_probe");

Error: COMPILER_WARNING (CWE-477): [#def804]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3572:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3570|   {
# 3571|     guestfs_h *g;
# 3572|->   Data_Get_Struct (gv, guestfs_h, g);
# 3573|     if (!g)
# 3574|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfs_3g_probe");

Error: COMPILER_WARNING (CWE-477): [#def805]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_ntfsclone_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3625:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3625 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3623|   {
# 3624|     guestfs_h *g;
# 3625|->   Data_Get_Struct (gv, guestfs_h, g);
# 3626|     if (!g)
# 3627|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsclone_out");

Error: COMPILER_WARNING (CWE-477): [#def806]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3625:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3623|   {
# 3624|     guestfs_h *g;
# 3625|->   Data_Get_Struct (gv, guestfs_h, g);
# 3626|     if (!g)
# 3627|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsclone_out");

Error: COMPILER_WARNING (CWE-477): [#def807]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_part_resize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3705:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3705 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3703|   {
# 3704|     guestfs_h *g;
# 3705|->   Data_Get_Struct (gv, guestfs_h, g);
# 3706|     if (!g)
# 3707|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_resize");

Error: COMPILER_WARNING (CWE-477): [#def808]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3705:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3703|   {
# 3704|     guestfs_h *g;
# 3705|->   Data_Get_Struct (gv, guestfs_h, g);
# 3706|     if (!g)
# 3707|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_resize");

Error: COMPILER_WARNING (CWE-477): [#def809]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_part_set_disk_guid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3743:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3743 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3741|   {
# 3742|     guestfs_h *g;
# 3743|->   Data_Get_Struct (gv, guestfs_h, g);
# 3744|     if (!g)
# 3745|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_disk_guid");

Error: COMPILER_WARNING (CWE-477): [#def810]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3743:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3741|   {
# 3742|     guestfs_h *g;
# 3743|->   Data_Get_Struct (gv, guestfs_h, g);
# 3744|     if (!g)
# 3745|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_disk_guid");

Error: COMPILER_WARNING (CWE-477): [#def811]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_part_set_disk_guid_random’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3779:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3779 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3777|   {
# 3778|     guestfs_h *g;
# 3779|->   Data_Get_Struct (gv, guestfs_h, g);
# 3780|     if (!g)
# 3781|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_disk_guid_random");

Error: COMPILER_WARNING (CWE-477): [#def812]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3779:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3777|   {
# 3778|     guestfs_h *g;
# 3779|->   Data_Get_Struct (gv, guestfs_h, g);
# 3780|     if (!g)
# 3781|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_disk_guid_random");

Error: COMPILER_WARNING (CWE-477): [#def813]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_pread’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3823:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3823 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3821|   {
# 3822|     guestfs_h *g;
# 3823|->   Data_Get_Struct (gv, guestfs_h, g);
# 3824|     if (!g)
# 3825|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pread");

Error: COMPILER_WARNING (CWE-477): [#def814]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3823:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3821|   {
# 3822|     guestfs_h *g;
# 3823|->   Data_Get_Struct (gv, guestfs_h, g);
# 3824|     if (!g)
# 3825|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pread");

Error: COMPILER_WARNING (CWE-477): [#def815]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_realpath’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3863:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3863 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3861|   {
# 3862|     guestfs_h *g;
# 3863|->   Data_Get_Struct (gv, guestfs_h, g);
# 3864|     if (!g)
# 3865|       rb_raise (rb_eArgError, "%s: used handle after closing it", "realpath");

Error: COMPILER_WARNING (CWE-477): [#def816]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3863:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3861|   {
# 3862|     guestfs_h *g;
# 3863|->   Data_Get_Struct (gv, guestfs_h, g);
# 3864|     if (!g)
# 3865|       rb_raise (rb_eArgError, "%s: used handle after closing it", "realpath");

Error: COMPILER_WARNING (CWE-477): [#def817]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_selinux_relabel’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3919:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3919 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3917|   {
# 3918|     guestfs_h *g;
# 3919|->   Data_Get_Struct (gv, guestfs_h, g);
# 3920|     if (!g)
# 3921|       rb_raise (rb_eArgError, "%s: used handle after closing it", "selinux_relabel");

Error: COMPILER_WARNING (CWE-477): [#def818]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3919:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3917|   {
# 3918|     guestfs_h *g;
# 3919|->   Data_Get_Struct (gv, guestfs_h, g);
# 3920|     if (!g)
# 3921|       rb_raise (rb_eArgError, "%s: used handle after closing it", "selinux_relabel");

Error: COMPILER_WARNING (CWE-477): [#def819]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_set_autosync’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3976:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3976 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3974|   {
# 3975|     guestfs_h *g;
# 3976|->   Data_Get_Struct (gv, guestfs_h, g);
# 3977|     if (!g)
# 3978|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_autosync");

Error: COMPILER_WARNING (CWE-477): [#def820]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:3976:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3974|   {
# 3975|     guestfs_h *g;
# 3976|->   Data_Get_Struct (gv, guestfs_h, g);
# 3977|     if (!g)
# 3978|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_autosync");

Error: COMPILER_WARNING (CWE-477): [#def821]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_set_backend_setting’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4014:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4014 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4012|   {
# 4013|     guestfs_h *g;
# 4014|->   Data_Get_Struct (gv, guestfs_h, g);
# 4015|     if (!g)
# 4016|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_backend_setting");

Error: COMPILER_WARNING (CWE-477): [#def822]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4014:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4012|   {
# 4013|     guestfs_h *g;
# 4014|->   Data_Get_Struct (gv, guestfs_h, g);
# 4015|     if (!g)
# 4016|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_backend_setting");

Error: COMPILER_WARNING (CWE-477): [#def823]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_set_identifier’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4072:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4072 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4070|   {
# 4071|     guestfs_h *g;
# 4072|->   Data_Get_Struct (gv, guestfs_h, g);
# 4073|     if (!g)
# 4074|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_identifier");

Error: COMPILER_WARNING (CWE-477): [#def824]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4072:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4070|   {
# 4071|     guestfs_h *g;
# 4072|->   Data_Get_Struct (gv, guestfs_h, g);
# 4073|     if (!g)
# 4074|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_identifier");

Error: COMPILER_WARNING (CWE-477): [#def825]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_set_verbose’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4112:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4112 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4110|   {
# 4111|     guestfs_h *g;
# 4112|->   Data_Get_Struct (gv, guestfs_h, g);
# 4113|     if (!g)
# 4114|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_verbose");

Error: COMPILER_WARNING (CWE-477): [#def826]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4112:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4110|   {
# 4111|     guestfs_h *g;
# 4112|->   Data_Get_Struct (gv, guestfs_h, g);
# 4113|     if (!g)
# 4114|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_verbose");

Error: COMPILER_WARNING (CWE-477): [#def827]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_swapoff_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4146:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4146 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4144|   {
# 4145|     guestfs_h *g;
# 4146|->   Data_Get_Struct (gv, guestfs_h, g);
# 4147|     if (!g)
# 4148|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapoff_file");

Error: COMPILER_WARNING (CWE-477): [#def828]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4146:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4144|   {
# 4145|     guestfs_h *g;
# 4146|->   Data_Get_Struct (gv, guestfs_h, g);
# 4147|     if (!g)
# 4148|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapoff_file");

Error: COMPILER_WARNING (CWE-477): [#def829]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_syslinux’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4210:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4210 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4208|   {
# 4209|     guestfs_h *g;
# 4210|->   Data_Get_Struct (gv, guestfs_h, g);
# 4211|     if (!g)
# 4212|       rb_raise (rb_eArgError, "%s: used handle after closing it", "syslinux");

Error: COMPILER_WARNING (CWE-477): [#def830]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4210:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4208|   {
# 4209|     guestfs_h *g;
# 4210|->   Data_Get_Struct (gv, guestfs_h, g);
# 4211|     if (!g)
# 4212|       rb_raise (rb_eArgError, "%s: used handle after closing it", "syslinux");

Error: COMPILER_WARNING (CWE-477): [#def831]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_tail’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4264:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4264 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4262|   {
# 4263|     guestfs_h *g;
# 4264|->   Data_Get_Struct (gv, guestfs_h, g);
# 4265|     if (!g)
# 4266|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tail");

Error: COMPILER_WARNING (CWE-477): [#def832]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4264:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4262|   {
# 4263|     guestfs_h *g;
# 4264|->   Data_Get_Struct (gv, guestfs_h, g);
# 4265|     if (!g)
# 4266|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tail");

Error: COMPILER_WARNING (CWE-477): [#def833]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_touch’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4311:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4311 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4309|   {
# 4310|     guestfs_h *g;
# 4311|->   Data_Get_Struct (gv, guestfs_h, g);
# 4312|     if (!g)
# 4313|       rb_raise (rb_eArgError, "%s: used handle after closing it", "touch");

Error: COMPILER_WARNING (CWE-477): [#def834]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4311:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4309|   {
# 4310|     guestfs_h *g;
# 4311|->   Data_Get_Struct (gv, guestfs_h, g);
# 4312|     if (!g)
# 4313|       rb_raise (rb_eArgError, "%s: used handle after closing it", "touch");

Error: COMPILER_WARNING (CWE-477): [#def835]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_tune2fs_l’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4351:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4351 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4349|   {
# 4350|     guestfs_h *g;
# 4351|->   Data_Get_Struct (gv, guestfs_h, g);
# 4352|     if (!g)
# 4353|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tune2fs_l");

Error: COMPILER_WARNING (CWE-477): [#def836]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4351:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4349|   {
# 4350|     guestfs_h *g;
# 4351|->   Data_Get_Struct (gv, guestfs_h, g);
# 4352|     if (!g)
# 4353|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tune2fs_l");

Error: COMPILER_WARNING (CWE-477): [#def837]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_umount’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4398:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4398 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4396|   {
# 4397|     guestfs_h *g;
# 4398|->   Data_Get_Struct (gv, guestfs_h, g);
# 4399|     if (!g)
# 4400|       rb_raise (rb_eArgError, "%s: used handle after closing it", "umount");

Error: COMPILER_WARNING (CWE-477): [#def838]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4398:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4396|   {
# 4397|     guestfs_h *g;
# 4398|->   Data_Get_Struct (gv, guestfs_h, g);
# 4399|     if (!g)
# 4400|       rb_raise (rb_eArgError, "%s: used handle after closing it", "umount");

Error: COMPILER_WARNING (CWE-477): [#def839]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_vg_activate’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4462:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4462 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4460|   {
# 4461|     guestfs_h *g;
# 4462|->   Data_Get_Struct (gv, guestfs_h, g);
# 4463|     if (!g)
# 4464|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vg_activate");

Error: COMPILER_WARNING (CWE-477): [#def840]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4462:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4460|   {
# 4461|     guestfs_h *g;
# 4462|->   Data_Get_Struct (gv, guestfs_h, g);
# 4463|     if (!g)
# 4464|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vg_activate");

Error: COMPILER_WARNING (CWE-477): [#def841]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_vgs_full’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4512:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4512 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4510|   {
# 4511|     guestfs_h *g;
# 4512|->   Data_Get_Struct (gv, guestfs_h, g);
# 4513|     if (!g)
# 4514|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgs_full");

Error: COMPILER_WARNING (CWE-477): [#def842]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4512:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4510|   {
# 4511|     guestfs_h *g;
# 4512|->   Data_Get_Struct (gv, guestfs_h, g);
# 4513|     if (!g)
# 4514|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgs_full");

Error: COMPILER_WARNING (CWE-477): [#def843]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_vgscan’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4573:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4573 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4571|   {
# 4572|     guestfs_h *g;
# 4573|->   Data_Get_Struct (gv, guestfs_h, g);
# 4574|     if (!g)
# 4575|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgscan");

Error: COMPILER_WARNING (CWE-477): [#def844]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4573:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4571|   {
# 4572|     guestfs_h *g;
# 4573|->   Data_Get_Struct (gv, guestfs_h, g);
# 4574|     if (!g)
# 4575|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgscan");

Error: COMPILER_WARNING (CWE-477): [#def845]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_xfs_admin’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4625:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4625 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4623|   {
# 4624|     guestfs_h *g;
# 4625|->   Data_Get_Struct (gv, guestfs_h, g);
# 4626|     if (!g)
# 4627|       rb_raise (rb_eArgError, "%s: used handle after closing it", "xfs_admin");

Error: COMPILER_WARNING (CWE-477): [#def846]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4625:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4623|   {
# 4624|     guestfs_h *g;
# 4625|->   Data_Get_Struct (gv, guestfs_h, g);
# 4626|     if (!g)
# 4627|       rb_raise (rb_eArgError, "%s: used handle after closing it", "xfs_admin");

Error: COMPILER_WARNING (CWE-477): [#def847]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_yara_destroy’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4707:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4707 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4705|   {
# 4706|     guestfs_h *g;
# 4707|->   Data_Get_Struct (gv, guestfs_h, g);
# 4708|     if (!g)
# 4709|       rb_raise (rb_eArgError, "%s: used handle after closing it", "yara_destroy");

Error: COMPILER_WARNING (CWE-477): [#def848]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4707:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4705|   {
# 4706|     guestfs_h *g;
# 4707|->   Data_Get_Struct (gv, guestfs_h, g);
# 4708|     if (!g)
# 4709|       rb_raise (rb_eArgError, "%s: used handle after closing it", "yara_destroy");

Error: COMPILER_WARNING (CWE-477): [#def849]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_zegrepi’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4746:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4746 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4744|   {
# 4745|     guestfs_h *g;
# 4746|->   Data_Get_Struct (gv, guestfs_h, g);
# 4747|     if (!g)
# 4748|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zegrepi");

Error: COMPILER_WARNING (CWE-477): [#def850]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4746:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4744|   {
# 4745|     guestfs_h *g;
# 4746|->   Data_Get_Struct (gv, guestfs_h, g);
# 4747|     if (!g)
# 4748|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zegrepi");

Error: COMPILER_WARNING (CWE-477): [#def851]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_zfgrep’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4797:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4797 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4795|   {
# 4796|     guestfs_h *g;
# 4797|->   Data_Get_Struct (gv, guestfs_h, g);
# 4798|     if (!g)
# 4799|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zfgrep");

Error: COMPILER_WARNING (CWE-477): [#def852]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4797:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4795|   {
# 4796|     guestfs_h *g;
# 4797|->   Data_Get_Struct (gv, guestfs_h, g);
# 4798|     if (!g)
# 4799|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zfgrep");

Error: COMPILER_WARNING (CWE-477): [#def853]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c: scope_hint: In function ‘guestfs_int_ruby_zfile’
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4849:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4849 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4847|   {
# 4848|     guestfs_h *g;
# 4849|->   Data_Get_Struct (gv, guestfs_h, g);
# 4850|     if (!g)
# 4851|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zfile");

Error: COMPILER_WARNING (CWE-477): [#def854]
libguestfs-1.55.9/ruby/ext/guestfs/actions-1.c:4849:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4847|   {
# 4848|     guestfs_h *g;
# 4849|->   Data_Get_Struct (gv, guestfs_h, g);
# 4850|     if (!g)
# 4851|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zfile");

Error: COMPILER_WARNING (CWE-477): [#def855]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_add_drive’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:287:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  287 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:37: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  285|   {
#  286|     guestfs_h *g;
#  287|->   Data_Get_Struct (gv, guestfs_h, g);
#  288|     if (!g)
#  289|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive");

Error: COMPILER_WARNING (CWE-477): [#def856]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:287:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  285|   {
#  286|     guestfs_h *g;
#  287|->   Data_Get_Struct (gv, guestfs_h, g);
#  288|     if (!g)
#  289|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive");

Error: COMPILER_WARNING (CWE-477): [#def857]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_add_drive_scratch’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:420:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  420 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  418|   {
#  419|     guestfs_h *g;
#  420|->   Data_Get_Struct (gv, guestfs_h, g);
#  421|     if (!g)
#  422|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive_scratch");

Error: COMPILER_WARNING (CWE-477): [#def858]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:420:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  418|   {
#  419|     guestfs_h *g;
#  420|->   Data_Get_Struct (gv, guestfs_h, g);
#  421|     if (!g)
#  422|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive_scratch");

Error: COMPILER_WARNING (CWE-477): [#def859]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_aug_label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:481:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  481 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  479|   {
#  480|     guestfs_h *g;
#  481|->   Data_Get_Struct (gv, guestfs_h, g);
#  482|     if (!g)
#  483|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_label");

Error: COMPILER_WARNING (CWE-477): [#def860]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:481:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  479|   {
#  480|     guestfs_h *g;
#  481|->   Data_Get_Struct (gv, guestfs_h, g);
#  482|     if (!g)
#  483|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_label");

Error: COMPILER_WARNING (CWE-477): [#def861]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_blkdiscardzeroes’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:523:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  523 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  521|   {
#  522|     guestfs_h *g;
#  523|->   Data_Get_Struct (gv, guestfs_h, g);
#  524|     if (!g)
#  525|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blkdiscardzeroes");

Error: COMPILER_WARNING (CWE-477): [#def862]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:523:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  521|   {
#  522|     guestfs_h *g;
#  523|->   Data_Get_Struct (gv, guestfs_h, g);
#  524|     if (!g)
#  525|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blkdiscardzeroes");

Error: COMPILER_WARNING (CWE-477): [#def863]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_getsize64’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:560:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  560 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  558|   {
#  559|     guestfs_h *g;
#  560|->   Data_Get_Struct (gv, guestfs_h, g);
#  561|     if (!g)
#  562|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getsize64");

Error: COMPILER_WARNING (CWE-477): [#def864]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:560:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  558|   {
#  559|     guestfs_h *g;
#  560|->   Data_Get_Struct (gv, guestfs_h, g);
#  561|     if (!g)
#  562|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getsize64");

Error: COMPILER_WARNING (CWE-477): [#def865]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_getss’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:599:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  599 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  597|   {
#  598|     guestfs_h *g;
#  599|->   Data_Get_Struct (gv, guestfs_h, g);
#  600|     if (!g)
#  601|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getss");

Error: COMPILER_WARNING (CWE-477): [#def866]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:599:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  597|   {
#  598|     guestfs_h *g;
#  599|->   Data_Get_Struct (gv, guestfs_h, g);
#  600|     if (!g)
#  601|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getss");

Error: COMPILER_WARNING (CWE-477): [#def867]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_rereadpt’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:634:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  634 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  632|   {
#  633|     guestfs_h *g;
#  634|->   Data_Get_Struct (gv, guestfs_h, g);
#  635|     if (!g)
#  636|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_rereadpt");

Error: COMPILER_WARNING (CWE-477): [#def868]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:634:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  632|   {
#  633|     guestfs_h *g;
#  634|->   Data_Get_Struct (gv, guestfs_h, g);
#  635|     if (!g)
#  636|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_rereadpt");

Error: COMPILER_WARNING (CWE-477): [#def869]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_balance_cancel’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:669:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  669 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  667|   {
#  668|     guestfs_h *g;
#  669|->   Data_Get_Struct (gv, guestfs_h, g);
#  670|     if (!g)
#  671|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_balance_cancel");

Error: COMPILER_WARNING (CWE-477): [#def870]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:669:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  667|   {
#  668|     guestfs_h *g;
#  669|->   Data_Get_Struct (gv, guestfs_h, g);
#  670|     if (!g)
#  671|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_balance_cancel");

Error: COMPILER_WARNING (CWE-477): [#def871]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_qgroup_limit’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:704:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  704 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  702|   {
#  703|     guestfs_h *g;
#  704|->   Data_Get_Struct (gv, guestfs_h, g);
#  705|     if (!g)
#  706|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_limit");

Error: COMPILER_WARNING (CWE-477): [#def872]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:704:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  702|   {
#  703|     guestfs_h *g;
#  704|->   Data_Get_Struct (gv, guestfs_h, g);
#  705|     if (!g)
#  706|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_limit");

Error: COMPILER_WARNING (CWE-477): [#def873]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_quota_rescan’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:741:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  741 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  739|   {
#  740|     guestfs_h *g;
#  741|->   Data_Get_Struct (gv, guestfs_h, g);
#  742|     if (!g)
#  743|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_quota_rescan");

Error: COMPILER_WARNING (CWE-477): [#def874]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:741:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  739|   {
#  740|     guestfs_h *g;
#  741|->   Data_Get_Struct (gv, guestfs_h, g);
#  742|     if (!g)
#  743|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_quota_rescan");

Error: COMPILER_WARNING (CWE-477): [#def875]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_set_seeding’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:777:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  777 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  775|   {
#  776|     guestfs_h *g;
#  777|->   Data_Get_Struct (gv, guestfs_h, g);
#  778|     if (!g)
#  779|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_set_seeding");

Error: COMPILER_WARNING (CWE-477): [#def876]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:777:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  775|   {
#  776|     guestfs_h *g;
#  777|->   Data_Get_Struct (gv, guestfs_h, g);
#  778|     if (!g)
#  779|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_set_seeding");

Error: COMPILER_WARNING (CWE-477): [#def877]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_subvolume_show’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:813:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  813 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  811|   {
#  812|     guestfs_h *g;
#  813|->   Data_Get_Struct (gv, guestfs_h, g);
#  814|     if (!g)
#  815|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_show");

Error: COMPILER_WARNING (CWE-477): [#def878]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:813:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  811|   {
#  812|     guestfs_h *g;
#  813|->   Data_Get_Struct (gv, guestfs_h, g);
#  814|     if (!g)
#  815|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_show");

Error: COMPILER_WARNING (CWE-477): [#def879]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_chown’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:859:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  859 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  857|   {
#  858|     guestfs_h *g;
#  859|->   Data_Get_Struct (gv, guestfs_h, g);
#  860|     if (!g)
#  861|       rb_raise (rb_eArgError, "%s: used handle after closing it", "chown");

Error: COMPILER_WARNING (CWE-477): [#def880]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:859:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  857|   {
#  858|     guestfs_h *g;
#  859|->   Data_Get_Struct (gv, guestfs_h, g);
#  860|     if (!g)
#  861|       rb_raise (rb_eArgError, "%s: used handle after closing it", "chown");

Error: COMPILER_WARNING (CWE-477): [#def881]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_command’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:926:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  926 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  924|   {
#  925|     guestfs_h *g;
#  926|->   Data_Get_Struct (gv, guestfs_h, g);
#  927|     if (!g)
#  928|       rb_raise (rb_eArgError, "%s: used handle after closing it", "command");

Error: COMPILER_WARNING (CWE-477): [#def882]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:926:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  924|   {
#  925|     guestfs_h *g;
#  926|->   Data_Get_Struct (gv, guestfs_h, g);
#  927|     if (!g)
#  928|       rb_raise (rb_eArgError, "%s: used handle after closing it", "command");

Error: COMPILER_WARNING (CWE-477): [#def883]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_command_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:977:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  977 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  975|   {
#  976|     guestfs_h *g;
#  977|->   Data_Get_Struct (gv, guestfs_h, g);
#  978|     if (!g)
#  979|       rb_raise (rb_eArgError, "%s: used handle after closing it", "command_out");

Error: COMPILER_WARNING (CWE-477): [#def884]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:977:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  975|   {
#  976|     guestfs_h *g;
#  977|->   Data_Get_Struct (gv, guestfs_h, g);
#  978|     if (!g)
#  979|       rb_raise (rb_eArgError, "%s: used handle after closing it", "command_out");

Error: COMPILER_WARNING (CWE-477): [#def885]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_copy_device_to_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1028:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1028 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1026|   {
# 1027|     guestfs_h *g;
# 1028|->   Data_Get_Struct (gv, guestfs_h, g);
# 1029|     if (!g)
# 1030|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_device_to_file");

Error: COMPILER_WARNING (CWE-477): [#def886]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1028:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1026|   {
# 1027|     guestfs_h *g;
# 1028|->   Data_Get_Struct (gv, guestfs_h, g);
# 1029|     if (!g)
# 1030|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_device_to_file");

Error: COMPILER_WARNING (CWE-477): [#def887]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_cp_r’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1105:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1105 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1103|   {
# 1104|     guestfs_h *g;
# 1105|->   Data_Get_Struct (gv, guestfs_h, g);
# 1106|     if (!g)
# 1107|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cp_r");

Error: COMPILER_WARNING (CWE-477): [#def888]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1105:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1103|   {
# 1104|     guestfs_h *g;
# 1105|->   Data_Get_Struct (gv, guestfs_h, g);
# 1106|     if (!g)
# 1107|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cp_r");

Error: COMPILER_WARNING (CWE-477): [#def889]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_debug’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1131:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1131 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1129|   {
# 1130|     guestfs_h *g;
# 1131|->   Data_Get_Struct (gv, guestfs_h, g);
# 1132|     if (!g)
# 1133|       rb_raise (rb_eArgError, "%s: used handle after closing it", "debug");

Error: COMPILER_WARNING (CWE-477): [#def890]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1131:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1129|   {
# 1130|     guestfs_h *g;
# 1131|->   Data_Get_Struct (gv, guestfs_h, g);
# 1132|     if (!g)
# 1133|       rb_raise (rb_eArgError, "%s: used handle after closing it", "debug");

Error: COMPILER_WARNING (CWE-477): [#def891]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_drop_caches’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1187:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1187 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1185|   {
# 1186|     guestfs_h *g;
# 1187|->   Data_Get_Struct (gv, guestfs_h, g);
# 1188|     if (!g)
# 1189|       rb_raise (rb_eArgError, "%s: used handle after closing it", "drop_caches");

Error: COMPILER_WARNING (CWE-477): [#def892]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1187:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1185|   {
# 1186|     guestfs_h *g;
# 1187|->   Data_Get_Struct (gv, guestfs_h, g);
# 1188|     if (!g)
# 1189|       rb_raise (rb_eArgError, "%s: used handle after closing it", "drop_caches");

Error: COMPILER_WARNING (CWE-477): [#def893]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_egrep’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1227:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1227 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1225|   {
# 1226|     guestfs_h *g;
# 1227|->   Data_Get_Struct (gv, guestfs_h, g);
# 1228|     if (!g)
# 1229|       rb_raise (rb_eArgError, "%s: used handle after closing it", "egrep");

Error: COMPILER_WARNING (CWE-477): [#def894]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1227:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1225|   {
# 1226|     guestfs_h *g;
# 1227|->   Data_Get_Struct (gv, guestfs_h, g);
# 1228|     if (!g)
# 1229|       rb_raise (rb_eArgError, "%s: used handle after closing it", "egrep");

Error: COMPILER_WARNING (CWE-477): [#def895]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_file_architecture’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1359:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1359 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1357|   {
# 1358|     guestfs_h *g;
# 1359|->   Data_Get_Struct (gv, guestfs_h, g);
# 1360|     if (!g)
# 1361|       rb_raise (rb_eArgError, "%s: used handle after closing it", "file_architecture");

Error: COMPILER_WARNING (CWE-477): [#def896]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_findfs_partlabel’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1399:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1399 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1397|   {
# 1398|     guestfs_h *g;
# 1399|->   Data_Get_Struct (gv, guestfs_h, g);
# 1400|     if (!g)
# 1401|       rb_raise (rb_eArgError, "%s: used handle after closing it", "findfs_partlabel");

Error: COMPILER_WARNING (CWE-477): [#def897]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_get_backend’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1439:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1439 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1437|   {
# 1438|     guestfs_h *g;
# 1439|->   Data_Get_Struct (gv, guestfs_h, g);
# 1440|     if (!g)
# 1441|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_backend");

Error: COMPILER_WARNING (CWE-477): [#def898]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_get_e2attrs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1548:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1548 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1546|   {
# 1547|     guestfs_h *g;
# 1548|->   Data_Get_Struct (gv, guestfs_h, g);
# 1549|     if (!g)
# 1550|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_e2attrs");

Error: COMPILER_WARNING (CWE-477): [#def899]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_get_e2generation’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1592:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1592 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1590|   {
# 1591|     guestfs_h *g;
# 1592|->   Data_Get_Struct (gv, guestfs_h, g);
# 1593|     if (!g)
# 1594|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_e2generation");

Error: COMPILER_WARNING (CWE-477): [#def900]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_glob_expand’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1647:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1647 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1645|   {
# 1646|     guestfs_h *g;
# 1647|->   Data_Get_Struct (gv, guestfs_h, g);
# 1648|     if (!g)
# 1649|       rb_raise (rb_eArgError, "%s: used handle after closing it", "glob_expand");

Error: COMPILER_WARNING (CWE-477): [#def901]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_grub_install’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1734:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1734 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1732|   {
# 1733|     guestfs_h *g;
# 1734|->   Data_Get_Struct (gv, guestfs_h, g);
# 1735|     if (!g)
# 1736|       rb_raise (rb_eArgError, "%s: used handle after closing it", "grub_install");

Error: COMPILER_WARNING (CWE-477): [#def902]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_add_child’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1773:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1773 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1771|   {
# 1772|     guestfs_h *g;
# 1773|->   Data_Get_Struct (gv, guestfs_h, g);
# 1774|     if (!g)
# 1775|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_add_child");

Error: COMPILER_WARNING (CWE-477): [#def903]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_get_value’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1814:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1814 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1812|   {
# 1813|     guestfs_h *g;
# 1814|->   Data_Get_Struct (gv, guestfs_h, g);
# 1815|     if (!g)
# 1816|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_get_value");

Error: COMPILER_WARNING (CWE-477): [#def904]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_arch’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1855:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1855 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1853|   {
# 1854|     guestfs_h *g;
# 1855|->   Data_Get_Struct (gv, guestfs_h, g);
# 1856|     if (!g)
# 1857|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_arch");

Error: COMPILER_WARNING (CWE-477): [#def905]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_drive_mappings’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1921:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1921 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1919|   {
# 1920|     guestfs_h *g;
# 1921|->   Data_Get_Struct (gv, guestfs_h, g);
# 1922|     if (!g)
# 1923|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_drive_mappings");

Error: COMPILER_WARNING (CWE-477): [#def906]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_windows_current_control_set’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:1970:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1970 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1968|   {
# 1969|     guestfs_h *g;
# 1970|->   Data_Get_Struct (gv, guestfs_h, g);
# 1971|     if (!g)
# 1972|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_windows_current_control_set");

Error: COMPILER_WARNING (CWE-477): [#def907]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_windows_systemroot’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2013:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2013 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2011|   {
# 2012|     guestfs_h *g;
# 2013|->   Data_Get_Struct (gv, guestfs_h, g);
# 2014|     if (!g)
# 2015|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_windows_systemroot");

Error: COMPILER_WARNING (CWE-477): [#def908]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_close_output’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2040:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2040 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2038|   {
# 2039|     guestfs_h *g;
# 2040|->   Data_Get_Struct (gv, guestfs_h, g);
# 2041|     if (!g)
# 2042|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_close_output");

Error: COMPILER_WARNING (CWE-477): [#def909]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rbufferout’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2064:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2064 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2062|   {
# 2063|     guestfs_h *g;
# 2064|->   Data_Get_Struct (gv, guestfs_h, g);
# 2065|     if (!g)
# 2066|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rbufferout");

Error: COMPILER_WARNING (CWE-477): [#def910]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rconstoptstringerr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2092:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2092 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2090|   {
# 2091|     guestfs_h *g;
# 2092|->   Data_Get_Struct (gv, guestfs_h, g);
# 2093|     if (!g)
# 2094|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rconstoptstringerr");

Error: COMPILER_WARNING (CWE-477): [#def911]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rinterr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2117:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2117 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2115|   {
# 2116|     guestfs_h *g;
# 2117|->   Data_Get_Struct (gv, guestfs_h, g);
# 2118|     if (!g)
# 2119|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rinterr");

Error: COMPILER_WARNING (CWE-477): [#def912]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_set_output’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2141:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2141 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2139|   {
# 2140|     guestfs_h *g;
# 2141|->   Data_Get_Struct (gv, guestfs_h, g);
# 2142|     if (!g)
# 2143|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_set_output");

Error: COMPILER_WARNING (CWE-477): [#def913]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_is_chardev’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2185:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2185 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2183|   {
# 2184|     guestfs_h *g;
# 2185|->   Data_Get_Struct (gv, guestfs_h, g);
# 2186|     if (!g)
# 2187|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_chardev");

Error: COMPILER_WARNING (CWE-477): [#def914]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_is_launching’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2237:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2237 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2235|   {
# 2236|     guestfs_h *g;
# 2237|->   Data_Get_Struct (gv, guestfs_h, g);
# 2238|     if (!g)
# 2239|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_launching");

Error: COMPILER_WARNING (CWE-477): [#def915]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_is_lv’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2270 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2268|   {
# 2269|     guestfs_h *g;
# 2270|->   Data_Get_Struct (gv, guestfs_h, g);
# 2271|     if (!g)
# 2272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_lv");

Error: COMPILER_WARNING (CWE-477): [#def916]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_is_socket’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2314:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2314 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2312|   {
# 2313|     guestfs_h *g;
# 2314|->   Data_Get_Struct (gv, guestfs_h, g);
# 2315|     if (!g)
# 2316|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_socket");

Error: COMPILER_WARNING (CWE-477): [#def917]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_journal_open’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2372:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2372 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2370|   {
# 2371|     guestfs_h *g;
# 2372|->   Data_Get_Struct (gv, guestfs_h, g);
# 2373|     if (!g)
# 2374|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_open");

Error: COMPILER_WARNING (CWE-477): [#def918]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_kill_subprocess’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2409:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2409 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2407|   {
# 2408|     guestfs_h *g;
# 2409|->   Data_Get_Struct (gv, guestfs_h, g);
# 2410|     if (!g)
# 2411|       rb_raise (rb_eArgError, "%s: used handle after closing it", "kill_subprocess");

Error: COMPILER_WARNING (CWE-477): [#def919]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_scan_devices’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2452:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2452 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2450|   {
# 2451|     guestfs_h *g;
# 2452|->   Data_Get_Struct (gv, guestfs_h, g);
# 2453|     if (!g)
# 2454|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_scan_devices");

Error: COMPILER_WARNING (CWE-477): [#def920]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_lsetxattr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2509:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2509 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2507|   {
# 2508|     guestfs_h *g;
# 2509|->   Data_Get_Struct (gv, guestfs_h, g);
# 2510|     if (!g)
# 2511|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lsetxattr");

Error: COMPILER_WARNING (CWE-477): [#def921]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_luks_kill_slot’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2549:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2549 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2547|   {
# 2548|     guestfs_h *g;
# 2549|->   Data_Get_Struct (gv, guestfs_h, g);
# 2550|     if (!g)
# 2551|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_kill_slot");

Error: COMPILER_WARNING (CWE-477): [#def922]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_lvm_scan’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2595:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2595 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2593|   {
# 2594|     guestfs_h *g;
# 2595|->   Data_Get_Struct (gv, guestfs_h, g);
# 2596|     if (!g)
# 2597|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvm_scan");

Error: COMPILER_WARNING (CWE-477): [#def923]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_mkdir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2628:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2628 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2626|   {
# 2627|     guestfs_h *g;
# 2628|->   Data_Get_Struct (gv, guestfs_h, g);
# 2629|     if (!g)
# 2630|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkdir");

Error: COMPILER_WARNING (CWE-477): [#def924]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_mkfifo’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2670:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2670 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2668|   {
# 2669|     guestfs_h *g;
# 2670|->   Data_Get_Struct (gv, guestfs_h, g);
# 2671|     if (!g)
# 2672|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkfifo");

Error: COMPILER_WARNING (CWE-477): [#def925]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_mksquashfs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2726:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2726 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2724|   {
# 2725|     guestfs_h *g;
# 2726|->   Data_Get_Struct (gv, guestfs_h, g);
# 2727|     if (!g)
# 2728|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mksquashfs");

Error: COMPILER_WARNING (CWE-477): [#def926]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_modprobe’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2797:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2797 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2795|   {
# 2796|     guestfs_h *g;
# 2797|->   Data_Get_Struct (gv, guestfs_h, g);
# 2798|     if (!g)
# 2799|       rb_raise (rb_eArgError, "%s: used handle after closing it", "modprobe");

Error: COMPILER_WARNING (CWE-477): [#def927]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_ntfscat_i’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2837:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2837 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2835|   {
# 2836|     guestfs_h *g;
# 2837|->   Data_Get_Struct (gv, guestfs_h, g);
# 2838|     if (!g)
# 2839|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfscat_i");

Error: COMPILER_WARNING (CWE-477): [#def928]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_parse_environment’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2882:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2882 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2880|   {
# 2881|     guestfs_h *g;
# 2882|->   Data_Get_Struct (gv, guestfs_h, g);
# 2883|     if (!g)
# 2884|       rb_raise (rb_eArgError, "%s: used handle after closing it", "parse_environment");

Error: COMPILER_WARNING (CWE-477): [#def929]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_part_get_disk_guid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2916:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2916 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2914|   {
# 2915|     guestfs_h *g;
# 2916|->   Data_Get_Struct (gv, guestfs_h, g);
# 2917|     if (!g)
# 2918|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_disk_guid");

Error: COMPILER_WARNING (CWE-477): [#def930]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_part_list’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:2968:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2968 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2966|   {
# 2967|     guestfs_h *g;
# 2968|->   Data_Get_Struct (gv, guestfs_h, g);
# 2969|     if (!g)
# 2970|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_list");

Error: COMPILER_WARNING (CWE-477): [#def931]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_part_set_bootable’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3018:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3018 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3016|   {
# 3017|     guestfs_h *g;
# 3018|->   Data_Get_Struct (gv, guestfs_h, g);
# 3019|     if (!g)
# 3020|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_bootable");

Error: COMPILER_WARNING (CWE-477): [#def932]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_part_set_gpt_attributes’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3060:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3060 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3058|   {
# 3059|     guestfs_h *g;
# 3060|->   Data_Get_Struct (gv, guestfs_h, g);
# 3061|     if (!g)
# 3062|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_gpt_attributes");

Error: COMPILER_WARNING (CWE-477): [#def933]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_part_set_gpt_guid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3097:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3097 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3095|   {
# 3096|     guestfs_h *g;
# 3097|->   Data_Get_Struct (gv, guestfs_h, g);
# 3098|     if (!g)
# 3099|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_gpt_guid");

Error: COMPILER_WARNING (CWE-477): [#def934]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_part_to_dev’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3139:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3139 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3137|   {
# 3138|     guestfs_h *g;
# 3139|->   Data_Get_Struct (gv, guestfs_h, g);
# 3140|     if (!g)
# 3141|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_to_dev");

Error: COMPILER_WARNING (CWE-477): [#def935]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_pvresize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3178:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3178 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3176|   {
# 3177|     guestfs_h *g;
# 3178|->   Data_Get_Struct (gv, guestfs_h, g);
# 3179|     if (!g)
# 3180|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvresize");

Error: COMPILER_WARNING (CWE-477): [#def936]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_pvs_full’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3215:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3215 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3213|   {
# 3214|     guestfs_h *g;
# 3215|->   Data_Get_Struct (gv, guestfs_h, g);
# 3216|     if (!g)
# 3217|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvs_full");

Error: COMPILER_WARNING (CWE-477): [#def937]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_pwrite_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3282:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3282 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3280|   {
# 3281|     guestfs_h *g;
# 3282|->   Data_Get_Struct (gv, guestfs_h, g);
# 3283|     if (!g)
# 3284|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pwrite_device");

Error: COMPILER_WARNING (CWE-477): [#def938]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_readdir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3354:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3354 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3352|   {
# 3353|     guestfs_h *g;
# 3354|->   Data_Get_Struct (gv, guestfs_h, g);
# 3355|     if (!g)
# 3356|       rb_raise (rb_eArgError, "%s: used handle after closing it", "readdir");

Error: COMPILER_WARNING (CWE-477): [#def939]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_readlink’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3397:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3397 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3395|   {
# 3396|     guestfs_h *g;
# 3397|->   Data_Get_Struct (gv, guestfs_h, g);
# 3398|     if (!g)
# 3399|       rb_raise (rb_eArgError, "%s: used handle after closing it", "readlink");

Error: COMPILER_WARNING (CWE-477): [#def940]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_resize2fs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3435:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3435 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3433|   {
# 3434|     guestfs_h *g;
# 3435|->   Data_Get_Struct (gv, guestfs_h, g);
# 3436|     if (!g)
# 3437|       rb_raise (rb_eArgError, "%s: used handle after closing it", "resize2fs");

Error: COMPILER_WARNING (CWE-477): [#def941]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_rsync_in’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3494:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3494 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3492|   {
# 3493|     guestfs_h *g;
# 3494|->   Data_Get_Struct (gv, guestfs_h, g);
# 3495|     if (!g)
# 3496|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rsync_in");

Error: COMPILER_WARNING (CWE-477): [#def942]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_set_e2uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3558:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3558 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3556|   {
# 3557|     guestfs_h *g;
# 3558|->   Data_Get_Struct (gv, guestfs_h, g);
# 3559|     if (!g)
# 3560|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_e2uuid");

Error: COMPILER_WARNING (CWE-477): [#def943]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_set_libvirt_requested_credential’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3599:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3599 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3597|   {
# 3598|     guestfs_h *g;
# 3599|->   Data_Get_Struct (gv, guestfs_h, g);
# 3600|     if (!g)
# 3601|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_libvirt_requested_credential");

Error: COMPILER_WARNING (CWE-477): [#def944]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_set_libvirt_supported_credentials’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3659:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3659 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3657|   {
# 3658|     guestfs_h *g;
# 3659|->   Data_Get_Struct (gv, guestfs_h, g);
# 3660|     if (!g)
# 3661|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_libvirt_supported_credentials");

Error: COMPILER_WARNING (CWE-477): [#def945]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_set_path’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3710:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3710 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3708|   {
# 3709|     guestfs_h *g;
# 3710|->   Data_Get_Struct (gv, guestfs_h, g);
# 3711|     if (!g)
# 3712|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_path");

Error: COMPILER_WARNING (CWE-477): [#def946]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_set_pgroup’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3754:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3754 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3752|   {
# 3753|     guestfs_h *g;
# 3754|->   Data_Get_Struct (gv, guestfs_h, g);
# 3755|     if (!g)
# 3756|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_pgroup");

Error: COMPILER_WARNING (CWE-477): [#def947]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_sfdisk_disk_geometry’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3794:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3794 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3792|   {
# 3793|     guestfs_h *g;
# 3794|->   Data_Get_Struct (gv, guestfs_h, g);
# 3795|     if (!g)
# 3796|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sfdisk_disk_geometry");

Error: COMPILER_WARNING (CWE-477): [#def948]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_sh’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3840:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3840 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3838|   {
# 3839|     guestfs_h *g;
# 3840|->   Data_Get_Struct (gv, guestfs_h, g);
# 3841|     if (!g)
# 3842|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sh");

Error: COMPILER_WARNING (CWE-477): [#def949]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_statns’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3877:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3877 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3875|   {
# 3876|     guestfs_h *g;
# 3877|->   Data_Get_Struct (gv, guestfs_h, g);
# 3878|     if (!g)
# 3879|       rb_raise (rb_eArgError, "%s: used handle after closing it", "statns");

Error: COMPILER_WARNING (CWE-477): [#def950]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_swapon_label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3935:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3935 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3933|   {
# 3934|     guestfs_h *g;
# 3935|->   Data_Get_Struct (gv, guestfs_h, g);
# 3936|     if (!g)
# 3937|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapon_label");

Error: COMPILER_WARNING (CWE-477): [#def951]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_txz_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:3974:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3974 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3972|   {
# 3973|     guestfs_h *g;
# 3974|->   Data_Get_Struct (gv, guestfs_h, g);
# 3975|     if (!g)
# 3976|       rb_raise (rb_eArgError, "%s: used handle after closing it", "txz_out");

Error: COMPILER_WARNING (CWE-477): [#def952]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_umount_all’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:4012:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4012 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4010|   {
# 4011|     guestfs_h *g;
# 4012|->   Data_Get_Struct (gv, guestfs_h, g);
# 4013|     if (!g)
# 4014|       rb_raise (rb_eArgError, "%s: used handle after closing it", "umount_all");

Error: COMPILER_WARNING (CWE-477): [#def953]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_upload_offset’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:4059:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4059 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4057|   {
# 4058|     guestfs_h *g;
# 4059|->   Data_Get_Struct (gv, guestfs_h, g);
# 4060|     if (!g)
# 4061|       rb_raise (rb_eArgError, "%s: used handle after closing it", "upload_offset");

Error: COMPILER_WARNING (CWE-477): [#def954]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_utsname’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:4097:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4097 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4095|   {
# 4096|     guestfs_h *g;
# 4097|->   Data_Get_Struct (gv, guestfs_h, g);
# 4098|     if (!g)
# 4099|       rb_raise (rb_eArgError, "%s: used handle after closing it", "utsname");

Error: COMPILER_WARNING (CWE-477): [#def955]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_vgpvuuids’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:4142:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4142 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4140|   {
# 4141|     guestfs_h *g;
# 4142|->   Data_Get_Struct (gv, guestfs_h, g);
# 4143|     if (!g)
# 4144|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgpvuuids");

Error: COMPILER_WARNING (CWE-477): [#def956]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_write_append’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:4186:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4186 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4184|   {
# 4185|     guestfs_h *g;
# 4186|->   Data_Get_Struct (gv, guestfs_h, g);
# 4187|     if (!g)
# 4188|       rb_raise (rb_eArgError, "%s: used handle after closing it", "write_append");

Error: COMPILER_WARNING (CWE-477): [#def957]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_yara_scan’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:4240:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4240 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4238|   {
# 4239|     guestfs_h *g;
# 4240|->   Data_Get_Struct (gv, guestfs_h, g);
# 4241|     if (!g)
# 4242|       rb_raise (rb_eArgError, "%s: used handle after closing it", "yara_scan");

Error: COMPILER_WARNING (CWE-477): [#def958]
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c: scope_hint: In function ‘guestfs_int_ruby_zgrep’
libguestfs-1.55.9/ruby/ext/guestfs/actions-2.c:4289:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4289 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4287|   {
# 4288|     guestfs_h *g;
# 4289|->   Data_Get_Struct (gv, guestfs_h, g);
# 4290|     if (!g)
# 4291|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zgrep");

Error: COMPILER_WARNING (CWE-477): [#def959]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_acl_get_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:71:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   71 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:37: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   69|   {
#   70|     guestfs_h *g;
#   71|->   Data_Get_Struct (gv, guestfs_h, g);
#   72|     if (!g)
#   73|       rb_raise (rb_eArgError, "%s: used handle after closing it", "acl_get_file");

Error: COMPILER_WARNING (CWE-477): [#def960]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:71:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   69|   {
#   70|     guestfs_h *g;
#   71|->   Data_Get_Struct (gv, guestfs_h, g);
#   72|     if (!g)
#   73|       rb_raise (rb_eArgError, "%s: used handle after closing it", "acl_get_file");

Error: COMPILER_WARNING (CWE-477): [#def961]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_aug_close’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:110:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  110 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  108|   {
#  109|     guestfs_h *g;
#  110|->   Data_Get_Struct (gv, guestfs_h, g);
#  111|     if (!g)
#  112|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_close");

Error: COMPILER_WARNING (CWE-477): [#def962]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:110:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  108|   {
#  109|     guestfs_h *g;
#  110|->   Data_Get_Struct (gv, guestfs_h, g);
#  111|     if (!g)
#  112|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_close");

Error: COMPILER_WARNING (CWE-477): [#def963]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_aug_defnode’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:152:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  152 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  150|   {
#  151|     guestfs_h *g;
#  152|->   Data_Get_Struct (gv, guestfs_h, g);
#  153|     if (!g)
#  154|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_defnode");

Error: COMPILER_WARNING (CWE-477): [#def964]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:152:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  150|   {
#  151|     guestfs_h *g;
#  152|->   Data_Get_Struct (gv, guestfs_h, g);
#  153|     if (!g)
#  154|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_defnode");

Error: COMPILER_WARNING (CWE-477): [#def965]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_aug_get’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:192:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  192 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  190|   {
#  191|     guestfs_h *g;
#  192|->   Data_Get_Struct (gv, guestfs_h, g);
#  193|     if (!g)
#  194|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_get");

Error: COMPILER_WARNING (CWE-477): [#def966]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:192:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  190|   {
#  191|     guestfs_h *g;
#  192|->   Data_Get_Struct (gv, guestfs_h, g);
#  193|     if (!g)
#  194|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_get");

Error: COMPILER_WARNING (CWE-477): [#def967]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_aug_save’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:230:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  230 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  228|   {
#  229|     guestfs_h *g;
#  230|->   Data_Get_Struct (gv, guestfs_h, g);
#  231|     if (!g)
#  232|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_save");

Error: COMPILER_WARNING (CWE-477): [#def968]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:230:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  228|   {
#  229|     guestfs_h *g;
#  230|->   Data_Get_Struct (gv, guestfs_h, g);
#  231|     if (!g)
#  232|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_save");

Error: COMPILER_WARNING (CWE-477): [#def969]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_aug_setm’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:269:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  269 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  267|   {
#  268|     guestfs_h *g;
#  269|->   Data_Get_Struct (gv, guestfs_h, g);
#  270|     if (!g)
#  271|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_setm");

Error: COMPILER_WARNING (CWE-477): [#def970]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:269:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  267|   {
#  268|     guestfs_h *g;
#  269|->   Data_Get_Struct (gv, guestfs_h, g);
#  270|     if (!g)
#  271|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_setm");

Error: COMPILER_WARNING (CWE-477): [#def971]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_available’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:358:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  358 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  356|   {
#  357|     guestfs_h *g;
#  358|->   Data_Get_Struct (gv, guestfs_h, g);
#  359|     if (!g)
#  360|       rb_raise (rb_eArgError, "%s: used handle after closing it", "available");

Error: COMPILER_WARNING (CWE-477): [#def972]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:358:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  356|   {
#  357|     guestfs_h *g;
#  358|->   Data_Get_Struct (gv, guestfs_h, g);
#  359|     if (!g)
#  360|       rb_raise (rb_eArgError, "%s: used handle after closing it", "available");

Error: COMPILER_WARNING (CWE-477): [#def973]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_blkdiscard’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:413:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  413 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  411|   {
#  412|     guestfs_h *g;
#  413|->   Data_Get_Struct (gv, guestfs_h, g);
#  414|     if (!g)
#  415|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blkdiscard");

Error: COMPILER_WARNING (CWE-477): [#def974]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:413:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  411|   {
#  412|     guestfs_h *g;
#  413|->   Data_Get_Struct (gv, guestfs_h, g);
#  414|     if (!g)
#  415|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blkdiscard");

Error: COMPILER_WARNING (CWE-477): [#def975]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_getsz’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:454:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  454 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  452|   {
#  453|     guestfs_h *g;
#  454|->   Data_Get_Struct (gv, guestfs_h, g);
#  455|     if (!g)
#  456|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getsz");

Error: COMPILER_WARNING (CWE-477): [#def976]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:454:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  452|   {
#  453|     guestfs_h *g;
#  454|->   Data_Get_Struct (gv, guestfs_h, g);
#  455|     if (!g)
#  456|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getsz");

Error: COMPILER_WARNING (CWE-477): [#def977]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_setro’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:489:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  489 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  487|   {
#  488|     guestfs_h *g;
#  489|->   Data_Get_Struct (gv, guestfs_h, g);
#  490|     if (!g)
#  491|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_setro");

Error: COMPILER_WARNING (CWE-477): [#def978]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:489:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  487|   {
#  488|     guestfs_h *g;
#  489|->   Data_Get_Struct (gv, guestfs_h, g);
#  490|     if (!g)
#  491|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_setro");

Error: COMPILER_WARNING (CWE-477): [#def979]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_balance_status’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:525:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  525 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  523|   {
#  524|     guestfs_h *g;
#  525|->   Data_Get_Struct (gv, guestfs_h, g);
#  526|     if (!g)
#  527|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_balance_status");

Error: COMPILER_WARNING (CWE-477): [#def980]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:525:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  523|   {
#  524|     guestfs_h *g;
#  525|->   Data_Get_Struct (gv, guestfs_h, g);
#  526|     if (!g)
#  527|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_balance_status");

Error: COMPILER_WARNING (CWE-477): [#def981]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_device_delete’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:569:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  569 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  567|   {
#  568|     guestfs_h *g;
#  569|->   Data_Get_Struct (gv, guestfs_h, g);
#  570|     if (!g)
#  571|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_device_delete");

Error: COMPILER_WARNING (CWE-477): [#def982]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:569:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  567|   {
#  568|     guestfs_h *g;
#  569|->   Data_Get_Struct (gv, guestfs_h, g);
#  570|     if (!g)
#  571|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_device_delete");

Error: COMPILER_WARNING (CWE-477): [#def983]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_filesystem_defragment’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:622:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  622 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  620|   {
#  621|     guestfs_h *g;
#  622|->   Data_Get_Struct (gv, guestfs_h, g);
#  623|     if (!g)
#  624|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_defragment");

Error: COMPILER_WARNING (CWE-477): [#def984]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:622:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  620|   {
#  621|     guestfs_h *g;
#  622|->   Data_Get_Struct (gv, guestfs_h, g);
#  623|     if (!g)
#  624|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_defragment");

Error: COMPILER_WARNING (CWE-477): [#def985]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_filesystem_resize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:695:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  695 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  693|   {
#  694|     guestfs_h *g;
#  695|->   Data_Get_Struct (gv, guestfs_h, g);
#  696|     if (!g)
#  697|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_resize");

Error: COMPILER_WARNING (CWE-477): [#def986]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:695:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  693|   {
#  694|     guestfs_h *g;
#  695|->   Data_Get_Struct (gv, guestfs_h, g);
#  696|     if (!g)
#  697|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_resize");

Error: COMPILER_WARNING (CWE-477): [#def987]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_filesystem_sync’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:746:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  746 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  744|   {
#  745|     guestfs_h *g;
#  746|->   Data_Get_Struct (gv, guestfs_h, g);
#  747|     if (!g)
#  748|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_sync");

Error: COMPILER_WARNING (CWE-477): [#def988]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:746:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  744|   {
#  745|     guestfs_h *g;
#  746|->   Data_Get_Struct (gv, guestfs_h, g);
#  747|     if (!g)
#  748|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_sync");

Error: COMPILER_WARNING (CWE-477): [#def989]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_image’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:787:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  787 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  785|   {
#  786|     guestfs_h *g;
#  787|->   Data_Get_Struct (gv, guestfs_h, g);
#  788|     if (!g)
#  789|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_image");

Error: COMPILER_WARNING (CWE-477): [#def990]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:787:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  785|   {
#  786|     guestfs_h *g;
#  787|->   Data_Get_Struct (gv, guestfs_h, g);
#  788|     if (!g)
#  789|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_image");

Error: COMPILER_WARNING (CWE-477): [#def991]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_qgroup_destroy’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:852:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  852 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  850|   {
#  851|     guestfs_h *g;
#  852|->   Data_Get_Struct (gv, guestfs_h, g);
#  853|     if (!g)
#  854|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_destroy");

Error: COMPILER_WARNING (CWE-477): [#def992]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:852:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  850|   {
#  851|     guestfs_h *g;
#  852|->   Data_Get_Struct (gv, guestfs_h, g);
#  853|     if (!g)
#  854|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_destroy");

Error: COMPILER_WARNING (CWE-477): [#def993]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_subvolume_delete’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:888:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  888 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  886|   {
#  887|     guestfs_h *g;
#  888|->   Data_Get_Struct (gv, guestfs_h, g);
#  889|     if (!g)
#  890|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_delete");

Error: COMPILER_WARNING (CWE-477): [#def994]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:888:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  886|   {
#  887|     guestfs_h *g;
#  888|->   Data_Get_Struct (gv, guestfs_h, g);
#  889|     if (!g)
#  890|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_delete");

Error: COMPILER_WARNING (CWE-477): [#def995]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_subvolume_list’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:924:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  924 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  922|   {
#  923|     guestfs_h *g;
#  924|->   Data_Get_Struct (gv, guestfs_h, g);
#  925|     if (!g)
#  926|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_list");

Error: COMPILER_WARNING (CWE-477): [#def996]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:924:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  922|   {
#  923|     guestfs_h *g;
#  924|->   Data_Get_Struct (gv, guestfs_h, g);
#  925|     if (!g)
#  926|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_list");

Error: COMPILER_WARNING (CWE-477): [#def997]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_btrfstune_enable_skinny_metadata_extent_refs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:969:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  969 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  967|   {
#  968|     guestfs_h *g;
#  969|->   Data_Get_Struct (gv, guestfs_h, g);
#  970|     if (!g)
#  971|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfstune_enable_skinny_metadata_extent_refs");

Error: COMPILER_WARNING (CWE-477): [#def998]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:969:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  967|   {
#  968|     guestfs_h *g;
#  969|->   Data_Get_Struct (gv, guestfs_h, g);
#  970|     if (!g)
#  971|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfstune_enable_skinny_metadata_extent_refs");

Error: COMPILER_WARNING (CWE-477): [#def999]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_cap_get_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1009:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1009 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1007|   {
# 1008|     guestfs_h *g;
# 1009|->   Data_Get_Struct (gv, guestfs_h, g);
# 1010|     if (!g)
# 1011|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cap_get_file");

Error: COMPILER_WARNING (CWE-477): [#def1000]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1009:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1007|   {
# 1008|     guestfs_h *g;
# 1009|->   Data_Get_Struct (gv, guestfs_h, g);
# 1010|     if (!g)
# 1011|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cap_get_file");

Error: COMPILER_WARNING (CWE-477): [#def1001]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_checksum’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1089:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1089 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1087|   {
# 1088|     guestfs_h *g;
# 1089|->   Data_Get_Struct (gv, guestfs_h, g);
# 1090|     if (!g)
# 1091|       rb_raise (rb_eArgError, "%s: used handle after closing it", "checksum");

Error: COMPILER_WARNING (CWE-477): [#def1002]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1089:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1087|   {
# 1088|     guestfs_h *g;
# 1089|->   Data_Get_Struct (gv, guestfs_h, g);
# 1090|     if (!g)
# 1091|       rb_raise (rb_eArgError, "%s: used handle after closing it", "checksum");

Error: COMPILER_WARNING (CWE-477): [#def1003]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_chmod’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1132:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1132 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1130|   {
# 1131|     guestfs_h *g;
# 1132|->   Data_Get_Struct (gv, guestfs_h, g);
# 1133|     if (!g)
# 1134|       rb_raise (rb_eArgError, "%s: used handle after closing it", "chmod");

Error: COMPILER_WARNING (CWE-477): [#def1004]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1132:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1130|   {
# 1131|     guestfs_h *g;
# 1132|->   Data_Get_Struct (gv, guestfs_h, g);
# 1133|     if (!g)
# 1134|       rb_raise (rb_eArgError, "%s: used handle after closing it", "chmod");

Error: COMPILER_WARNING (CWE-477): [#def1005]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_copy_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1175:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1175 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1173|   {
# 1174|     guestfs_h *g;
# 1175|->   Data_Get_Struct (gv, guestfs_h, g);
# 1176|     if (!g)
# 1177|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_out");

Error: COMPILER_WARNING (CWE-477): [#def1006]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1175:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1173|   {
# 1174|     guestfs_h *g;
# 1175|->   Data_Get_Struct (gv, guestfs_h, g);
# 1176|     if (!g)
# 1177|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_out");

Error: COMPILER_WARNING (CWE-477): [#def1007]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_disk_create’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1252:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1252 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1250|   {
# 1251|     guestfs_h *g;
# 1252|->   Data_Get_Struct (gv, guestfs_h, g);
# 1253|     if (!g)
# 1254|       rb_raise (rb_eArgError, "%s: used handle after closing it", "disk_create");

Error: COMPILER_WARNING (CWE-477): [#def1008]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1252:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1250|   {
# 1251|     guestfs_h *g;
# 1252|->   Data_Get_Struct (gv, guestfs_h, g);
# 1253|     if (!g)
# 1254|       rb_raise (rb_eArgError, "%s: used handle after closing it", "disk_create");

Error: COMPILER_WARNING (CWE-477): [#def1009]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_dmesg’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1332:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1332 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1330|   {
# 1331|     guestfs_h *g;
# 1332|->   Data_Get_Struct (gv, guestfs_h, g);
# 1333|     if (!g)
# 1334|       rb_raise (rb_eArgError, "%s: used handle after closing it", "dmesg");

Error: COMPILER_WARNING (CWE-477): [#def1010]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1332:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1330|   {
# 1331|     guestfs_h *g;
# 1332|->   Data_Get_Struct (gv, guestfs_h, g);
# 1333|     if (!g)
# 1334|       rb_raise (rb_eArgError, "%s: used handle after closing it", "dmesg");

Error: COMPILER_WARNING (CWE-477): [#def1011]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_download_blocks’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1389:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1389 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1387|   {
# 1388|     guestfs_h *g;
# 1389|->   Data_Get_Struct (gv, guestfs_h, g);
# 1390|     if (!g)
# 1391|       rb_raise (rb_eArgError, "%s: used handle after closing it", "download_blocks");

Error: COMPILER_WARNING (CWE-477): [#def1012]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1389:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1387|   {
# 1388|     guestfs_h *g;
# 1389|->   Data_Get_Struct (gv, guestfs_h, g);
# 1390|     if (!g)
# 1391|       rb_raise (rb_eArgError, "%s: used handle after closing it", "download_blocks");

Error: COMPILER_WARNING (CWE-477): [#def1013]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_du’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1452:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1452 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1450|   {
# 1451|     guestfs_h *g;
# 1452|->   Data_Get_Struct (gv, guestfs_h, g);
# 1453|     if (!g)
# 1454|       rb_raise (rb_eArgError, "%s: used handle after closing it", "du");

Error: COMPILER_WARNING (CWE-477): [#def1014]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1452:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1450|   {
# 1451|     guestfs_h *g;
# 1452|->   Data_Get_Struct (gv, guestfs_h, g);
# 1453|     if (!g)
# 1454|       rb_raise (rb_eArgError, "%s: used handle after closing it", "du");

Error: COMPILER_WARNING (CWE-477): [#def1015]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_e2fsck_f’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1489:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1489 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1487|   {
# 1488|     guestfs_h *g;
# 1489|->   Data_Get_Struct (gv, guestfs_h, g);
# 1490|     if (!g)
# 1491|       rb_raise (rb_eArgError, "%s: used handle after closing it", "e2fsck_f");

Error: COMPILER_WARNING (CWE-477): [#def1016]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1489:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1487|   {
# 1488|     guestfs_h *g;
# 1489|->   Data_Get_Struct (gv, guestfs_h, g);
# 1490|     if (!g)
# 1491|       rb_raise (rb_eArgError, "%s: used handle after closing it", "e2fsck_f");

Error: COMPILER_WARNING (CWE-477): [#def1017]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_echo_daemon’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1531:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1531 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1529|   {
# 1530|     guestfs_h *g;
# 1531|->   Data_Get_Struct (gv, guestfs_h, g);
# 1532|     if (!g)
# 1533|       rb_raise (rb_eArgError, "%s: used handle after closing it", "echo_daemon");

Error: COMPILER_WARNING (CWE-477): [#def1018]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1531:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1529|   {
# 1530|     guestfs_h *g;
# 1531|->   Data_Get_Struct (gv, guestfs_h, g);
# 1532|     if (!g)
# 1533|       rb_raise (rb_eArgError, "%s: used handle after closing it", "echo_daemon");

Error: COMPILER_WARNING (CWE-477): [#def1019]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_equal’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1582:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1582 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1580|   {
# 1581|     guestfs_h *g;
# 1582|->   Data_Get_Struct (gv, guestfs_h, g);
# 1583|     if (!g)
# 1584|       rb_raise (rb_eArgError, "%s: used handle after closing it", "equal");

Error: COMPILER_WARNING (CWE-477): [#def1020]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1582:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1580|   {
# 1581|     guestfs_h *g;
# 1582|->   Data_Get_Struct (gv, guestfs_h, g);
# 1583|     if (!g)
# 1584|       rb_raise (rb_eArgError, "%s: used handle after closing it", "equal");

Error: COMPILER_WARNING (CWE-477): [#def1021]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_fgrepi’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1623:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1623 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1621|   {
# 1622|     guestfs_h *g;
# 1623|->   Data_Get_Struct (gv, guestfs_h, g);
# 1624|     if (!g)
# 1625|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fgrepi");

Error: COMPILER_WARNING (CWE-477): [#def1022]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1623:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1621|   {
# 1622|     guestfs_h *g;
# 1623|->   Data_Get_Struct (gv, guestfs_h, g);
# 1624|     if (!g)
# 1625|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fgrepi");

Error: COMPILER_WARNING (CWE-477): [#def1023]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_get_backend_setting’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1677:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1677 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1675|   {
# 1676|     guestfs_h *g;
# 1677|->   Data_Get_Struct (gv, guestfs_h, g);
# 1678|     if (!g)
# 1679|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_backend_setting");

Error: COMPILER_WARNING (CWE-477): [#def1024]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1677:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1675|   {
# 1676|     guestfs_h *g;
# 1677|->   Data_Get_Struct (gv, guestfs_h, g);
# 1678|     if (!g)
# 1679|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_backend_setting");

Error: COMPILER_WARNING (CWE-477): [#def1025]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_get_backend_settings’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1719:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1719 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1717|   {
# 1718|     guestfs_h *g;
# 1719|->   Data_Get_Struct (gv, guestfs_h, g);
# 1720|     if (!g)
# 1721|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_backend_settings");

Error: COMPILER_WARNING (CWE-477): [#def1026]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1719:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1717|   {
# 1718|     guestfs_h *g;
# 1719|->   Data_Get_Struct (gv, guestfs_h, g);
# 1720|     if (!g)
# 1721|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_backend_settings");

Error: COMPILER_WARNING (CWE-477): [#def1027]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_get_e2label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1762:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1762 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1760|   {
# 1761|     guestfs_h *g;
# 1762|->   Data_Get_Struct (gv, guestfs_h, g);
# 1763|     if (!g)
# 1764|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_e2label");

Error: COMPILER_WARNING (CWE-477): [#def1028]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1762:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1760|   {
# 1761|     guestfs_h *g;
# 1762|->   Data_Get_Struct (gv, guestfs_h, g);
# 1763|     if (!g)
# 1764|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_e2label");

Error: COMPILER_WARNING (CWE-477): [#def1029]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_get_recovery_proc’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1799:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1799 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1797|   {
# 1798|     guestfs_h *g;
# 1799|->   Data_Get_Struct (gv, guestfs_h, g);
# 1800|     if (!g)
# 1801|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_recovery_proc");

Error: COMPILER_WARNING (CWE-477): [#def1030]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1799:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1797|   {
# 1798|     guestfs_h *g;
# 1799|->   Data_Get_Struct (gv, guestfs_h, g);
# 1800|     if (!g)
# 1801|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_recovery_proc");

Error: COMPILER_WARNING (CWE-477): [#def1031]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_get_tmpdir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1832:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1832 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1830|   {
# 1831|     guestfs_h *g;
# 1832|->   Data_Get_Struct (gv, guestfs_h, g);
# 1833|     if (!g)
# 1834|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_tmpdir");

Error: COMPILER_WARNING (CWE-477): [#def1032]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1832:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1830|   {
# 1831|     guestfs_h *g;
# 1832|->   Data_Get_Struct (gv, guestfs_h, g);
# 1833|     if (!g)
# 1834|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_tmpdir");

Error: COMPILER_WARNING (CWE-477): [#def1033]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_getcon’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1873:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1873 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1871|   {
# 1872|     guestfs_h *g;
# 1873|->   Data_Get_Struct (gv, guestfs_h, g);
# 1874|     if (!g)
# 1875|       rb_raise (rb_eArgError, "%s: used handle after closing it", "getcon");

Error: COMPILER_WARNING (CWE-477): [#def1034]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1873:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1871|   {
# 1872|     guestfs_h *g;
# 1873|->   Data_Get_Struct (gv, guestfs_h, g);
# 1874|     if (!g)
# 1875|       rb_raise (rb_eArgError, "%s: used handle after closing it", "getcon");

Error: COMPILER_WARNING (CWE-477): [#def1035]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_getxattr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1928:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1928 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1926|   {
# 1927|     guestfs_h *g;
# 1928|->   Data_Get_Struct (gv, guestfs_h, g);
# 1929|     if (!g)
# 1930|       rb_raise (rb_eArgError, "%s: used handle after closing it", "getxattr");

Error: COMPILER_WARNING (CWE-477): [#def1036]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1928:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1926|   {
# 1927|     guestfs_h *g;
# 1928|->   Data_Get_Struct (gv, guestfs_h, g);
# 1929|     if (!g)
# 1930|       rb_raise (rb_eArgError, "%s: used handle after closing it", "getxattr");

Error: COMPILER_WARNING (CWE-477): [#def1037]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_hivex_close’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1970:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1970 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1968|   {
# 1969|     guestfs_h *g;
# 1970|->   Data_Get_Struct (gv, guestfs_h, g);
# 1971|     if (!g)
# 1972|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_close");

Error: COMPILER_WARNING (CWE-477): [#def1038]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:1970:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1968|   {
# 1969|     guestfs_h *g;
# 1970|->   Data_Get_Struct (gv, guestfs_h, g);
# 1971|     if (!g)
# 1972|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_close");

Error: COMPILER_WARNING (CWE-477): [#def1039]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_hivex_open’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2013:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2013 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2011|   {
# 2012|     guestfs_h *g;
# 2013|->   Data_Get_Struct (gv, guestfs_h, g);
# 2014|     if (!g)
# 2015|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_open");

Error: COMPILER_WARNING (CWE-477): [#def1040]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2013:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2011|   {
# 2012|     guestfs_h *g;
# 2013|->   Data_Get_Struct (gv, guestfs_h, g);
# 2014|     if (!g)
# 2015|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_open");

Error: COMPILER_WARNING (CWE-477): [#def1041]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_hivex_value_utf8’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2090:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2090 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2088|   {
# 2089|     guestfs_h *g;
# 2090|->   Data_Get_Struct (gv, guestfs_h, g);
# 2091|     if (!g)
# 2092|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_utf8");

Error: COMPILER_WARNING (CWE-477): [#def1042]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2090:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2088|   {
# 2089|     guestfs_h *g;
# 2090|->   Data_Get_Struct (gv, guestfs_h, g);
# 2091|     if (!g)
# 2092|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_value_utf8");

Error: COMPILER_WARNING (CWE-477): [#def1043]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_inotify_add_watch’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2137:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2137 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2135|   {
# 2136|     guestfs_h *g;
# 2137|->   Data_Get_Struct (gv, guestfs_h, g);
# 2138|     if (!g)
# 2139|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_add_watch");

Error: COMPILER_WARNING (CWE-477): [#def1044]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2137:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2135|   {
# 2136|     guestfs_h *g;
# 2137|->   Data_Get_Struct (gv, guestfs_h, g);
# 2138|     if (!g)
# 2139|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_add_watch");

Error: COMPILER_WARNING (CWE-477): [#def1045]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_inotify_init’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2203:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2203 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2201|   {
# 2202|     guestfs_h *g;
# 2203|->   Data_Get_Struct (gv, guestfs_h, g);
# 2204|     if (!g)
# 2205|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_init");

Error: COMPILER_WARNING (CWE-477): [#def1046]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2203:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2201|   {
# 2202|     guestfs_h *g;
# 2203|->   Data_Get_Struct (gv, guestfs_h, g);
# 2204|     if (!g)
# 2205|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_init");

Error: COMPILER_WARNING (CWE-477): [#def1047]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_type’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2270 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2268|   {
# 2269|     guestfs_h *g;
# 2270|->   Data_Get_Struct (gv, guestfs_h, g);
# 2271|     if (!g)
# 2272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_type");

Error: COMPILER_WARNING (CWE-477): [#def1048]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2268|   {
# 2269|     guestfs_h *g;
# 2270|->   Data_Get_Struct (gv, guestfs_h, g);
# 2271|     if (!g)
# 2272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_type");

Error: COMPILER_WARNING (CWE-477): [#def1049]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_inspect_is_live’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2309:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2309 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2307|   {
# 2308|     guestfs_h *g;
# 2309|->   Data_Get_Struct (gv, guestfs_h, g);
# 2310|     if (!g)
# 2311|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_is_live");

Error: COMPILER_WARNING (CWE-477): [#def1050]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2309:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2307|   {
# 2308|     guestfs_h *g;
# 2309|->   Data_Get_Struct (gv, guestfs_h, g);
# 2310|     if (!g)
# 2311|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_is_live");

Error: COMPILER_WARNING (CWE-477): [#def1051]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_internal_exit’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2336:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2336 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2334|   {
# 2335|     guestfs_h *g;
# 2336|->   Data_Get_Struct (gv, guestfs_h, g);
# 2337|     if (!g)
# 2338|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_exit");

Error: COMPILER_WARNING (CWE-477): [#def1052]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2336:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2334|   {
# 2335|     guestfs_h *g;
# 2336|->   Data_Get_Struct (gv, guestfs_h, g);
# 2337|     if (!g)
# 2338|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_exit");

Error: COMPILER_WARNING (CWE-477): [#def1053]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_only_optargs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2360:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2360 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2358|   {
# 2359|     guestfs_h *g;
# 2360|->   Data_Get_Struct (gv, guestfs_h, g);
# 2361|     if (!g)
# 2362|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_only_optargs");

Error: COMPILER_WARNING (CWE-477): [#def1054]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2360:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2358|   {
# 2359|     guestfs_h *g;
# 2360|->   Data_Get_Struct (gv, guestfs_h, g);
# 2361|     if (!g)
# 2362|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_only_optargs");

Error: COMPILER_WARNING (CWE-477): [#def1055]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rconststringerr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2399:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2399 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2397|   {
# 2398|     guestfs_h *g;
# 2399|->   Data_Get_Struct (gv, guestfs_h, g);
# 2400|     if (!g)
# 2401|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rconststringerr");

Error: COMPILER_WARNING (CWE-477): [#def1056]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2399:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2397|   {
# 2398|     guestfs_h *g;
# 2399|->   Data_Get_Struct (gv, guestfs_h, g);
# 2400|     if (!g)
# 2401|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rconststringerr");

Error: COMPILER_WARNING (CWE-477): [#def1057]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_is_dir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2443:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2443 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2441|   {
# 2442|     guestfs_h *g;
# 2443|->   Data_Get_Struct (gv, guestfs_h, g);
# 2444|     if (!g)
# 2445|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_dir");

Error: COMPILER_WARNING (CWE-477): [#def1058]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2443:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2441|   {
# 2442|     guestfs_h *g;
# 2443|->   Data_Get_Struct (gv, guestfs_h, g);
# 2444|     if (!g)
# 2445|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_dir");

Error: COMPILER_WARNING (CWE-477): [#def1059]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_is_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2504:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2504 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2502|   {
# 2503|     guestfs_h *g;
# 2504|->   Data_Get_Struct (gv, guestfs_h, g);
# 2505|     if (!g)
# 2506|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_file");

Error: COMPILER_WARNING (CWE-477): [#def1060]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2504:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2502|   {
# 2503|     guestfs_h *g;
# 2504|->   Data_Get_Struct (gv, guestfs_h, g);
# 2505|     if (!g)
# 2506|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_file");

Error: COMPILER_WARNING (CWE-477): [#def1061]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_is_whole_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2555:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2555 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2553|   {
# 2554|     guestfs_h *g;
# 2555|->   Data_Get_Struct (gv, guestfs_h, g);
# 2556|     if (!g)
# 2557|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_whole_device");

Error: COMPILER_WARNING (CWE-477): [#def1062]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2555:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2553|   {
# 2554|     guestfs_h *g;
# 2555|->   Data_Get_Struct (gv, guestfs_h, g);
# 2556|     if (!g)
# 2557|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_whole_device");

Error: COMPILER_WARNING (CWE-477): [#def1063]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_is_zero_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2592:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2592 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2590|   {
# 2591|     guestfs_h *g;
# 2592|->   Data_Get_Struct (gv, guestfs_h, g);
# 2593|     if (!g)
# 2594|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_zero_device");

Error: COMPILER_WARNING (CWE-477): [#def1064]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2592:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2590|   {
# 2591|     guestfs_h *g;
# 2592|->   Data_Get_Struct (gv, guestfs_h, g);
# 2593|     if (!g)
# 2594|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_zero_device");

Error: COMPILER_WARNING (CWE-477): [#def1065]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_journal_get_realtime_usec’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2628:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2628 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2626|   {
# 2627|     guestfs_h *g;
# 2628|->   Data_Get_Struct (gv, guestfs_h, g);
# 2629|     if (!g)
# 2630|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_get_realtime_usec");

Error: COMPILER_WARNING (CWE-477): [#def1066]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2628:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2626|   {
# 2627|     guestfs_h *g;
# 2628|->   Data_Get_Struct (gv, guestfs_h, g);
# 2629|     if (!g)
# 2630|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_get_realtime_usec");

Error: COMPILER_WARNING (CWE-477): [#def1067]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_journal_set_data_threshold’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2668:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2668 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2666|   {
# 2667|     guestfs_h *g;
# 2668|->   Data_Get_Struct (gv, guestfs_h, g);
# 2669|     if (!g)
# 2670|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_set_data_threshold");

Error: COMPILER_WARNING (CWE-477): [#def1068]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2668:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2666|   {
# 2667|     guestfs_h *g;
# 2668|->   Data_Get_Struct (gv, guestfs_h, g);
# 2669|     if (!g)
# 2670|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_set_data_threshold");

Error: COMPILER_WARNING (CWE-477): [#def1069]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_launch’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2708:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2708 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2706|   {
# 2707|     guestfs_h *g;
# 2708|->   Data_Get_Struct (gv, guestfs_h, g);
# 2709|     if (!g)
# 2710|       rb_raise (rb_eArgError, "%s: used handle after closing it", "launch");

Error: COMPILER_WARNING (CWE-477): [#def1070]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2708:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2706|   {
# 2707|     guestfs_h *g;
# 2708|->   Data_Get_Struct (gv, guestfs_h, g);
# 2709|     if (!g)
# 2710|       rb_raise (rb_eArgError, "%s: used handle after closing it", "launch");

Error: COMPILER_WARNING (CWE-477): [#def1071]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_remove_all’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2744:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2744 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2742|   {
# 2743|     guestfs_h *g;
# 2744|->   Data_Get_Struct (gv, guestfs_h, g);
# 2745|     if (!g)
# 2746|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_remove_all");

Error: COMPILER_WARNING (CWE-477): [#def1072]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2744:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2742|   {
# 2743|     guestfs_h *g;
# 2744|->   Data_Get_Struct (gv, guestfs_h, g);
# 2745|     if (!g)
# 2746|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_remove_all");

Error: COMPILER_WARNING (CWE-477): [#def1073]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_volume_hint’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2782:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2782 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2780|   {
# 2781|     guestfs_h *g;
# 2782|->   Data_Get_Struct (gv, guestfs_h, g);
# 2783|     if (!g)
# 2784|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_volume_hint");

Error: COMPILER_WARNING (CWE-477): [#def1074]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2782:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2780|   {
# 2781|     guestfs_h *g;
# 2782|->   Data_Get_Struct (gv, guestfs_h, g);
# 2783|     if (!g)
# 2784|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_volume_hint");

Error: COMPILER_WARNING (CWE-477): [#def1075]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_volume_type’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2825:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2825 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2823|   {
# 2824|     guestfs_h *g;
# 2825|->   Data_Get_Struct (gv, guestfs_h, g);
# 2826|     if (!g)
# 2827|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_volume_type");

Error: COMPILER_WARNING (CWE-477): [#def1076]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2825:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2823|   {
# 2824|     guestfs_h *g;
# 2825|->   Data_Get_Struct (gv, guestfs_h, g);
# 2826|     if (!g)
# 2827|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_volume_type");

Error: COMPILER_WARNING (CWE-477): [#def1077]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_list_devices’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2865:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2865 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2863|   {
# 2864|     guestfs_h *g;
# 2865|->   Data_Get_Struct (gv, guestfs_h, g);
# 2866|     if (!g)
# 2867|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_devices");

Error: COMPILER_WARNING (CWE-477): [#def1078]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2865:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2863|   {
# 2864|     guestfs_h *g;
# 2865|->   Data_Get_Struct (gv, guestfs_h, g);
# 2866|     if (!g)
# 2867|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_devices");

Error: COMPILER_WARNING (CWE-477): [#def1079]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_list_filesystems’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2939:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2939 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2937|   {
# 2938|     guestfs_h *g;
# 2939|->   Data_Get_Struct (gv, guestfs_h, g);
# 2940|     if (!g)
# 2941|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_filesystems");

Error: COMPILER_WARNING (CWE-477): [#def1080]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2939:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2937|   {
# 2938|     guestfs_h *g;
# 2939|->   Data_Get_Struct (gv, guestfs_h, g);
# 2940|     if (!g)
# 2941|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_filesystems");

Error: COMPILER_WARNING (CWE-477): [#def1081]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_ls’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2981:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2981 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2979|   {
# 2980|     guestfs_h *g;
# 2981|->   Data_Get_Struct (gv, guestfs_h, g);
# 2982|     if (!g)
# 2983|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ls");

Error: COMPILER_WARNING (CWE-477): [#def1082]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:2981:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2979|   {
# 2980|     guestfs_h *g;
# 2981|->   Data_Get_Struct (gv, guestfs_h, g);
# 2982|     if (!g)
# 2983|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ls");

Error: COMPILER_WARNING (CWE-477): [#def1083]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_ls0’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3030:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3030 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3028|   {
# 3029|     guestfs_h *g;
# 3030|->   Data_Get_Struct (gv, guestfs_h, g);
# 3031|     if (!g)
# 3032|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ls0");

Error: COMPILER_WARNING (CWE-477): [#def1084]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3030:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3028|   {
# 3029|     guestfs_h *g;
# 3030|->   Data_Get_Struct (gv, guestfs_h, g);
# 3031|     if (!g)
# 3032|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ls0");

Error: COMPILER_WARNING (CWE-477): [#def1085]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_lstatns’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3070:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3070 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3068|   {
# 3069|     guestfs_h *g;
# 3070|->   Data_Get_Struct (gv, guestfs_h, g);
# 3071|     if (!g)
# 3072|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstatns");

Error: COMPILER_WARNING (CWE-477): [#def1086]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3070:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3068|   {
# 3069|     guestfs_h *g;
# 3070|->   Data_Get_Struct (gv, guestfs_h, g);
# 3071|     if (!g)
# 3072|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lstatns");

Error: COMPILER_WARNING (CWE-477): [#def1087]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_luks_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3129:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3129 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3127|   {
# 3128|     guestfs_h *g;
# 3129|->   Data_Get_Struct (gv, guestfs_h, g);
# 3130|     if (!g)
# 3131|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1088]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3129:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3127|   {
# 3128|     guestfs_h *g;
# 3129|->   Data_Get_Struct (gv, guestfs_h, g);
# 3130|     if (!g)
# 3131|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1089]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_lxattrlist’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3185:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3185 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3183|   {
# 3184|     guestfs_h *g;
# 3185|->   Data_Get_Struct (gv, guestfs_h, g);
# 3186|     if (!g)
# 3187|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lxattrlist");

Error: COMPILER_WARNING (CWE-477): [#def1090]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3185:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3183|   {
# 3184|     guestfs_h *g;
# 3185|->   Data_Get_Struct (gv, guestfs_h, g);
# 3186|     if (!g)
# 3187|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lxattrlist");

Error: COMPILER_WARNING (CWE-477): [#def1091]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mkdir_mode’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3247:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3247 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3245|   {
# 3246|     guestfs_h *g;
# 3247|->   Data_Get_Struct (gv, guestfs_h, g);
# 3248|     if (!g)
# 3249|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkdir_mode");

Error: COMPILER_WARNING (CWE-477): [#def1092]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3247:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3245|   {
# 3246|     guestfs_h *g;
# 3247|->   Data_Get_Struct (gv, guestfs_h, g);
# 3248|     if (!g)
# 3249|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkdir_mode");

Error: COMPILER_WARNING (CWE-477): [#def1093]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mkdir_p’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3283:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3283 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3281|   {
# 3282|     guestfs_h *g;
# 3283|->   Data_Get_Struct (gv, guestfs_h, g);
# 3284|     if (!g)
# 3285|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkdir_p");

Error: COMPILER_WARNING (CWE-477): [#def1094]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3283:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3281|   {
# 3282|     guestfs_h *g;
# 3283|->   Data_Get_Struct (gv, guestfs_h, g);
# 3284|     if (!g)
# 3285|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkdir_p");

Error: COMPILER_WARNING (CWE-477): [#def1095]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mke2fs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3327:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3327 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3325|   {
# 3326|     guestfs_h *g;
# 3327|->   Data_Get_Struct (gv, guestfs_h, g);
# 3328|     if (!g)
# 3329|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs");

Error: COMPILER_WARNING (CWE-477): [#def1096]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3327:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3325|   {
# 3326|     guestfs_h *g;
# 3327|->   Data_Get_Struct (gv, guestfs_h, g);
# 3328|     if (!g)
# 3329|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs");

Error: COMPILER_WARNING (CWE-477): [#def1097]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mke2fs_JL’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3566:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3566 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3564|   {
# 3565|     guestfs_h *g;
# 3566|->   Data_Get_Struct (gv, guestfs_h, g);
# 3567|     if (!g)
# 3568|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs_JL");

Error: COMPILER_WARNING (CWE-477): [#def1098]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3566:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3564|   {
# 3565|     guestfs_h *g;
# 3566|->   Data_Get_Struct (gv, guestfs_h, g);
# 3567|     if (!g)
# 3568|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs_JL");

Error: COMPILER_WARNING (CWE-477): [#def1099]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mke2fs_JU’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3611:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3611 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3609|   {
# 3610|     guestfs_h *g;
# 3611|->   Data_Get_Struct (gv, guestfs_h, g);
# 3612|     if (!g)
# 3613|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs_JU");

Error: COMPILER_WARNING (CWE-477): [#def1100]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3611:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3609|   {
# 3610|     guestfs_h *g;
# 3611|->   Data_Get_Struct (gv, guestfs_h, g);
# 3612|     if (!g)
# 3613|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs_JU");

Error: COMPILER_WARNING (CWE-477): [#def1101]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mke2journal’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3654:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3654 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3652|   {
# 3653|     guestfs_h *g;
# 3654|->   Data_Get_Struct (gv, guestfs_h, g);
# 3655|     if (!g)
# 3656|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2journal");

Error: COMPILER_WARNING (CWE-477): [#def1102]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3654:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3652|   {
# 3653|     guestfs_h *g;
# 3654|->   Data_Get_Struct (gv, guestfs_h, g);
# 3655|     if (!g)
# 3656|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2journal");

Error: COMPILER_WARNING (CWE-477): [#def1103]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mknod_b’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3700:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3700 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3698|   {
# 3699|     guestfs_h *g;
# 3700|->   Data_Get_Struct (gv, guestfs_h, g);
# 3701|     if (!g)
# 3702|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mknod_b");

Error: COMPILER_WARNING (CWE-477): [#def1104]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3700:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3698|   {
# 3699|     guestfs_h *g;
# 3700|->   Data_Get_Struct (gv, guestfs_h, g);
# 3701|     if (!g)
# 3702|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mknod_b");

Error: COMPILER_WARNING (CWE-477): [#def1105]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_mount_local’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3764:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3764 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3762|   {
# 3763|     guestfs_h *g;
# 3764|->   Data_Get_Struct (gv, guestfs_h, g);
# 3765|     if (!g)
# 3766|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_local");

Error: COMPILER_WARNING (CWE-477): [#def1106]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3764:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3762|   {
# 3763|     guestfs_h *g;
# 3764|->   Data_Get_Struct (gv, guestfs_h, g);
# 3765|     if (!g)
# 3766|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_local");

Error: COMPILER_WARNING (CWE-477): [#def1107]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_ntfsresize_size’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3834:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3834 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3832|   {
# 3833|     guestfs_h *g;
# 3834|->   Data_Get_Struct (gv, guestfs_h, g);
# 3835|     if (!g)
# 3836|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsresize_size");

Error: COMPILER_WARNING (CWE-477): [#def1108]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3834:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3832|   {
# 3833|     guestfs_h *g;
# 3834|->   Data_Get_Struct (gv, guestfs_h, g);
# 3835|     if (!g)
# 3836|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsresize_size");

Error: COMPILER_WARNING (CWE-477): [#def1109]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_part_del’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3875:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3875 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3873|   {
# 3874|     guestfs_h *g;
# 3875|->   Data_Get_Struct (gv, guestfs_h, g);
# 3876|     if (!g)
# 3877|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_del");

Error: COMPILER_WARNING (CWE-477): [#def1110]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3875:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3873|   {
# 3874|     guestfs_h *g;
# 3875|->   Data_Get_Struct (gv, guestfs_h, g);
# 3876|     if (!g)
# 3877|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_del");

Error: COMPILER_WARNING (CWE-477): [#def1111]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_part_get_gpt_type’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3910:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3910 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3908|   {
# 3909|     guestfs_h *g;
# 3910|->   Data_Get_Struct (gv, guestfs_h, g);
# 3911|     if (!g)
# 3912|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_gpt_type");

Error: COMPILER_WARNING (CWE-477): [#def1112]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3910:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3908|   {
# 3909|     guestfs_h *g;
# 3910|->   Data_Get_Struct (gv, guestfs_h, g);
# 3911|     if (!g)
# 3912|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_gpt_type");

Error: COMPILER_WARNING (CWE-477): [#def1113]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_ping_daemon’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3950:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3950 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3948|   {
# 3949|     guestfs_h *g;
# 3950|->   Data_Get_Struct (gv, guestfs_h, g);
# 3951|     if (!g)
# 3952|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ping_daemon");

Error: COMPILER_WARNING (CWE-477): [#def1114]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3950:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3948|   {
# 3949|     guestfs_h *g;
# 3950|->   Data_Get_Struct (gv, guestfs_h, g);
# 3951|     if (!g)
# 3952|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ping_daemon");

Error: COMPILER_WARNING (CWE-477): [#def1115]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_remove_drive’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3984:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3984 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3982|   {
# 3983|     guestfs_h *g;
# 3984|->   Data_Get_Struct (gv, guestfs_h, g);
# 3985|     if (!g)
# 3986|       rb_raise (rb_eArgError, "%s: used handle after closing it", "remove_drive");

Error: COMPILER_WARNING (CWE-477): [#def1116]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:3984:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3982|   {
# 3983|     guestfs_h *g;
# 3984|->   Data_Get_Struct (gv, guestfs_h, g);
# 3985|     if (!g)
# 3986|       rb_raise (rb_eArgError, "%s: used handle after closing it", "remove_drive");

Error: COMPILER_WARNING (CWE-477): [#def1117]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_rm’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4019:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4019 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4017|   {
# 4018|     guestfs_h *g;
# 4019|->   Data_Get_Struct (gv, guestfs_h, g);
# 4020|     if (!g)
# 4021|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rm");

Error: COMPILER_WARNING (CWE-477): [#def1118]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4019:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4017|   {
# 4018|     guestfs_h *g;
# 4019|->   Data_Get_Struct (gv, guestfs_h, g);
# 4020|     if (!g)
# 4021|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rm");

Error: COMPILER_WARNING (CWE-477): [#def1119]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_rmdir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4052:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4052 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4050|   {
# 4051|     guestfs_h *g;
# 4052|->   Data_Get_Struct (gv, guestfs_h, g);
# 4053|     if (!g)
# 4054|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rmdir");

Error: COMPILER_WARNING (CWE-477): [#def1120]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4052:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4050|   {
# 4051|     guestfs_h *g;
# 4052|->   Data_Get_Struct (gv, guestfs_h, g);
# 4053|     if (!g)
# 4054|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rmdir");

Error: COMPILER_WARNING (CWE-477): [#def1121]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_rsync’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4107:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4107 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4105|   {
# 4106|     guestfs_h *g;
# 4107|->   Data_Get_Struct (gv, guestfs_h, g);
# 4108|     if (!g)
# 4109|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rsync");

Error: COMPILER_WARNING (CWE-477): [#def1122]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4107:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4105|   {
# 4106|     guestfs_h *g;
# 4107|->   Data_Get_Struct (gv, guestfs_h, g);
# 4108|     if (!g)
# 4109|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rsync");

Error: COMPILER_WARNING (CWE-477): [#def1123]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_set_backend_settings’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4179:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4179 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4177|   {
# 4178|     guestfs_h *g;
# 4179|->   Data_Get_Struct (gv, guestfs_h, g);
# 4180|     if (!g)
# 4181|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_backend_settings");

Error: COMPILER_WARNING (CWE-477): [#def1124]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4179:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4177|   {
# 4178|     guestfs_h *g;
# 4179|->   Data_Get_Struct (gv, guestfs_h, g);
# 4180|     if (!g)
# 4181|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_backend_settings");

Error: COMPILER_WARNING (CWE-477): [#def1125]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_set_hv’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4241:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4241 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4239|   {
# 4240|     guestfs_h *g;
# 4241|->   Data_Get_Struct (gv, guestfs_h, g);
# 4242|     if (!g)
# 4243|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_hv");

Error: COMPILER_WARNING (CWE-477): [#def1126]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4241:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4239|   {
# 4240|     guestfs_h *g;
# 4241|->   Data_Get_Struct (gv, guestfs_h, g);
# 4242|     if (!g)
# 4243|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_hv");

Error: COMPILER_WARNING (CWE-477): [#def1127]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_set_qemu’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4294:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4294 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4292|   {
# 4293|     guestfs_h *g;
# 4294|->   Data_Get_Struct (gv, guestfs_h, g);
# 4295|     if (!g)
# 4296|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_qemu");

Error: COMPILER_WARNING (CWE-477): [#def1128]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4294:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4292|   {
# 4293|     guestfs_h *g;
# 4294|->   Data_Get_Struct (gv, guestfs_h, g);
# 4295|     if (!g)
# 4296|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_qemu");

Error: COMPILER_WARNING (CWE-477): [#def1129]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_set_recovery_proc’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4343:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4343 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4341|   {
# 4342|     guestfs_h *g;
# 4343|->   Data_Get_Struct (gv, guestfs_h, g);
# 4344|     if (!g)
# 4345|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_recovery_proc");

Error: COMPILER_WARNING (CWE-477): [#def1130]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4343:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4341|   {
# 4342|     guestfs_h *g;
# 4343|->   Data_Get_Struct (gv, guestfs_h, g);
# 4344|     if (!g)
# 4345|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_recovery_proc");

Error: COMPILER_WARNING (CWE-477): [#def1131]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_set_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4383:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4383 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4381|   {
# 4382|     guestfs_h *g;
# 4383|->   Data_Get_Struct (gv, guestfs_h, g);
# 4384|     if (!g)
# 4385|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1132]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4383:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4381|   {
# 4382|     guestfs_h *g;
# 4383|->   Data_Get_Struct (gv, guestfs_h, g);
# 4384|     if (!g)
# 4385|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1133]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_setcon’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4424:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4424 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4422|   {
# 4423|     guestfs_h *g;
# 4424|->   Data_Get_Struct (gv, guestfs_h, g);
# 4425|     if (!g)
# 4426|       rb_raise (rb_eArgError, "%s: used handle after closing it", "setcon");

Error: COMPILER_WARNING (CWE-477): [#def1134]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4424:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4422|   {
# 4423|     guestfs_h *g;
# 4424|->   Data_Get_Struct (gv, guestfs_h, g);
# 4425|     if (!g)
# 4426|       rb_raise (rb_eArgError, "%s: used handle after closing it", "setcon");

Error: COMPILER_WARNING (CWE-477): [#def1135]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_statvfs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4464:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4464 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4462|   {
# 4463|     guestfs_h *g;
# 4464|->   Data_Get_Struct (gv, guestfs_h, g);
# 4465|     if (!g)
# 4466|       rb_raise (rb_eArgError, "%s: used handle after closing it", "statvfs");

Error: COMPILER_WARNING (CWE-477): [#def1136]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4464:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4462|   {
# 4463|     guestfs_h *g;
# 4464|->   Data_Get_Struct (gv, guestfs_h, g);
# 4465|     if (!g)
# 4466|       rb_raise (rb_eArgError, "%s: used handle after closing it", "statvfs");

Error: COMPILER_WARNING (CWE-477): [#def1137]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_strings’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4520:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4520 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4518|   {
# 4519|     guestfs_h *g;
# 4520|->   Data_Get_Struct (gv, guestfs_h, g);
# 4521|     if (!g)
# 4522|       rb_raise (rb_eArgError, "%s: used handle after closing it", "strings");

Error: COMPILER_WARNING (CWE-477): [#def1138]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4520:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4518|   {
# 4519|     guestfs_h *g;
# 4520|->   Data_Get_Struct (gv, guestfs_h, g);
# 4521|     if (!g)
# 4522|       rb_raise (rb_eArgError, "%s: used handle after closing it", "strings");

Error: COMPILER_WARNING (CWE-477): [#def1139]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_swapoff_label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4562:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4562 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4560|   {
# 4561|     guestfs_h *g;
# 4562|->   Data_Get_Struct (gv, guestfs_h, g);
# 4563|     if (!g)
# 4564|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapoff_label");

Error: COMPILER_WARNING (CWE-477): [#def1140]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4562:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4560|   {
# 4561|     guestfs_h *g;
# 4562|->   Data_Get_Struct (gv, guestfs_h, g);
# 4563|     if (!g)
# 4564|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapoff_label");

Error: COMPILER_WARNING (CWE-477): [#def1141]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_swapoff_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4598:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4598 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4596|   {
# 4597|     guestfs_h *g;
# 4598|->   Data_Get_Struct (gv, guestfs_h, g);
# 4599|     if (!g)
# 4600|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapoff_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1142]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4598:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4596|   {
# 4597|     guestfs_h *g;
# 4598|->   Data_Get_Struct (gv, guestfs_h, g);
# 4599|     if (!g)
# 4600|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapoff_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1143]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_tar_in’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4658:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4658 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4656|   {
# 4657|     guestfs_h *g;
# 4658|->   Data_Get_Struct (gv, guestfs_h, g);
# 4659|     if (!g)
# 4660|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tar_in");

Error: COMPILER_WARNING (CWE-477): [#def1144]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4658:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4656|   {
# 4657|     guestfs_h *g;
# 4658|->   Data_Get_Struct (gv, guestfs_h, g);
# 4659|     if (!g)
# 4660|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tar_in");

Error: COMPILER_WARNING (CWE-477): [#def1145]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_truncate’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4725:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4725 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4723|   {
# 4724|     guestfs_h *g;
# 4725|->   Data_Get_Struct (gv, guestfs_h, g);
# 4726|     if (!g)
# 4727|       rb_raise (rb_eArgError, "%s: used handle after closing it", "truncate");

Error: COMPILER_WARNING (CWE-477): [#def1146]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4725:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4723|   {
# 4724|     guestfs_h *g;
# 4725|->   Data_Get_Struct (gv, guestfs_h, g);
# 4726|     if (!g)
# 4727|       rb_raise (rb_eArgError, "%s: used handle after closing it", "truncate");

Error: COMPILER_WARNING (CWE-477): [#def1147]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_tune2fs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4826:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4826 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4824|   {
# 4825|     guestfs_h *g;
# 4826|->   Data_Get_Struct (gv, guestfs_h, g);
# 4827|     if (!g)
# 4828|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tune2fs");

Error: COMPILER_WARNING (CWE-477): [#def1148]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4826:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4824|   {
# 4825|     guestfs_h *g;
# 4826|->   Data_Get_Struct (gv, guestfs_h, g);
# 4827|     if (!g)
# 4828|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tune2fs");

Error: COMPILER_WARNING (CWE-477): [#def1149]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_upload’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4925:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4925 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4923|   {
# 4924|     guestfs_h *g;
# 4925|->   Data_Get_Struct (gv, guestfs_h, g);
# 4926|     if (!g)
# 4927|       rb_raise (rb_eArgError, "%s: used handle after closing it", "upload");

Error: COMPILER_WARNING (CWE-477): [#def1150]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4925:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4923|   {
# 4924|     guestfs_h *g;
# 4925|->   Data_Get_Struct (gv, guestfs_h, g);
# 4926|     if (!g)
# 4927|       rb_raise (rb_eArgError, "%s: used handle after closing it", "upload");

Error: COMPILER_WARNING (CWE-477): [#def1151]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_utimens’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4974:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4974 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4972|   {
# 4973|     guestfs_h *g;
# 4974|->   Data_Get_Struct (gv, guestfs_h, g);
# 4975|     if (!g)
# 4976|       rb_raise (rb_eArgError, "%s: used handle after closing it", "utimens");

Error: COMPILER_WARNING (CWE-477): [#def1152]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:4974:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4972|   {
# 4973|     guestfs_h *g;
# 4974|->   Data_Get_Struct (gv, guestfs_h, g);
# 4975|     if (!g)
# 4976|       rb_raise (rb_eArgError, "%s: used handle after closing it", "utimens");

Error: COMPILER_WARNING (CWE-477): [#def1153]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_version’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5041:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5041 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5039|   {
# 5040|     guestfs_h *g;
# 5041|->   Data_Get_Struct (gv, guestfs_h, g);
# 5042|     if (!g)
# 5043|       rb_raise (rb_eArgError, "%s: used handle after closing it", "version");

Error: COMPILER_WARNING (CWE-477): [#def1154]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5041:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5039|   {
# 5040|     guestfs_h *g;
# 5041|->   Data_Get_Struct (gv, guestfs_h, g);
# 5042|     if (!g)
# 5043|       rb_raise (rb_eArgError, "%s: used handle after closing it", "version");

Error: COMPILER_WARNING (CWE-477): [#def1155]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_vfs_minimum_size’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5086:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5086 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5084|   {
# 5085|     guestfs_h *g;
# 5086|->   Data_Get_Struct (gv, guestfs_h, g);
# 5087|     if (!g)
# 5088|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vfs_minimum_size");

Error: COMPILER_WARNING (CWE-477): [#def1156]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5086:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5084|   {
# 5085|     guestfs_h *g;
# 5086|->   Data_Get_Struct (gv, guestfs_h, g);
# 5087|     if (!g)
# 5088|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vfs_minimum_size");

Error: COMPILER_WARNING (CWE-477): [#def1157]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_vfs_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5125:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5125 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5123|   {
# 5124|     guestfs_h *g;
# 5125|->   Data_Get_Struct (gv, guestfs_h, g);
# 5126|     if (!g)
# 5127|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vfs_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1158]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5125:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5123|   {
# 5124|     guestfs_h *g;
# 5125|->   Data_Get_Struct (gv, guestfs_h, g);
# 5126|     if (!g)
# 5127|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vfs_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1159]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_vgs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5168:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5168 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5166|   {
# 5167|     guestfs_h *g;
# 5168|->   Data_Get_Struct (gv, guestfs_h, g);
# 5169|     if (!g)
# 5170|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgs");

Error: COMPILER_WARNING (CWE-477): [#def1160]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5168:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5166|   {
# 5167|     guestfs_h *g;
# 5168|->   Data_Get_Struct (gv, guestfs_h, g);
# 5169|     if (!g)
# 5170|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgs");

Error: COMPILER_WARNING (CWE-477): [#def1161]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_write_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5224:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5224 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5222|   {
# 5223|     guestfs_h *g;
# 5224|->   Data_Get_Struct (gv, guestfs_h, g);
# 5225|     if (!g)
# 5226|       rb_raise (rb_eArgError, "%s: used handle after closing it", "write_file");

Error: COMPILER_WARNING (CWE-477): [#def1162]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5224:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5222|   {
# 5223|     guestfs_h *g;
# 5224|->   Data_Get_Struct (gv, guestfs_h, g);
# 5225|     if (!g)
# 5226|       rb_raise (rb_eArgError, "%s: used handle after closing it", "write_file");

Error: COMPILER_WARNING (CWE-477): [#def1163]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_zero’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5274:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5274 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5272|   {
# 5273|     guestfs_h *g;
# 5274|->   Data_Get_Struct (gv, guestfs_h, g);
# 5275|     if (!g)
# 5276|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zero");

Error: COMPILER_WARNING (CWE-477): [#def1164]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5274:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5272|   {
# 5273|     guestfs_h *g;
# 5274|->   Data_Get_Struct (gv, guestfs_h, g);
# 5275|     if (!g)
# 5276|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zero");

Error: COMPILER_WARNING (CWE-477): [#def1165]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_zerofree’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5318:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5318 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5316|   {
# 5317|     guestfs_h *g;
# 5318|->   Data_Get_Struct (gv, guestfs_h, g);
# 5319|     if (!g)
# 5320|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zerofree");

Error: COMPILER_WARNING (CWE-477): [#def1166]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5318:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5316|   {
# 5317|     guestfs_h *g;
# 5318|->   Data_Get_Struct (gv, guestfs_h, g);
# 5319|     if (!g)
# 5320|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zerofree");

Error: COMPILER_WARNING (CWE-477): [#def1167]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c: scope_hint: In function ‘guestfs_int_ruby_zgrepi’
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5358:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5358 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 5356|   {
# 5357|     guestfs_h *g;
# 5358|->   Data_Get_Struct (gv, guestfs_h, g);
# 5359|     if (!g)
# 5360|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zgrepi");

Error: COMPILER_WARNING (CWE-477): [#def1168]
libguestfs-1.55.9/ruby/ext/guestfs/actions-3.c:5358:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 5356|   {
# 5357|     guestfs_h *g;
# 5358|->   Data_Get_Struct (gv, guestfs_h, g);
# 5359|     if (!g)
# 5360|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zgrepi");

Error: COMPILER_WARNING (CWE-477): [#def1169]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_add_cdrom’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:63:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   63 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:37: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   61|   {
#   62|     guestfs_h *g;
#   63|->   Data_Get_Struct (gv, guestfs_h, g);
#   64|     if (!g)
#   65|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_cdrom");

Error: COMPILER_WARNING (CWE-477): [#def1170]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:63:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   61|   {
#   62|     guestfs_h *g;
#   63|->   Data_Get_Struct (gv, guestfs_h, g);
#   64|     if (!g)
#   65|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_cdrom");

Error: COMPILER_WARNING (CWE-477): [#def1171]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_add_libvirt_dom’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:138:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  138 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  136|   {
#  137|     guestfs_h *g;
#  138|->   Data_Get_Struct (gv, guestfs_h, g);
#  139|     if (!g)
#  140|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_libvirt_dom");

Error: COMPILER_WARNING (CWE-477): [#def1172]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:138:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  136|   {
#  137|     guestfs_h *g;
#  138|->   Data_Get_Struct (gv, guestfs_h, g);
#  139|     if (!g)
#  140|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_libvirt_dom");

Error: COMPILER_WARNING (CWE-477): [#def1173]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_aug_init’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:260:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  260 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  258|   {
#  259|     guestfs_h *g;
#  260|->   Data_Get_Struct (gv, guestfs_h, g);
#  261|     if (!g)
#  262|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_init");

Error: COMPILER_WARNING (CWE-477): [#def1174]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:260:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  258|   {
#  259|     guestfs_h *g;
#  260|->   Data_Get_Struct (gv, guestfs_h, g);
#  261|     if (!g)
#  262|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_init");

Error: COMPILER_WARNING (CWE-477): [#def1175]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_aug_insert’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:300:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  300 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  298|   {
#  299|     guestfs_h *g;
#  300|->   Data_Get_Struct (gv, guestfs_h, g);
#  301|     if (!g)
#  302|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_insert");

Error: COMPILER_WARNING (CWE-477): [#def1176]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:300:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  298|   {
#  299|     guestfs_h *g;
#  300|->   Data_Get_Struct (gv, guestfs_h, g);
#  301|     if (!g)
#  302|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_insert");

Error: COMPILER_WARNING (CWE-477): [#def1177]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_aug_load’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:338:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  338 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  336|   {
#  337|     guestfs_h *g;
#  338|->   Data_Get_Struct (gv, guestfs_h, g);
#  339|     if (!g)
#  340|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_load");

Error: COMPILER_WARNING (CWE-477): [#def1178]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:338:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  336|   {
#  337|     guestfs_h *g;
#  338|->   Data_Get_Struct (gv, guestfs_h, g);
#  339|     if (!g)
#  340|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_load");

Error: COMPILER_WARNING (CWE-477): [#def1179]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_aug_rm’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:373:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  373 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  371|   {
#  372|     guestfs_h *g;
#  373|->   Data_Get_Struct (gv, guestfs_h, g);
#  374|     if (!g)
#  375|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_rm");

Error: COMPILER_WARNING (CWE-477): [#def1180]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:373:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  371|   {
#  372|     guestfs_h *g;
#  373|->   Data_Get_Struct (gv, guestfs_h, g);
#  374|     if (!g)
#  375|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_rm");

Error: COMPILER_WARNING (CWE-477): [#def1181]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_aug_set’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:411:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  411 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  409|   {
#  410|     guestfs_h *g;
#  411|->   Data_Get_Struct (gv, guestfs_h, g);
#  412|     if (!g)
#  413|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_set");

Error: COMPILER_WARNING (CWE-477): [#def1182]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:411:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  409|   {
#  410|     guestfs_h *g;
#  411|->   Data_Get_Struct (gv, guestfs_h, g);
#  412|     if (!g)
#  413|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_set");

Error: COMPILER_WARNING (CWE-477): [#def1183]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_blkid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:463:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  463 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  461|   {
#  462|     guestfs_h *g;
#  463|->   Data_Get_Struct (gv, guestfs_h, g);
#  464|     if (!g)
#  465|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blkid");

Error: COMPILER_WARNING (CWE-477): [#def1184]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:463:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  461|   {
#  462|     guestfs_h *g;
#  463|->   Data_Get_Struct (gv, guestfs_h, g);
#  464|     if (!g)
#  465|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blkid");

Error: COMPILER_WARNING (CWE-477): [#def1185]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_setra’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:506:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  506 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  504|   {
#  505|     guestfs_h *g;
#  506|->   Data_Get_Struct (gv, guestfs_h, g);
#  507|     if (!g)
#  508|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_setra");

Error: COMPILER_WARNING (CWE-477): [#def1186]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:506:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  504|   {
#  505|     guestfs_h *g;
#  506|->   Data_Get_Struct (gv, guestfs_h, g);
#  507|     if (!g)
#  508|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_setra");

Error: COMPILER_WARNING (CWE-477): [#def1187]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_scrub_start’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:544:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  544 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  542|   {
#  543|     guestfs_h *g;
#  544|->   Data_Get_Struct (gv, guestfs_h, g);
#  545|     if (!g)
#  546|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_scrub_start");

Error: COMPILER_WARNING (CWE-477): [#def1188]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:544:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  542|   {
#  543|     guestfs_h *g;
#  544|->   Data_Get_Struct (gv, guestfs_h, g);
#  545|     if (!g)
#  546|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_scrub_start");

Error: COMPILER_WARNING (CWE-477): [#def1189]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_scrub_status’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:580:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  580 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  578|   {
#  579|     guestfs_h *g;
#  580|->   Data_Get_Struct (gv, guestfs_h, g);
#  581|     if (!g)
#  582|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_scrub_status");

Error: COMPILER_WARNING (CWE-477): [#def1190]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:580:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  578|   {
#  579|     guestfs_h *g;
#  580|->   Data_Get_Struct (gv, guestfs_h, g);
#  581|     if (!g)
#  582|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_scrub_status");

Error: COMPILER_WARNING (CWE-477): [#def1191]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_subvolume_create’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:640:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  640 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  638|   {
#  639|     guestfs_h *g;
#  640|->   Data_Get_Struct (gv, guestfs_h, g);
#  641|     if (!g)
#  642|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_create");

Error: COMPILER_WARNING (CWE-477): [#def1192]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:640:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  638|   {
#  639|     guestfs_h *g;
#  640|->   Data_Get_Struct (gv, guestfs_h, g);
#  641|     if (!g)
#  642|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_create");

Error: COMPILER_WARNING (CWE-477): [#def1193]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_subvolume_set_default’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:693:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  693 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  691|   {
#  692|     guestfs_h *g;
#  693|->   Data_Get_Struct (gv, guestfs_h, g);
#  694|     if (!g)
#  695|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_set_default");

Error: COMPILER_WARNING (CWE-477): [#def1194]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:693:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  691|   {
#  692|     guestfs_h *g;
#  693|->   Data_Get_Struct (gv, guestfs_h, g);
#  694|     if (!g)
#  695|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_set_default");

Error: COMPILER_WARNING (CWE-477): [#def1195]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_subvolume_snapshot’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:740:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  740 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  738|   {
#  739|     guestfs_h *g;
#  740|->   Data_Get_Struct (gv, guestfs_h, g);
#  741|     if (!g)
#  742|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_snapshot");

Error: COMPILER_WARNING (CWE-477): [#def1196]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:740:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  738|   {
#  739|     guestfs_h *g;
#  740|->   Data_Get_Struct (gv, guestfs_h, g);
#  741|     if (!g)
#  742|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_snapshot");

Error: COMPILER_WARNING (CWE-477): [#def1197]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_canonical_device_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:812:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  812 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  810|   {
#  811|     guestfs_h *g;
#  812|->   Data_Get_Struct (gv, guestfs_h, g);
#  813|     if (!g)
#  814|       rb_raise (rb_eArgError, "%s: used handle after closing it", "canonical_device_name");

Error: COMPILER_WARNING (CWE-477): [#def1198]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:812:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  810|   {
#  811|     guestfs_h *g;
#  812|->   Data_Get_Struct (gv, guestfs_h, g);
#  813|     if (!g)
#  814|       rb_raise (rb_eArgError, "%s: used handle after closing it", "canonical_device_name");

Error: COMPILER_WARNING (CWE-477): [#def1199]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_case_sensitive_path’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:894:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  894 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  892|   {
#  893|     guestfs_h *g;
#  894|->   Data_Get_Struct (gv, guestfs_h, g);
#  895|     if (!g)
#  896|       rb_raise (rb_eArgError, "%s: used handle after closing it", "case_sensitive_path");

Error: COMPILER_WARNING (CWE-477): [#def1200]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:894:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  892|   {
#  893|     guestfs_h *g;
#  894|->   Data_Get_Struct (gv, guestfs_h, g);
#  895|     if (!g)
#  896|       rb_raise (rb_eArgError, "%s: used handle after closing it", "case_sensitive_path");

Error: COMPILER_WARNING (CWE-477): [#def1201]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_copy_size’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:936:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  936 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  934|   {
#  935|     guestfs_h *g;
#  936|->   Data_Get_Struct (gv, guestfs_h, g);
#  937|     if (!g)
#  938|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_size");

Error: COMPILER_WARNING (CWE-477): [#def1202]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:936:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  934|   {
#  935|     guestfs_h *g;
#  936|->   Data_Get_Struct (gv, guestfs_h, g);
#  937|     if (!g)
#  938|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_size");

Error: COMPILER_WARNING (CWE-477): [#def1203]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_debug_upload’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:965:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  965 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  963|   {
#  964|     guestfs_h *g;
#  965|->   Data_Get_Struct (gv, guestfs_h, g);
#  966|     if (!g)
#  967|       rb_raise (rb_eArgError, "%s: used handle after closing it", "debug_upload");

Error: COMPILER_WARNING (CWE-477): [#def1204]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:965:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  963|   {
#  964|     guestfs_h *g;
#  965|->   Data_Get_Struct (gv, guestfs_h, g);
#  966|     if (!g)
#  967|       rb_raise (rb_eArgError, "%s: used handle after closing it", "debug_upload");

Error: COMPILER_WARNING (CWE-477): [#def1205]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_download_offset’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1012:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1012 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1010|   {
# 1011|     guestfs_h *g;
# 1012|->   Data_Get_Struct (gv, guestfs_h, g);
# 1013|     if (!g)
# 1014|       rb_raise (rb_eArgError, "%s: used handle after closing it", "download_offset");

Error: COMPILER_WARNING (CWE-477): [#def1206]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1012:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1010|   {
# 1011|     guestfs_h *g;
# 1012|->   Data_Get_Struct (gv, guestfs_h, g);
# 1013|     if (!g)
# 1014|       rb_raise (rb_eArgError, "%s: used handle after closing it", "download_offset");

Error: COMPILER_WARNING (CWE-477): [#def1207]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_find_inode’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1055:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1055 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1053|   {
# 1054|     guestfs_h *g;
# 1055|->   Data_Get_Struct (gv, guestfs_h, g);
# 1056|     if (!g)
# 1057|       rb_raise (rb_eArgError, "%s: used handle after closing it", "find_inode");

Error: COMPILER_WARNING (CWE-477): [#def1208]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1055:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1053|   {
# 1054|     guestfs_h *g;
# 1055|->   Data_Get_Struct (gv, guestfs_h, g);
# 1056|     if (!g)
# 1057|       rb_raise (rb_eArgError, "%s: used handle after closing it", "find_inode");

Error: COMPILER_WARNING (CWE-477): [#def1209]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_findfs_partuuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1117:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1117 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1115|   {
# 1116|     guestfs_h *g;
# 1117|->   Data_Get_Struct (gv, guestfs_h, g);
# 1118|     if (!g)
# 1119|       rb_raise (rb_eArgError, "%s: used handle after closing it", "findfs_partuuid");

Error: COMPILER_WARNING (CWE-477): [#def1210]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1117:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1115|   {
# 1116|     guestfs_h *g;
# 1117|->   Data_Get_Struct (gv, guestfs_h, g);
# 1118|     if (!g)
# 1119|       rb_raise (rb_eArgError, "%s: used handle after closing it", "findfs_partuuid");

Error: COMPILER_WARNING (CWE-477): [#def1211]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_findfs_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1156:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1156 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1154|   {
# 1155|     guestfs_h *g;
# 1156|->   Data_Get_Struct (gv, guestfs_h, g);
# 1157|     if (!g)
# 1158|       rb_raise (rb_eArgError, "%s: used handle after closing it", "findfs_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1212]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1156:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1154|   {
# 1155|     guestfs_h *g;
# 1156|->   Data_Get_Struct (gv, guestfs_h, g);
# 1157|     if (!g)
# 1158|       rb_raise (rb_eArgError, "%s: used handle after closing it", "findfs_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1213]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_fstrim’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1219:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1219 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1217|   {
# 1218|     guestfs_h *g;
# 1219|->   Data_Get_Struct (gv, guestfs_h, g);
# 1220|     if (!g)
# 1221|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fstrim");

Error: COMPILER_WARNING (CWE-477): [#def1214]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1219:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1217|   {
# 1218|     guestfs_h *g;
# 1219|->   Data_Get_Struct (gv, guestfs_h, g);
# 1220|     if (!g)
# 1221|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fstrim");

Error: COMPILER_WARNING (CWE-477): [#def1215]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_get_autosync’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1278:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1278 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1276|   {
# 1277|     guestfs_h *g;
# 1278|->   Data_Get_Struct (gv, guestfs_h, g);
# 1279|     if (!g)
# 1280|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_autosync");

Error: COMPILER_WARNING (CWE-477): [#def1216]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1278:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1276|   {
# 1277|     guestfs_h *g;
# 1278|->   Data_Get_Struct (gv, guestfs_h, g);
# 1279|     if (!g)
# 1280|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_autosync");

Error: COMPILER_WARNING (CWE-477): [#def1217]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_get_e2uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1313:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1313 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1311|   {
# 1312|     guestfs_h *g;
# 1313|->   Data_Get_Struct (gv, guestfs_h, g);
# 1314|     if (!g)
# 1315|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_e2uuid");

Error: COMPILER_WARNING (CWE-477): [#def1218]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1313:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1311|   {
# 1312|     guestfs_h *g;
# 1313|->   Data_Get_Struct (gv, guestfs_h, g);
# 1314|     if (!g)
# 1315|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_e2uuid");

Error: COMPILER_WARNING (CWE-477): [#def1219]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_get_libvirt_requested_credential_challenge’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1355:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1355 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1353|   {
# 1354|     guestfs_h *g;
# 1355|->   Data_Get_Struct (gv, guestfs_h, g);
# 1356|     if (!g)
# 1357|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_libvirt_requested_credential_challenge");

Error: COMPILER_WARNING (CWE-477): [#def1220]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1355:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1353|   {
# 1354|     guestfs_h *g;
# 1355|->   Data_Get_Struct (gv, guestfs_h, g);
# 1356|     if (!g)
# 1357|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_libvirt_requested_credential_challenge");

Error: COMPILER_WARNING (CWE-477): [#def1221]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_get_pid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1393:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1393 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1391|   {
# 1392|     guestfs_h *g;
# 1393|->   Data_Get_Struct (gv, guestfs_h, g);
# 1394|     if (!g)
# 1395|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_pid");

Error: COMPILER_WARNING (CWE-477): [#def1222]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1393:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1391|   {
# 1392|     guestfs_h *g;
# 1393|->   Data_Get_Struct (gv, guestfs_h, g);
# 1394|     if (!g)
# 1395|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_pid");

Error: COMPILER_WARNING (CWE-477): [#def1223]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_get_selinux’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1432:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1432 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1430|   {
# 1431|     guestfs_h *g;
# 1432|->   Data_Get_Struct (gv, guestfs_h, g);
# 1433|     if (!g)
# 1434|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_selinux");

Error: COMPILER_WARNING (CWE-477): [#def1224]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1432:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1430|   {
# 1431|     guestfs_h *g;
# 1432|->   Data_Get_Struct (gv, guestfs_h, g);
# 1433|     if (!g)
# 1434|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_selinux");

Error: COMPILER_WARNING (CWE-477): [#def1225]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_grepi’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1473:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1473 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1471|   {
# 1472|     guestfs_h *g;
# 1473|->   Data_Get_Struct (gv, guestfs_h, g);
# 1474|     if (!g)
# 1475|       rb_raise (rb_eArgError, "%s: used handle after closing it", "grepi");

Error: COMPILER_WARNING (CWE-477): [#def1226]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1473:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1471|   {
# 1472|     guestfs_h *g;
# 1473|->   Data_Get_Struct (gv, guestfs_h, g);
# 1474|     if (!g)
# 1475|       rb_raise (rb_eArgError, "%s: used handle after closing it", "grepi");

Error: COMPILER_WARNING (CWE-477): [#def1227]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_hexdump’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1522:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1522 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1520|   {
# 1521|     guestfs_h *g;
# 1522|->   Data_Get_Struct (gv, guestfs_h, g);
# 1523|     if (!g)
# 1524|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hexdump");

Error: COMPILER_WARNING (CWE-477): [#def1228]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1522:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1520|   {
# 1521|     guestfs_h *g;
# 1522|->   Data_Get_Struct (gv, guestfs_h, g);
# 1523|     if (!g)
# 1524|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hexdump");

Error: COMPILER_WARNING (CWE-477): [#def1229]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_children’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1562:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1562 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1560|   {
# 1561|     guestfs_h *g;
# 1562|->   Data_Get_Struct (gv, guestfs_h, g);
# 1563|     if (!g)
# 1564|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_children");

Error: COMPILER_WARNING (CWE-477): [#def1230]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1562:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1560|   {
# 1561|     guestfs_h *g;
# 1562|->   Data_Get_Struct (gv, guestfs_h, g);
# 1563|     if (!g)
# 1564|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_children");

Error: COMPILER_WARNING (CWE-477): [#def1231]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_format’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1623:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1623 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1621|   {
# 1622|     guestfs_h *g;
# 1623|->   Data_Get_Struct (gv, guestfs_h, g);
# 1624|     if (!g)
# 1625|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_format");

Error: COMPILER_WARNING (CWE-477): [#def1232]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1623:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1621|   {
# 1622|     guestfs_h *g;
# 1623|->   Data_Get_Struct (gv, guestfs_h, g);
# 1624|     if (!g)
# 1625|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_format");

Error: COMPILER_WARNING (CWE-477): [#def1233]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_hostname’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1667:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1667 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1665|   {
# 1666|     guestfs_h *g;
# 1667|->   Data_Get_Struct (gv, guestfs_h, g);
# 1668|     if (!g)
# 1669|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_hostname");

Error: COMPILER_WARNING (CWE-477): [#def1234]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1667:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1665|   {
# 1666|     guestfs_h *g;
# 1667|->   Data_Get_Struct (gv, guestfs_h, g);
# 1668|     if (!g)
# 1669|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_hostname");

Error: COMPILER_WARNING (CWE-477): [#def1235]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_inspect_is_multipart’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1706:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1706 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1704|   {
# 1705|     guestfs_h *g;
# 1706|->   Data_Get_Struct (gv, guestfs_h, g);
# 1707|     if (!g)
# 1708|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_is_multipart");

Error: COMPILER_WARNING (CWE-477): [#def1236]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1706:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1704|   {
# 1705|     guestfs_h *g;
# 1706|->   Data_Get_Struct (gv, guestfs_h, g);
# 1707|     if (!g)
# 1708|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_is_multipart");

Error: COMPILER_WARNING (CWE-477): [#def1237]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rbool’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1733:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1733 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1731|   {
# 1732|     guestfs_h *g;
# 1733|->   Data_Get_Struct (gv, guestfs_h, g);
# 1734|     if (!g)
# 1735|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rbool");

Error: COMPILER_WARNING (CWE-477): [#def1238]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1733:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1731|   {
# 1732|     guestfs_h *g;
# 1733|->   Data_Get_Struct (gv, guestfs_h, g);
# 1734|     if (!g)
# 1735|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rbool");

Error: COMPILER_WARNING (CWE-477): [#def1239]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rhashtable’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1758:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1758 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1756|   {
# 1757|     guestfs_h *g;
# 1758|->   Data_Get_Struct (gv, guestfs_h, g);
# 1759|     if (!g)
# 1760|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rhashtable");

Error: COMPILER_WARNING (CWE-477): [#def1240]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1758:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1756|   {
# 1757|     guestfs_h *g;
# 1758|->   Data_Get_Struct (gv, guestfs_h, g);
# 1759|     if (!g)
# 1760|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rhashtable");

Error: COMPILER_WARNING (CWE-477): [#def1241]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstringlist’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1791:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1791 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1789|   {
# 1790|     guestfs_h *g;
# 1791|->   Data_Get_Struct (gv, guestfs_h, g);
# 1792|     if (!g)
# 1793|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstringlist");

Error: COMPILER_WARNING (CWE-477): [#def1242]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1791:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1789|   {
# 1790|     guestfs_h *g;
# 1791|->   Data_Get_Struct (gv, guestfs_h, g);
# 1792|     if (!g)
# 1793|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstringlist");

Error: COMPILER_WARNING (CWE-477): [#def1243]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstringlisterr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1824:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1824 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1822|   {
# 1823|     guestfs_h *g;
# 1824|->   Data_Get_Struct (gv, guestfs_h, g);
# 1825|     if (!g)
# 1826|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstringlisterr");

Error: COMPILER_WARNING (CWE-477): [#def1244]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1824:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1822|   {
# 1823|     guestfs_h *g;
# 1824|->   Data_Get_Struct (gv, guestfs_h, g);
# 1825|     if (!g)
# 1826|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstringlisterr");

Error: COMPILER_WARNING (CWE-477): [#def1245]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_is_busy’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1867:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1867 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1865|   {
# 1866|     guestfs_h *g;
# 1867|->   Data_Get_Struct (gv, guestfs_h, g);
# 1868|     if (!g)
# 1869|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_busy");

Error: COMPILER_WARNING (CWE-477): [#def1246]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1867:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1865|   {
# 1866|     guestfs_h *g;
# 1867|->   Data_Get_Struct (gv, guestfs_h, g);
# 1868|     if (!g)
# 1869|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_busy");

Error: COMPILER_WARNING (CWE-477): [#def1247]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_is_ready’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1902:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1902 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1900|   {
# 1901|     guestfs_h *g;
# 1902|->   Data_Get_Struct (gv, guestfs_h, g);
# 1903|     if (!g)
# 1904|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_ready");

Error: COMPILER_WARNING (CWE-477): [#def1248]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1902:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1900|   {
# 1901|     guestfs_h *g;
# 1902|->   Data_Get_Struct (gv, guestfs_h, g);
# 1903|     if (!g)
# 1904|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_ready");

Error: COMPILER_WARNING (CWE-477): [#def1249]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_scan’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1942:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1942 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1940|   {
# 1941|     guestfs_h *g;
# 1942|->   Data_Get_Struct (gv, guestfs_h, g);
# 1943|     if (!g)
# 1944|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_scan");

Error: COMPILER_WARNING (CWE-477): [#def1250]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1942:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1940|   {
# 1941|     guestfs_h *g;
# 1942|->   Data_Get_Struct (gv, guestfs_h, g);
# 1943|     if (!g)
# 1944|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_scan");

Error: COMPILER_WARNING (CWE-477): [#def1251]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_lgetxattrs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1986:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1986 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1984|   {
# 1985|     guestfs_h *g;
# 1986|->   Data_Get_Struct (gv, guestfs_h, g);
# 1987|     if (!g)
# 1988|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lgetxattrs");

Error: COMPILER_WARNING (CWE-477): [#def1252]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:1986:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1984|   {
# 1985|     guestfs_h *g;
# 1986|->   Data_Get_Struct (gv, guestfs_h, g);
# 1987|     if (!g)
# 1988|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lgetxattrs");

Error: COMPILER_WARNING (CWE-477): [#def1253]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_list_dm_devices’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2035:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2035 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2033|   {
# 2034|     guestfs_h *g;
# 2035|->   Data_Get_Struct (gv, guestfs_h, g);
# 2036|     if (!g)
# 2037|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_dm_devices");

Error: COMPILER_WARNING (CWE-477): [#def1254]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2035:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2033|   {
# 2034|     guestfs_h *g;
# 2035|->   Data_Get_Struct (gv, guestfs_h, g);
# 2036|     if (!g)
# 2037|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_dm_devices");

Error: COMPILER_WARNING (CWE-477): [#def1255]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_list_ldm_volumes’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2079:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2079 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2077|   {
# 2078|     guestfs_h *g;
# 2079|->   Data_Get_Struct (gv, guestfs_h, g);
# 2080|     if (!g)
# 2081|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_ldm_volumes");

Error: COMPILER_WARNING (CWE-477): [#def1256]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2079:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2077|   {
# 2078|     guestfs_h *g;
# 2079|->   Data_Get_Struct (gv, guestfs_h, g);
# 2080|     if (!g)
# 2081|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_ldm_volumes");

Error: COMPILER_WARNING (CWE-477): [#def1257]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_luks_format’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2124:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2124 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2122|   {
# 2123|     guestfs_h *g;
# 2124|->   Data_Get_Struct (gv, guestfs_h, g);
# 2125|     if (!g)
# 2126|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_format");

Error: COMPILER_WARNING (CWE-477): [#def1258]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2124:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2122|   {
# 2123|     guestfs_h *g;
# 2124|->   Data_Get_Struct (gv, guestfs_h, g);
# 2125|     if (!g)
# 2126|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_format");

Error: COMPILER_WARNING (CWE-477): [#def1259]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_lvm_canonical_lv_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2167:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2167 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2165|   {
# 2166|     guestfs_h *g;
# 2167|->   Data_Get_Struct (gv, guestfs_h, g);
# 2168|     if (!g)
# 2169|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvm_canonical_lv_name");

Error: COMPILER_WARNING (CWE-477): [#def1260]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2167:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2165|   {
# 2166|     guestfs_h *g;
# 2167|->   Data_Get_Struct (gv, guestfs_h, g);
# 2168|     if (!g)
# 2169|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvm_canonical_lv_name");

Error: COMPILER_WARNING (CWE-477): [#def1261]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_lvrename’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2203:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2203 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2201|   {
# 2202|     guestfs_h *g;
# 2203|->   Data_Get_Struct (gv, guestfs_h, g);
# 2204|     if (!g)
# 2205|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvrename");

Error: COMPILER_WARNING (CWE-477): [#def1262]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2203:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2201|   {
# 2202|     guestfs_h *g;
# 2203|->   Data_Get_Struct (gv, guestfs_h, g);
# 2204|     if (!g)
# 2205|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvrename");

Error: COMPILER_WARNING (CWE-477): [#def1263]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_lvresize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2241:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2241 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2239|   {
# 2240|     guestfs_h *g;
# 2241|->   Data_Get_Struct (gv, guestfs_h, g);
# 2242|     if (!g)
# 2243|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvresize");

Error: COMPILER_WARNING (CWE-477): [#def1264]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2241:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2239|   {
# 2240|     guestfs_h *g;
# 2241|->   Data_Get_Struct (gv, guestfs_h, g);
# 2242|     if (!g)
# 2243|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvresize");

Error: COMPILER_WARNING (CWE-477): [#def1265]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_lvuuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2275:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2275 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2273|   {
# 2274|     guestfs_h *g;
# 2275|->   Data_Get_Struct (gv, guestfs_h, g);
# 2276|     if (!g)
# 2277|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvuuid");

Error: COMPILER_WARNING (CWE-477): [#def1266]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2275:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2273|   {
# 2274|     guestfs_h *g;
# 2275|->   Data_Get_Struct (gv, guestfs_h, g);
# 2276|     if (!g)
# 2277|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvuuid");

Error: COMPILER_WARNING (CWE-477): [#def1267]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_mke2fs_J’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2318:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2318 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2316|   {
# 2317|     guestfs_h *g;
# 2318|->   Data_Get_Struct (gv, guestfs_h, g);
# 2319|     if (!g)
# 2320|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs_J");

Error: COMPILER_WARNING (CWE-477): [#def1268]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2318:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2316|   {
# 2317|     guestfs_h *g;
# 2318|->   Data_Get_Struct (gv, guestfs_h, g);
# 2319|     if (!g)
# 2320|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2fs_J");

Error: COMPILER_WARNING (CWE-477): [#def1269]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_mke2journal_U’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2361:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2361 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2359|   {
# 2360|     guestfs_h *g;
# 2361|->   Data_Get_Struct (gv, guestfs_h, g);
# 2362|     if (!g)
# 2363|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2journal_U");

Error: COMPILER_WARNING (CWE-477): [#def1270]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2361:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2359|   {
# 2360|     guestfs_h *g;
# 2361|->   Data_Get_Struct (gv, guestfs_h, g);
# 2362|     if (!g)
# 2363|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2journal_U");

Error: COMPILER_WARNING (CWE-477): [#def1271]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_mknod_c’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2408:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2408 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2406|   {
# 2407|     guestfs_h *g;
# 2408|->   Data_Get_Struct (gv, guestfs_h, g);
# 2409|     if (!g)
# 2410|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mknod_c");

Error: COMPILER_WARNING (CWE-477): [#def1272]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2408:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2406|   {
# 2407|     guestfs_h *g;
# 2408|->   Data_Get_Struct (gv, guestfs_h, g);
# 2409|     if (!g)
# 2410|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mknod_c");

Error: COMPILER_WARNING (CWE-477): [#def1273]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_mount_options’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2450:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2450 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2448|   {
# 2449|     guestfs_h *g;
# 2450|->   Data_Get_Struct (gv, guestfs_h, g);
# 2451|     if (!g)
# 2452|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_options");

Error: COMPILER_WARNING (CWE-477): [#def1274]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2450:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2448|   {
# 2449|     guestfs_h *g;
# 2450|->   Data_Get_Struct (gv, guestfs_h, g);
# 2451|     if (!g)
# 2452|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_options");

Error: COMPILER_WARNING (CWE-477): [#def1275]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_ntfsfix’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2501:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2501 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2499|   {
# 2500|     guestfs_h *g;
# 2501|->   Data_Get_Struct (gv, guestfs_h, g);
# 2502|     if (!g)
# 2503|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsfix");

Error: COMPILER_WARNING (CWE-477): [#def1276]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2501:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2499|   {
# 2500|     guestfs_h *g;
# 2501|->   Data_Get_Struct (gv, guestfs_h, g);
# 2502|     if (!g)
# 2503|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsfix");

Error: COMPILER_WARNING (CWE-477): [#def1277]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_part_add’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2565:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2565 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2563|   {
# 2564|     guestfs_h *g;
# 2565|->   Data_Get_Struct (gv, guestfs_h, g);
# 2566|     if (!g)
# 2567|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_add");

Error: COMPILER_WARNING (CWE-477): [#def1278]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2565:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2563|   {
# 2564|     guestfs_h *g;
# 2565|->   Data_Get_Struct (gv, guestfs_h, g);
# 2566|     if (!g)
# 2567|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_add");

Error: COMPILER_WARNING (CWE-477): [#def1279]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_part_get_gpt_guid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2601:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2601 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2599|   {
# 2600|     guestfs_h *g;
# 2601|->   Data_Get_Struct (gv, guestfs_h, g);
# 2602|     if (!g)
# 2603|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_gpt_guid");

Error: COMPILER_WARNING (CWE-477): [#def1280]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2601:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2599|   {
# 2600|     guestfs_h *g;
# 2601|->   Data_Get_Struct (gv, guestfs_h, g);
# 2602|     if (!g)
# 2603|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_gpt_guid");

Error: COMPILER_WARNING (CWE-477): [#def1281]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_part_get_mbr_id’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2642:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2642 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2640|   {
# 2641|     guestfs_h *g;
# 2642|->   Data_Get_Struct (gv, guestfs_h, g);
# 2643|     if (!g)
# 2644|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_mbr_id");

Error: COMPILER_WARNING (CWE-477): [#def1282]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2642:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2640|   {
# 2641|     guestfs_h *g;
# 2642|->   Data_Get_Struct (gv, guestfs_h, g);
# 2643|     if (!g)
# 2644|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_mbr_id");

Error: COMPILER_WARNING (CWE-477): [#def1283]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_part_get_mbr_part_type’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2679:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2679 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2677|   {
# 2678|     guestfs_h *g;
# 2679|->   Data_Get_Struct (gv, guestfs_h, g);
# 2680|     if (!g)
# 2681|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_mbr_part_type");

Error: COMPILER_WARNING (CWE-477): [#def1284]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2679:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2677|   {
# 2678|     guestfs_h *g;
# 2679|->   Data_Get_Struct (gv, guestfs_h, g);
# 2680|     if (!g)
# 2681|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_mbr_part_type");

Error: COMPILER_WARNING (CWE-477): [#def1285]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_part_get_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2721:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2721 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2719|   {
# 2720|     guestfs_h *g;
# 2721|->   Data_Get_Struct (gv, guestfs_h, g);
# 2722|     if (!g)
# 2723|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_name");

Error: COMPILER_WARNING (CWE-477): [#def1286]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2721:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2719|   {
# 2720|     guestfs_h *g;
# 2721|->   Data_Get_Struct (gv, guestfs_h, g);
# 2722|     if (!g)
# 2723|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_name");

Error: COMPILER_WARNING (CWE-477): [#def1287]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_part_init’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2808:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2808 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2806|   {
# 2807|     guestfs_h *g;
# 2808|->   Data_Get_Struct (gv, guestfs_h, g);
# 2809|     if (!g)
# 2810|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_init");

Error: COMPILER_WARNING (CWE-477): [#def1288]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2808:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2806|   {
# 2807|     guestfs_h *g;
# 2808|->   Data_Get_Struct (gv, guestfs_h, g);
# 2809|     if (!g)
# 2810|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_init");

Error: COMPILER_WARNING (CWE-477): [#def1289]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_part_to_partnum’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2848:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2848 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2846|   {
# 2847|     guestfs_h *g;
# 2848|->   Data_Get_Struct (gv, guestfs_h, g);
# 2849|     if (!g)
# 2850|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_to_partnum");

Error: COMPILER_WARNING (CWE-477): [#def1290]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2848:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2846|   {
# 2847|     guestfs_h *g;
# 2848|->   Data_Get_Struct (gv, guestfs_h, g);
# 2849|     if (!g)
# 2850|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_to_partnum");

Error: COMPILER_WARNING (CWE-477): [#def1291]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_pvuuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2881:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2881 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2879|   {
# 2880|     guestfs_h *g;
# 2881|->   Data_Get_Struct (gv, guestfs_h, g);
# 2882|     if (!g)
# 2883|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvuuid");

Error: COMPILER_WARNING (CWE-477): [#def1292]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2881:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2879|   {
# 2880|     guestfs_h *g;
# 2881|->   Data_Get_Struct (gv, guestfs_h, g);
# 2882|     if (!g)
# 2883|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvuuid");

Error: COMPILER_WARNING (CWE-477): [#def1293]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_readlinklist’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2934:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2934 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2932|   {
# 2933|     guestfs_h *g;
# 2934|->   Data_Get_Struct (gv, guestfs_h, g);
# 2935|     if (!g)
# 2936|       rb_raise (rb_eArgError, "%s: used handle after closing it", "readlinklist");

Error: COMPILER_WARNING (CWE-477): [#def1294]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2934:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2932|   {
# 2933|     guestfs_h *g;
# 2934|->   Data_Get_Struct (gv, guestfs_h, g);
# 2935|     if (!g)
# 2936|       rb_raise (rb_eArgError, "%s: used handle after closing it", "readlinklist");

Error: COMPILER_WARNING (CWE-477): [#def1295]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_rmmountpoint’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2990:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2990 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2988|   {
# 2989|     guestfs_h *g;
# 2990|->   Data_Get_Struct (gv, guestfs_h, g);
# 2991|     if (!g)
# 2992|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rmmountpoint");

Error: COMPILER_WARNING (CWE-477): [#def1296]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:2990:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2988|   {
# 2989|     guestfs_h *g;
# 2990|->   Data_Get_Struct (gv, guestfs_h, g);
# 2991|     if (!g)
# 2992|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rmmountpoint");

Error: COMPILER_WARNING (CWE-477): [#def1297]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_scrub_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3029:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3029 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3027|   {
# 3028|     guestfs_h *g;
# 3029|->   Data_Get_Struct (gv, guestfs_h, g);
# 3030|     if (!g)
# 3031|       rb_raise (rb_eArgError, "%s: used handle after closing it", "scrub_device");

Error: COMPILER_WARNING (CWE-477): [#def1298]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3029:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3027|   {
# 3028|     guestfs_h *g;
# 3029|->   Data_Get_Struct (gv, guestfs_h, g);
# 3030|     if (!g)
# 3031|       rb_raise (rb_eArgError, "%s: used handle after closing it", "scrub_device");

Error: COMPILER_WARNING (CWE-477): [#def1299]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_set_cachedir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3071:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3071 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3069|   {
# 3070|     guestfs_h *g;
# 3071|->   Data_Get_Struct (gv, guestfs_h, g);
# 3072|     if (!g)
# 3073|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_cachedir");

Error: COMPILER_WARNING (CWE-477): [#def1300]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3071:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3069|   {
# 3070|     guestfs_h *g;
# 3071|->   Data_Get_Struct (gv, guestfs_h, g);
# 3072|     if (!g)
# 3073|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_cachedir");

Error: COMPILER_WARNING (CWE-477): [#def1301]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_set_e2attrs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3126:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3126 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3124|   {
# 3125|     guestfs_h *g;
# 3126|->   Data_Get_Struct (gv, guestfs_h, g);
# 3127|     if (!g)
# 3128|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_e2attrs");

Error: COMPILER_WARNING (CWE-477): [#def1302]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3126:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3124|   {
# 3125|     guestfs_h *g;
# 3126|->   Data_Get_Struct (gv, guestfs_h, g);
# 3127|     if (!g)
# 3128|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_e2attrs");

Error: COMPILER_WARNING (CWE-477): [#def1303]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_set_e2label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3184:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3184 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3182|   {
# 3183|     guestfs_h *g;
# 3184|->   Data_Get_Struct (gv, guestfs_h, g);
# 3185|     if (!g)
# 3186|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_e2label");

Error: COMPILER_WARNING (CWE-477): [#def1304]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3184:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3182|   {
# 3183|     guestfs_h *g;
# 3184|->   Data_Get_Struct (gv, guestfs_h, g);
# 3185|     if (!g)
# 3186|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_e2label");

Error: COMPILER_WARNING (CWE-477): [#def1305]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_sh_lines’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3223:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3223 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3221|   {
# 3222|     guestfs_h *g;
# 3223|->   Data_Get_Struct (gv, guestfs_h, g);
# 3224|     if (!g)
# 3225|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sh_lines");

Error: COMPILER_WARNING (CWE-477): [#def1306]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3223:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3221|   {
# 3222|     guestfs_h *g;
# 3223|->   Data_Get_Struct (gv, guestfs_h, g);
# 3224|     if (!g)
# 3225|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sh_lines");

Error: COMPILER_WARNING (CWE-477): [#def1307]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_sh_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3268:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3268 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3266|   {
# 3267|     guestfs_h *g;
# 3268|->   Data_Get_Struct (gv, guestfs_h, g);
# 3269|     if (!g)
# 3270|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sh_out");

Error: COMPILER_WARNING (CWE-477): [#def1308]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3268:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3266|   {
# 3267|     guestfs_h *g;
# 3268|->   Data_Get_Struct (gv, guestfs_h, g);
# 3269|     if (!g)
# 3270|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sh_out");

Error: COMPILER_WARNING (CWE-477): [#def1309]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_shutdown’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3319:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3319 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3317|   {
# 3318|     guestfs_h *g;
# 3319|->   Data_Get_Struct (gv, guestfs_h, g);
# 3320|     if (!g)
# 3321|       rb_raise (rb_eArgError, "%s: used handle after closing it", "shutdown");

Error: COMPILER_WARNING (CWE-477): [#def1310]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3319:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3317|   {
# 3318|     guestfs_h *g;
# 3319|->   Data_Get_Struct (gv, guestfs_h, g);
# 3320|     if (!g)
# 3321|       rb_raise (rb_eArgError, "%s: used handle after closing it", "shutdown");

Error: COMPILER_WARNING (CWE-477): [#def1311]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_swapon_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3352:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3352 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3350|   {
# 3351|     guestfs_h *g;
# 3352|->   Data_Get_Struct (gv, guestfs_h, g);
# 3353|     if (!g)
# 3354|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapon_file");

Error: COMPILER_WARNING (CWE-477): [#def1312]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3352:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3350|   {
# 3351|     guestfs_h *g;
# 3352|->   Data_Get_Struct (gv, guestfs_h, g);
# 3353|     if (!g)
# 3354|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapon_file");

Error: COMPILER_WARNING (CWE-477): [#def1313]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_tgz_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3388:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3388 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3386|   {
# 3387|     guestfs_h *g;
# 3388|->   Data_Get_Struct (gv, guestfs_h, g);
# 3389|     if (!g)
# 3390|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tgz_out");

Error: COMPILER_WARNING (CWE-477): [#def1314]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3388:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3386|   {
# 3387|     guestfs_h *g;
# 3388|->   Data_Get_Struct (gv, guestfs_h, g);
# 3389|     if (!g)
# 3390|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tgz_out");

Error: COMPILER_WARNING (CWE-477): [#def1315]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_umask’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3438:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3438 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3436|   {
# 3437|     guestfs_h *g;
# 3438|->   Data_Get_Struct (gv, guestfs_h, g);
# 3439|     if (!g)
# 3440|       rb_raise (rb_eArgError, "%s: used handle after closing it", "umask");

Error: COMPILER_WARNING (CWE-477): [#def1316]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3438:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3436|   {
# 3437|     guestfs_h *g;
# 3438|->   Data_Get_Struct (gv, guestfs_h, g);
# 3439|     if (!g)
# 3440|       rb_raise (rb_eArgError, "%s: used handle after closing it", "umask");

Error: COMPILER_WARNING (CWE-477): [#def1317]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c: scope_hint: In function ‘guestfs_int_ruby_wipefs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3481:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3481 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3479|   {
# 3480|     guestfs_h *g;
# 3481|->   Data_Get_Struct (gv, guestfs_h, g);
# 3482|     if (!g)
# 3483|       rb_raise (rb_eArgError, "%s: used handle after closing it", "wipefs");

Error: COMPILER_WARNING (CWE-477): [#def1318]
libguestfs-1.55.9/ruby/ext/guestfs/actions-4.c:3481:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3479|   {
# 3480|     guestfs_h *g;
# 3481|->   Data_Get_Struct (gv, guestfs_h, g);
# 3482|     if (!g)
# 3483|       rb_raise (rb_eArgError, "%s: used handle after closing it", "wipefs");

Error: COMPILER_WARNING (CWE-477): [#def1319]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_acl_set_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:89:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   89 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:37: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   87|   {
#   88|     guestfs_h *g;
#   89|->   Data_Get_Struct (gv, guestfs_h, g);
#   90|     if (!g)
#   91|       rb_raise (rb_eArgError, "%s: used handle after closing it", "acl_set_file");

Error: COMPILER_WARNING (CWE-477): [#def1320]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_add_drive_with_if’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:128:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  128 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  126|   {
#  127|     guestfs_h *g;
#  128|->   Data_Get_Struct (gv, guestfs_h, g);
#  129|     if (!g)
#  130|       rb_raise (rb_eArgError, "%s: used handle after closing it", "add_drive_with_if");

Error: COMPILER_WARNING (CWE-477): [#def1321]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_flushbufs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:167:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  167 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  165|   {
#  166|     guestfs_h *g;
#  167|->   Data_Get_Struct (gv, guestfs_h, g);
#  168|     if (!g)
#  169|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_flushbufs");

Error: COMPILER_WARNING (CWE-477): [#def1322]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_setrw’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:202:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  202 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  200|   {
#  201|     guestfs_h *g;
#  202|->   Data_Get_Struct (gv, guestfs_h, g);
#  203|     if (!g)
#  204|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_setrw");

Error: COMPILER_WARNING (CWE-477): [#def1323]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_balance_pause’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:237:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  237 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  235|   {
#  236|     guestfs_h *g;
#  237|->   Data_Get_Struct (gv, guestfs_h, g);
#  238|     if (!g)
#  239|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_balance_pause");

Error: COMPILER_WARNING (CWE-477): [#def1324]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_device_add’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:274:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  274 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  272|   {
#  273|     guestfs_h *g;
#  274|->   Data_Get_Struct (gv, guestfs_h, g);
#  275|     if (!g)
#  276|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_device_add");

Error: COMPILER_WARNING (CWE-477): [#def1325]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_filesystem_balance’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:323:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  323 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  321|   {
#  322|     guestfs_h *g;
#  323|->   Data_Get_Struct (gv, guestfs_h, g);
#  324|     if (!g)
#  325|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_balance");

Error: COMPILER_WARNING (CWE-477): [#def1326]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_filesystem_show’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:363:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  363 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  361|   {
#  362|     guestfs_h *g;
#  363|->   Data_Get_Struct (gv, guestfs_h, g);
#  364|     if (!g)
#  365|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_filesystem_show");

Error: COMPILER_WARNING (CWE-477): [#def1327]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_qgroup_assign’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:408:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  408 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  406|   {
#  407|     guestfs_h *g;
#  408|->   Data_Get_Struct (gv, guestfs_h, g);
#  409|     if (!g)
#  410|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_assign");

Error: COMPILER_WARNING (CWE-477): [#def1328]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_replace’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:453:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  453 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  451|   {
#  452|     guestfs_h *g;
#  453|->   Data_Get_Struct (gv, guestfs_h, g);
#  454|     if (!g)
#  455|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_replace");

Error: COMPILER_WARNING (CWE-477): [#def1329]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_scrub_cancel’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:490:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  490 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  488|   {
#  489|     guestfs_h *g;
#  490|->   Data_Get_Struct (gv, guestfs_h, g);
#  491|     if (!g)
#  492|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_scrub_cancel");

Error: COMPILER_WARNING (CWE-477): [#def1330]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_subvolume_get_default’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:526:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  526 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  524|   {
#  525|     guestfs_h *g;
#  526|->   Data_Get_Struct (gv, guestfs_h, g);
#  527|     if (!g)
#  528|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_subvolume_get_default");

Error: COMPILER_WARNING (CWE-477): [#def1331]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_btrfstune_seeding’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:563:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  563 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  561|   {
#  562|     guestfs_h *g;
#  563|->   Data_Get_Struct (gv, guestfs_h, g);
#  564|     if (!g)
#  565|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfstune_seeding");

Error: COMPILER_WARNING (CWE-477): [#def1332]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_c_pointer’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:600:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  600 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  598|   {
#  599|     guestfs_h *g;
#  600|->   Data_Get_Struct (gv, guestfs_h, g);
#  601|     if (!g)
#  602|       rb_raise (rb_eArgError, "%s: used handle after closing it", "c_pointer");

Error: COMPILER_WARNING (CWE-477): [#def1333]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_cap_set_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:636:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  636 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  634|   {
#  635|     guestfs_h *g;
#  636|->   Data_Get_Struct (gv, guestfs_h, g);
#  637|     if (!g)
#  638|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cap_set_file");

Error: COMPILER_WARNING (CWE-477): [#def1334]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_copy_file_to_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:675:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  675 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  673|   {
#  674|     guestfs_h *g;
#  675|->   Data_Get_Struct (gv, guestfs_h, g);
#  676|     if (!g)
#  677|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_file_to_device");

Error: COMPILER_WARNING (CWE-477): [#def1335]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_copy_file_to_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:756:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  756 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  754|   {
#  755|     guestfs_h *g;
#  756|->   Data_Get_Struct (gv, guestfs_h, g);
#  757|     if (!g)
#  758|       rb_raise (rb_eArgError, "%s: used handle after closing it", "copy_file_to_file");

Error: COMPILER_WARNING (CWE-477): [#def1336]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_cpio_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:846:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  846 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  844|   {
#  845|     guestfs_h *g;
#  846|->   Data_Get_Struct (gv, guestfs_h, g);
#  847|     if (!g)
#  848|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cpio_out");

Error: COMPILER_WARNING (CWE-477): [#def1337]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_disk_virtual_size’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:901:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  901 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  899|   {
#  900|     guestfs_h *g;
#  901|->   Data_Get_Struct (gv, guestfs_h, g);
#  902|     if (!g)
#  903|       rb_raise (rb_eArgError, "%s: used handle after closing it", "disk_virtual_size");

Error: COMPILER_WARNING (CWE-477): [#def1338]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_download’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:939:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  939 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  937|   {
#  938|     guestfs_h *g;
#  939|->   Data_Get_Struct (gv, guestfs_h, g);
#  940|     if (!g)
#  941|       rb_raise (rb_eArgError, "%s: used handle after closing it", "download");

Error: COMPILER_WARNING (CWE-477): [#def1339]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_feature_available’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:976:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  976 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  974|   {
#  975|     guestfs_h *g;
#  976|->   Data_Get_Struct (gv, guestfs_h, g);
#  977|     if (!g)
#  978|       rb_raise (rb_eArgError, "%s: used handle after closing it", "feature_available");

Error: COMPILER_WARNING (CWE-477): [#def1340]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_fill_pattern’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1025:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1025 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1023|   {
# 1024|     guestfs_h *g;
# 1025|->   Data_Get_Struct (gv, guestfs_h, g);
# 1026|     if (!g)
# 1027|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fill_pattern");

Error: COMPILER_WARNING (CWE-477): [#def1341]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_find0’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1072:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1072 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1070|   {
# 1071|     guestfs_h *g;
# 1072|->   Data_Get_Struct (gv, guestfs_h, g);
# 1073|     if (!g)
# 1074|       rb_raise (rb_eArgError, "%s: used handle after closing it", "find0");

Error: COMPILER_WARNING (CWE-477): [#def1342]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_get_append’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1109:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1109 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1107|   {
# 1108|     guestfs_h *g;
# 1109|->   Data_Get_Struct (gv, guestfs_h, g);
# 1110|     if (!g)
# 1111|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_append");

Error: COMPILER_WARNING (CWE-477): [#def1343]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_get_memsize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1150:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1150 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1148|   {
# 1149|     guestfs_h *g;
# 1150|->   Data_Get_Struct (gv, guestfs_h, g);
# 1151|     if (!g)
# 1152|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_memsize");

Error: COMPILER_WARNING (CWE-477): [#def1344]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_get_program’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1182:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1182 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1180|   {
# 1181|     guestfs_h *g;
# 1182|->   Data_Get_Struct (gv, guestfs_h, g);
# 1183|     if (!g)
# 1184|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_program");

Error: COMPILER_WARNING (CWE-477): [#def1345]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_head_n’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1226:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1226 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1224|   {
# 1225|     guestfs_h *g;
# 1226|->   Data_Get_Struct (gv, guestfs_h, g);
# 1227|     if (!g)
# 1228|       rb_raise (rb_eArgError, "%s: used handle after closing it", "head_n");

Error: COMPILER_WARNING (CWE-477): [#def1346]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_hivex_commit’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1279:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1279 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1277|   {
# 1278|     guestfs_h *g;
# 1279|->   Data_Get_Struct (gv, guestfs_h, g);
# 1280|     if (!g)
# 1281|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_commit");

Error: COMPILER_WARNING (CWE-477): [#def1347]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_delete_child’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1317:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1317 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1315|   {
# 1316|     guestfs_h *g;
# 1317|->   Data_Get_Struct (gv, guestfs_h, g);
# 1318|     if (!g)
# 1319|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_delete_child");

Error: COMPILER_WARNING (CWE-477): [#def1348]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_initrd_cat’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1364:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1364 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1362|   {
# 1363|     guestfs_h *g;
# 1364|->   Data_Get_Struct (gv, guestfs_h, g);
# 1365|     if (!g)
# 1366|       rb_raise (rb_eArgError, "%s: used handle after closing it", "initrd_cat");

Error: COMPILER_WARNING (CWE-477): [#def1349]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_inotify_close’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1405:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1405 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1403|   {
# 1404|     guestfs_h *g;
# 1405|->   Data_Get_Struct (gv, guestfs_h, g);
# 1406|     if (!g)
# 1407|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_close");

Error: COMPILER_WARNING (CWE-477): [#def1350]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_major_version’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1450:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1450 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1448|   {
# 1449|     guestfs_h *g;
# 1450|->   Data_Get_Struct (gv, guestfs_h, g);
# 1451|     if (!g)
# 1452|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_major_version");

Error: COMPILER_WARNING (CWE-477): [#def1351]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_osinfo’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1491:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1491 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1489|   {
# 1490|     guestfs_h *g;
# 1491|->   Data_Get_Struct (gv, guestfs_h, g);
# 1492|     if (!g)
# 1493|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_osinfo");

Error: COMPILER_WARNING (CWE-477): [#def1352]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_roots’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1534:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1534 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1532|   {
# 1533|     guestfs_h *g;
# 1534|->   Data_Get_Struct (gv, guestfs_h, g);
# 1535|     if (!g)
# 1536|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_roots");

Error: COMPILER_WARNING (CWE-477): [#def1353]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_internal_test’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1566:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1566 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1564|   {
# 1565|     guestfs_h *g;
# 1566|->   Data_Get_Struct (gv, guestfs_h, g);
# 1567|     if (!g)
# 1568|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test");

Error: COMPILER_WARNING (CWE-477): [#def1354]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_63_optargs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:1673:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1673 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1671|   {
# 1672|     guestfs_h *g;
# 1673|->   Data_Get_Struct (gv, guestfs_h, g);
# 1674|     if (!g)
# 1675|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_63_optargs");

Error: COMPILER_WARNING (CWE-477): [#def1355]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rhashtableerr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2022:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2022 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2020|   {
# 2021|     guestfs_h *g;
# 2022|->   Data_Get_Struct (gv, guestfs_h, g);
# 2023|     if (!g)
# 2024|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rhashtableerr");

Error: COMPILER_WARNING (CWE-477): [#def1356]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_is_blockdev’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2078:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2078 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2076|   {
# 2077|     guestfs_h *g;
# 2078|->   Data_Get_Struct (gv, guestfs_h, g);
# 2079|     if (!g)
# 2080|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_blockdev");

Error: COMPILER_WARNING (CWE-477): [#def1357]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_is_config’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2130:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2130 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2128|   {
# 2129|     guestfs_h *g;
# 2130|->   Data_Get_Struct (gv, guestfs_h, g);
# 2131|     if (!g)
# 2132|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_config");

Error: COMPILER_WARNING (CWE-477): [#def1358]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_is_fifo’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2173:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2173 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2171|   {
# 2172|     guestfs_h *g;
# 2173|->   Data_Get_Struct (gv, guestfs_h, g);
# 2174|     if (!g)
# 2175|       rb_raise (rb_eArgError, "%s: used handle after closing it", "is_fifo");

Error: COMPILER_WARNING (CWE-477): [#def1359]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_isoinfo_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2233:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2233 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2231|   {
# 2232|     guestfs_h *g;
# 2233|->   Data_Get_Struct (gv, guestfs_h, g);
# 2234|     if (!g)
# 2235|       rb_raise (rb_eArgError, "%s: used handle after closing it", "isoinfo_device");

Error: COMPILER_WARNING (CWE-477): [#def1360]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_journal_next’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2294:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2294 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2292|   {
# 2293|     guestfs_h *g;
# 2294|->   Data_Get_Struct (gv, guestfs_h, g);
# 2295|     if (!g)
# 2296|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_next");

Error: COMPILER_WARNING (CWE-477): [#def1361]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_journal_skip’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2335:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2335 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2333|   {
# 2334|     guestfs_h *g;
# 2335|->   Data_Get_Struct (gv, guestfs_h, g);
# 2336|     if (!g)
# 2337|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_skip");

Error: COMPILER_WARNING (CWE-477): [#def1362]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_ldmtool_volume_partitions’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2371:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2371 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2369|   {
# 2370|     guestfs_h *g;
# 2371|->   Data_Get_Struct (gv, guestfs_h, g);
# 2372|     if (!g)
# 2373|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ldmtool_volume_partitions");

Error: COMPILER_WARNING (CWE-477): [#def1363]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_list_disk_labels’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2421:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2421 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2419|   {
# 2420|     guestfs_h *g;
# 2421|->   Data_Get_Struct (gv, guestfs_h, g);
# 2422|     if (!g)
# 2423|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_disk_labels");

Error: COMPILER_WARNING (CWE-477): [#def1364]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_list_md_devices’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2461:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2461 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2459|   {
# 2460|     guestfs_h *g;
# 2461|->   Data_Get_Struct (gv, guestfs_h, g);
# 2462|     if (!g)
# 2463|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_md_devices");

Error: COMPILER_WARNING (CWE-477): [#def1365]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_ln’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2501:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2501 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2499|   {
# 2500|     guestfs_h *g;
# 2501|->   Data_Get_Struct (gv, guestfs_h, g);
# 2502|     if (!g)
# 2503|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ln");

Error: COMPILER_WARNING (CWE-477): [#def1366]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_ln_sf’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2537:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2537 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2535|   {
# 2536|     guestfs_h *g;
# 2537|->   Data_Get_Struct (gv, guestfs_h, g);
# 2538|     if (!g)
# 2539|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ln_sf");

Error: COMPILER_WARNING (CWE-477): [#def1367]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_luks_add_key’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2580:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2580 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2578|   {
# 2579|     guestfs_h *g;
# 2580|->   Data_Get_Struct (gv, guestfs_h, g);
# 2581|     if (!g)
# 2582|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_add_key");

Error: COMPILER_WARNING (CWE-477): [#def1368]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_lvcreate’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2619:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2619 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2617|   {
# 2618|     guestfs_h *g;
# 2619|->   Data_Get_Struct (gv, guestfs_h, g);
# 2620|     if (!g)
# 2621|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvcreate");

Error: COMPILER_WARNING (CWE-477): [#def1369]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_lvcreate_free’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2660:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2660 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2658|   {
# 2659|     guestfs_h *g;
# 2660|->   Data_Get_Struct (gv, guestfs_h, g);
# 2661|     if (!g)
# 2662|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvcreate_free");

Error: COMPILER_WARNING (CWE-477): [#def1370]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_lvm_set_filter’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2719:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2719 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2717|   {
# 2718|     guestfs_h *g;
# 2719|->   Data_Get_Struct (gv, guestfs_h, g);
# 2720|     if (!g)
# 2721|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvm_set_filter");

Error: COMPILER_WARNING (CWE-477): [#def1371]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_lvs_full’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2768:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2768 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2766|   {
# 2767|     guestfs_h *g;
# 2768|->   Data_Get_Struct (gv, guestfs_h, g);
# 2769|     if (!g)
# 2770|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvs_full");

Error: COMPILER_WARNING (CWE-477): [#def1372]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_md_stat’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2851:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2851 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2849|   {
# 2850|     guestfs_h *g;
# 2851|->   Data_Get_Struct (gv, guestfs_h, g);
# 2852|     if (!g)
# 2853|       rb_raise (rb_eArgError, "%s: used handle after closing it", "md_stat");

Error: COMPILER_WARNING (CWE-477): [#def1373]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_mkfs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:2932:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2932 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2930|   {
# 2931|     guestfs_h *g;
# 2932|->   Data_Get_Struct (gv, guestfs_h, g);
# 2933|     if (!g)
# 2934|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkfs");

Error: COMPILER_WARNING (CWE-477): [#def1374]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_mkfs_b’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3011:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3011 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3009|   {
# 3010|     guestfs_h *g;
# 3011|->   Data_Get_Struct (gv, guestfs_h, g);
# 3012|     if (!g)
# 3013|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkfs_b");

Error: COMPILER_WARNING (CWE-477): [#def1375]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_mkswap_U’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3052:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3052 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3050|   {
# 3051|     guestfs_h *g;
# 3052|->   Data_Get_Struct (gv, guestfs_h, g);
# 3053|     if (!g)
# 3054|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkswap_U");

Error: COMPILER_WARNING (CWE-477): [#def1376]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_mountpoints’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3090:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3090 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3088|   {
# 3089|     guestfs_h *g;
# 3090|->   Data_Get_Struct (gv, guestfs_h, g);
# 3091|     if (!g)
# 3092|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mountpoints");

Error: COMPILER_WARNING (CWE-477): [#def1377]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_nr_devices’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3135:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3135 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3133|   {
# 3134|     guestfs_h *g;
# 3135|->   Data_Get_Struct (gv, guestfs_h, g);
# 3136|     if (!g)
# 3137|       rb_raise (rb_eArgError, "%s: used handle after closing it", "nr_devices");

Error: COMPILER_WARNING (CWE-477): [#def1378]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_ntfsclone_in’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3171:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3171 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3169|   {
# 3170|     guestfs_h *g;
# 3171|->   Data_Get_Struct (gv, guestfs_h, g);
# 3172|     if (!g)
# 3173|       rb_raise (rb_eArgError, "%s: used handle after closing it", "ntfsclone_in");

Error: COMPILER_WARNING (CWE-477): [#def1379]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_parse_environment_list’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3212:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3212 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3210|   {
# 3211|     guestfs_h *g;
# 3212|->   Data_Get_Struct (gv, guestfs_h, g);
# 3213|     if (!g)
# 3214|       rb_raise (rb_eArgError, "%s: used handle after closing it", "parse_environment_list");

Error: COMPILER_WARNING (CWE-477): [#def1380]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_part_get_bootable’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3260:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3260 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3258|   {
# 3259|     guestfs_h *g;
# 3260|->   Data_Get_Struct (gv, guestfs_h, g);
# 3261|     if (!g)
# 3262|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_bootable");

Error: COMPILER_WARNING (CWE-477): [#def1381]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_part_get_gpt_attributes’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3295:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3295 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3293|   {
# 3294|     guestfs_h *g;
# 3295|->   Data_Get_Struct (gv, guestfs_h, g);
# 3296|     if (!g)
# 3297|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_get_gpt_attributes");

Error: COMPILER_WARNING (CWE-477): [#def1382]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_part_set_gpt_type’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3335:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3335 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3333|   {
# 3334|     guestfs_h *g;
# 3335|->   Data_Get_Struct (gv, guestfs_h, g);
# 3336|     if (!g)
# 3337|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_gpt_type");

Error: COMPILER_WARNING (CWE-477): [#def1383]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_part_set_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3376:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3376 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3374|   {
# 3375|     guestfs_h *g;
# 3376|->   Data_Get_Struct (gv, guestfs_h, g);
# 3377|     if (!g)
# 3378|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_name");

Error: COMPILER_WARNING (CWE-477): [#def1384]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_pvremove’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3418:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3418 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3416|   {
# 3417|     guestfs_h *g;
# 3418|->   Data_Get_Struct (gv, guestfs_h, g);
# 3419|     if (!g)
# 3420|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvremove");

Error: COMPILER_WARNING (CWE-477): [#def1385]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_scrub_freespace’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3460:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3460 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3458|   {
# 3459|     guestfs_h *g;
# 3460|->   Data_Get_Struct (gv, guestfs_h, g);
# 3461|     if (!g)
# 3462|       rb_raise (rb_eArgError, "%s: used handle after closing it", "scrub_freespace");

Error: COMPILER_WARNING (CWE-477): [#def1386]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_set_attach_method’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3498:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3498 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3496|   {
# 3497|     guestfs_h *g;
# 3498|->   Data_Get_Struct (gv, guestfs_h, g);
# 3499|     if (!g)
# 3500|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_attach_method");

Error: COMPILER_WARNING (CWE-477): [#def1387]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_set_network’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3540:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3540 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3538|   {
# 3539|     guestfs_h *g;
# 3540|->   Data_Get_Struct (gv, guestfs_h, g);
# 3541|     if (!g)
# 3542|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_network");

Error: COMPILER_WARNING (CWE-477): [#def1388]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_set_smp’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3577:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3577 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3575|   {
# 3576|     guestfs_h *g;
# 3577|->   Data_Get_Struct (gv, guestfs_h, g);
# 3578|     if (!g)
# 3579|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_smp");

Error: COMPILER_WARNING (CWE-477): [#def1389]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_set_tmpdir’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3617:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3617 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3615|   {
# 3616|     guestfs_h *g;
# 3617|->   Data_Get_Struct (gv, guestfs_h, g);
# 3618|     if (!g)
# 3619|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_tmpdir");

Error: COMPILER_WARNING (CWE-477): [#def1390]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_set_trace’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3662:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3662 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3660|   {
# 3661|     guestfs_h *g;
# 3662|->   Data_Get_Struct (gv, guestfs_h, g);
# 3663|     if (!g)
# 3664|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_trace");

Error: COMPILER_WARNING (CWE-477): [#def1391]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_set_uuid_random’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3702:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3702 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3700|   {
# 3701|     guestfs_h *g;
# 3702|->   Data_Get_Struct (gv, guestfs_h, g);
# 3703|     if (!g)
# 3704|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_uuid_random");

Error: COMPILER_WARNING (CWE-477): [#def1392]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_sfdisk’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3759:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3759 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3757|   {
# 3758|     guestfs_h *g;
# 3759|->   Data_Get_Struct (gv, guestfs_h, g);
# 3760|     if (!g)
# 3761|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sfdisk");

Error: COMPILER_WARNING (CWE-477): [#def1393]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_sfdiskM’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3819:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3819 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3817|   {
# 3818|     guestfs_h *g;
# 3819|->   Data_Get_Struct (gv, guestfs_h, g);
# 3820|     if (!g)
# 3821|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sfdiskM");

Error: COMPILER_WARNING (CWE-477): [#def1394]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_sfdisk_N’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3875:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3875 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3873|   {
# 3874|     guestfs_h *g;
# 3875|->   Data_Get_Struct (gv, guestfs_h, g);
# 3876|     if (!g)
# 3877|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sfdisk_N");

Error: COMPILER_WARNING (CWE-477): [#def1395]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_stat’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3919:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3919 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3917|   {
# 3918|     guestfs_h *g;
# 3919|->   Data_Get_Struct (gv, guestfs_h, g);
# 3920|     if (!g)
# 3921|       rb_raise (rb_eArgError, "%s: used handle after closing it", "stat");

Error: COMPILER_WARNING (CWE-477): [#def1396]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_swapoff_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:3971:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3971 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3969|   {
# 3970|     guestfs_h *g;
# 3971|->   Data_Get_Struct (gv, guestfs_h, g);
# 3972|     if (!g)
# 3973|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapoff_device");

Error: COMPILER_WARNING (CWE-477): [#def1397]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_swapon_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4015:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4015 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4013|   {
# 4014|     guestfs_h *g;
# 4015|->   Data_Get_Struct (gv, guestfs_h, g);
# 4016|     if (!g)
# 4017|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapon_device");

Error: COMPILER_WARNING (CWE-477): [#def1398]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_swapon_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4051:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4051 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4049|   {
# 4050|     guestfs_h *g;
# 4051|->   Data_Get_Struct (gv, guestfs_h, g);
# 4052|     if (!g)
# 4053|       rb_raise (rb_eArgError, "%s: used handle after closing it", "swapon_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1399]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_tgz_in’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4087:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4087 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4085|   {
# 4086|     guestfs_h *g;
# 4087|->   Data_Get_Struct (gv, guestfs_h, g);
# 4088|     if (!g)
# 4089|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tgz_in");

Error: COMPILER_WARNING (CWE-477): [#def1400]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_truncate_size’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4131:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4131 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4129|   {
# 4130|     guestfs_h *g;
# 4131|->   Data_Get_Struct (gv, guestfs_h, g);
# 4132|     if (!g)
# 4133|       rb_raise (rb_eArgError, "%s: used handle after closing it", "truncate_size");

Error: COMPILER_WARNING (CWE-477): [#def1401]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_txz_in’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4170:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4170 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4168|   {
# 4169|     guestfs_h *g;
# 4170|->   Data_Get_Struct (gv, guestfs_h, g);
# 4171|     if (!g)
# 4172|       rb_raise (rb_eArgError, "%s: used handle after closing it", "txz_in");

Error: COMPILER_WARNING (CWE-477): [#def1402]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_user_cancel’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4236:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4236 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4234|   {
# 4235|     guestfs_h *g;
# 4236|->   Data_Get_Struct (gv, guestfs_h, g);
# 4237|     if (!g)
# 4238|       rb_raise (rb_eArgError, "%s: used handle after closing it", "user_cancel");

Error: COMPILER_WARNING (CWE-477): [#def1403]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_vgchange_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4270:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4270 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4268|   {
# 4269|     guestfs_h *g;
# 4270|->   Data_Get_Struct (gv, guestfs_h, g);
# 4271|     if (!g)
# 4272|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgchange_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1404]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_vglvuuids’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4309:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4309 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4307|   {
# 4308|     guestfs_h *g;
# 4309|->   Data_Get_Struct (gv, guestfs_h, g);
# 4310|     if (!g)
# 4311|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vglvuuids");

Error: COMPILER_WARNING (CWE-477): [#def1405]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_vgremove’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4355:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4355 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4353|   {
# 4354|     guestfs_h *g;
# 4355|->   Data_Get_Struct (gv, guestfs_h, g);
# 4356|     if (!g)
# 4357|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgremove");

Error: COMPILER_WARNING (CWE-477): [#def1406]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_wc_l’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4389:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4389 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4387|   {
# 4388|     guestfs_h *g;
# 4389|->   Data_Get_Struct (gv, guestfs_h, g);
# 4390|     if (!g)
# 4391|       rb_raise (rb_eArgError, "%s: used handle after closing it", "wc_l");

Error: COMPILER_WARNING (CWE-477): [#def1407]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_xfs_growfs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4432:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4432 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4430|   {
# 4431|     guestfs_h *g;
# 4432|->   Data_Get_Struct (gv, guestfs_h, g);
# 4433|     if (!g)
# 4434|       rb_raise (rb_eArgError, "%s: used handle after closing it", "xfs_growfs");

Error: COMPILER_WARNING (CWE-477): [#def1408]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_xfs_info’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4524:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4524 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4522|   {
# 4523|     guestfs_h *g;
# 4524|->   Data_Get_Struct (gv, guestfs_h, g);
# 4525|     if (!g)
# 4526|       rb_raise (rb_eArgError, "%s: used handle after closing it", "xfs_info");

Error: COMPILER_WARNING (CWE-477): [#def1409]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_xfs_repair’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4605:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4605 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4603|   {
# 4604|     guestfs_h *g;
# 4605|->   Data_Get_Struct (gv, guestfs_h, g);
# 4606|     if (!g)
# 4607|       rb_raise (rb_eArgError, "%s: used handle after closing it", "xfs_repair");

Error: COMPILER_WARNING (CWE-477): [#def1410]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_zero_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4705:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4705 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4703|   {
# 4704|     guestfs_h *g;
# 4705|->   Data_Get_Struct (gv, guestfs_h, g);
# 4706|     if (!g)
# 4707|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zero_device");

Error: COMPILER_WARNING (CWE-477): [#def1411]
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c: scope_hint: In function ‘guestfs_int_ruby_zero_free_space’
libguestfs-1.55.9/ruby/ext/guestfs/actions-5.c:4746:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 4746 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 4744|   {
# 4745|     guestfs_h *g;
# 4746|->   Data_Get_Struct (gv, guestfs_h, g);
# 4747|     if (!g)
# 4748|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zero_free_space");

Error: COMPILER_WARNING (CWE-477): [#def1412]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_aug_mv’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:58:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#   58 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:37: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   56|   {
#   57|     guestfs_h *g;
#   58|->   Data_Get_Struct (gv, guestfs_h, g);
#   59|     if (!g)
#   60|       rb_raise (rb_eArgError, "%s: used handle after closing it", "aug_mv");

Error: COMPILER_WARNING (CWE-477): [#def1413]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_available_all_groups’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:100:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  100 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   98|   {
#   99|     guestfs_h *g;
#  100|->   Data_Get_Struct (gv, guestfs_h, g);
#  101|     if (!g)
#  102|       rb_raise (rb_eArgError, "%s: used handle after closing it", "available_all_groups");

Error: COMPILER_WARNING (CWE-477): [#def1414]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_getbsz’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:148:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  148 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  146|   {
#  147|     guestfs_h *g;
#  148|->   Data_Get_Struct (gv, guestfs_h, g);
#  149|     if (!g)
#  150|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getbsz");

Error: COMPILER_WARNING (CWE-477): [#def1415]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_getro’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:184:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  184 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  182|   {
#  183|     guestfs_h *g;
#  184|->   Data_Get_Struct (gv, guestfs_h, g);
#  185|     if (!g)
#  186|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_getro");

Error: COMPILER_WARNING (CWE-477): [#def1416]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_blockdev_setbsz’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:223:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  223 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  221|   {
#  222|     guestfs_h *g;
#  223|->   Data_Get_Struct (gv, guestfs_h, g);
#  224|     if (!g)
#  225|       rb_raise (rb_eArgError, "%s: used handle after closing it", "blockdev_setbsz");

Error: COMPILER_WARNING (CWE-477): [#def1417]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_qgroup_remove’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:261:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  261 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  259|   {
#  260|     guestfs_h *g;
#  261|->   Data_Get_Struct (gv, guestfs_h, g);
#  262|     if (!g)
#  263|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_qgroup_remove");

Error: COMPILER_WARNING (CWE-477): [#def1418]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_btrfs_quota_enable’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:299:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  299 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  297|   {
#  298|     guestfs_h *g;
#  299|->   Data_Get_Struct (gv, guestfs_h, g);
#  300|     if (!g)
#  301|       rb_raise (rb_eArgError, "%s: used handle after closing it", "btrfs_quota_enable");

Error: COMPILER_WARNING (CWE-477): [#def1419]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_checksums_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:343:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  343 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  341|   {
#  342|     guestfs_h *g;
#  343|->   Data_Get_Struct (gv, guestfs_h, g);
#  344|     if (!g)
#  345|       rb_raise (rb_eArgError, "%s: used handle after closing it", "checksums_out");

Error: COMPILER_WARNING (CWE-477): [#def1420]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_cp_a’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:379:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  379 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  377|   {
#  378|     guestfs_h *g;
#  379|->   Data_Get_Struct (gv, guestfs_h, g);
#  380|     if (!g)
#  381|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cp_a");

Error: COMPILER_WARNING (CWE-477): [#def1421]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_cryptsetup_open’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:458:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  458 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  456|   {
#  457|     guestfs_h *g;
#  458|->   Data_Get_Struct (gv, guestfs_h, g);
#  459|     if (!g)
#  460|       rb_raise (rb_eArgError, "%s: used handle after closing it", "cryptsetup_open");

Error: COMPILER_WARNING (CWE-477): [#def1422]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_df’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:526:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  526 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  524|   {
#  525|     guestfs_h *g;
#  526|->   Data_Get_Struct (gv, guestfs_h, g);
#  527|     if (!g)
#  528|       rb_raise (rb_eArgError, "%s: used handle after closing it", "df");

Error: COMPILER_WARNING (CWE-477): [#def1423]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_disk_format’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:569:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  569 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  567|   {
#  568|     guestfs_h *g;
#  569|->   Data_Get_Struct (gv, guestfs_h, g);
#  570|     if (!g)
#  571|       rb_raise (rb_eArgError, "%s: used handle after closing it", "disk_format");

Error: COMPILER_WARNING (CWE-477): [#def1424]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_egrepi’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:611:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  611 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  609|   {
#  610|     guestfs_h *g;
#  611|->   Data_Get_Struct (gv, guestfs_h, g);
#  612|     if (!g)
#  613|       rb_raise (rb_eArgError, "%s: used handle after closing it", "egrepi");

Error: COMPILER_WARNING (CWE-477): [#def1425]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_fallocate’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:663:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  663 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  661|   {
#  662|     guestfs_h *g;
#  663|->   Data_Get_Struct (gv, guestfs_h, g);
#  664|     if (!g)
#  665|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fallocate");

Error: COMPILER_WARNING (CWE-477): [#def1426]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_fallocate64’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:713:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  713 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  711|   {
#  712|     guestfs_h *g;
#  713|->   Data_Get_Struct (gv, guestfs_h, g);
#  714|     if (!g)
#  715|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fallocate64");

Error: COMPILER_WARNING (CWE-477): [#def1427]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_fgrep’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:754:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  754 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  752|   {
#  753|     guestfs_h *g;
#  754|->   Data_Get_Struct (gv, guestfs_h, g);
#  755|     if (!g)
#  756|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fgrep");

Error: COMPILER_WARNING (CWE-477): [#def1428]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_file’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:813:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  813 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  811|   {
#  812|     guestfs_h *g;
#  813|->   Data_Get_Struct (gv, guestfs_h, g);
#  814|     if (!g)
#  815|       rb_raise (rb_eArgError, "%s: used handle after closing it", "file");

Error: COMPILER_WARNING (CWE-477): [#def1429]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_filesize’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:852:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  852 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  850|   {
#  851|     guestfs_h *g;
#  852|->   Data_Get_Struct (gv, guestfs_h, g);
#  853|     if (!g)
#  854|       rb_raise (rb_eArgError, "%s: used handle after closing it", "filesize");

Error: COMPILER_WARNING (CWE-477): [#def1430]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_filesystem_available’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:899:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  899 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  897|   {
#  898|     guestfs_h *g;
#  899|->   Data_Get_Struct (gv, guestfs_h, g);
#  900|     if (!g)
#  901|       rb_raise (rb_eArgError, "%s: used handle after closing it", "filesystem_available");

Error: COMPILER_WARNING (CWE-477): [#def1431]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_fill’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:939:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  939 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  937|   {
#  938|     guestfs_h *g;
#  939|->   Data_Get_Struct (gv, guestfs_h, g);
#  940|     if (!g)
#  941|       rb_raise (rb_eArgError, "%s: used handle after closing it", "fill");

Error: COMPILER_WARNING (CWE-477): [#def1432]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_find’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:998:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  998 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  996|   {
#  997|     guestfs_h *g;
#  998|->   Data_Get_Struct (gv, guestfs_h, g);
#  999|     if (!g)
# 1000|       rb_raise (rb_eArgError, "%s: used handle after closing it", "find");

Error: COMPILER_WARNING (CWE-477): [#def1433]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_get_direct’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1041:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1041 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1039|   {
# 1040|     guestfs_h *g;
# 1041|->   Data_Get_Struct (gv, guestfs_h, g);
# 1042|     if (!g)
# 1043|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_direct");

Error: COMPILER_WARNING (CWE-477): [#def1434]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_get_hv’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1078:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1078 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1076|   {
# 1077|     guestfs_h *g;
# 1078|->   Data_Get_Struct (gv, guestfs_h, g);
# 1079|     if (!g)
# 1080|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_hv");

Error: COMPILER_WARNING (CWE-477): [#def1435]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_get_libvirt_requested_credentials’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1120:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1120 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1118|   {
# 1119|     guestfs_h *g;
# 1120|->   Data_Get_Struct (gv, guestfs_h, g);
# 1121|     if (!g)
# 1122|       rb_raise (rb_eArgError, "%s: used handle after closing it", "get_libvirt_requested_credentials");

Error: COMPILER_WARNING (CWE-477): [#def1436]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_head’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1165:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1165 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1163|   {
# 1164|     guestfs_h *g;
# 1165|->   Data_Get_Struct (gv, guestfs_h, g);
# 1166|     if (!g)
# 1167|       rb_raise (rb_eArgError, "%s: used handle after closing it", "head");

Error: COMPILER_WARNING (CWE-477): [#def1437]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1211:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1211 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1209|   {
# 1210|     guestfs_h *g;
# 1211|->   Data_Get_Struct (gv, guestfs_h, g);
# 1212|     if (!g)
# 1213|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_name");

Error: COMPILER_WARNING (CWE-477): [#def1438]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_hivex_node_values’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1252:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1252 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1250|   {
# 1251|     guestfs_h *g;
# 1252|->   Data_Get_Struct (gv, guestfs_h, g);
# 1253|     if (!g)
# 1254|       rb_raise (rb_eArgError, "%s: used handle after closing it", "hivex_node_values");

Error: COMPILER_WARNING (CWE-477): [#def1439]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_inotify_read’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1304:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1304 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1302|   {
# 1303|     guestfs_h *g;
# 1304|->   Data_Get_Struct (gv, guestfs_h, g);
# 1305|     if (!g)
# 1306|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inotify_read");

Error: COMPILER_WARNING (CWE-477): [#def1440]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_build_id’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1359:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1359 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1357|   {
# 1358|     guestfs_h *g;
# 1359|->   Data_Get_Struct (gv, guestfs_h, g);
# 1360|     if (!g)
# 1361|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_build_id");

Error: COMPILER_WARNING (CWE-477): [#def1441]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_mountpoints’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1418:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1418 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1416|   {
# 1417|     guestfs_h *g;
# 1418|->   Data_Get_Struct (gv, guestfs_h, g);
# 1419|     if (!g)
# 1420|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_mountpoints");

Error: COMPILER_WARNING (CWE-477): [#def1442]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_package_management’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1475:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1475 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1473|   {
# 1474|     guestfs_h *g;
# 1475|->   Data_Get_Struct (gv, guestfs_h, g);
# 1476|     if (!g)
# 1477|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_package_management");

Error: COMPILER_WARNING (CWE-477): [#def1443]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_inspect_get_product_name’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1518:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1518 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1516|   {
# 1517|     guestfs_h *g;
# 1518|->   Data_Get_Struct (gv, guestfs_h, g);
# 1519|     if (!g)
# 1520|       rb_raise (rb_eArgError, "%s: used handle after closing it", "inspect_get_product_name");

Error: COMPILER_WARNING (CWE-477): [#def1444]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rconststring’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1545:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1545 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1543|   {
# 1544|     guestfs_h *g;
# 1545|->   Data_Get_Struct (gv, guestfs_h, g);
# 1546|     if (!g)
# 1547|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rconststring");

Error: COMPILER_WARNING (CWE-477): [#def1445]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rint’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1570:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1570 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1568|   {
# 1569|     guestfs_h *g;
# 1570|->   Data_Get_Struct (gv, guestfs_h, g);
# 1571|     if (!g)
# 1572|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rint");

Error: COMPILER_WARNING (CWE-477): [#def1446]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rint64err’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1595:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1595 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1593|   {
# 1594|     guestfs_h *g;
# 1595|->   Data_Get_Struct (gv, guestfs_h, g);
# 1596|     if (!g)
# 1597|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rint64err");

Error: COMPILER_WARNING (CWE-477): [#def1447]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_internal_test_rstruct’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1619:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1619 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1617|   {
# 1618|     guestfs_h *g;
# 1619|->   Data_Get_Struct (gv, guestfs_h, g);
# 1620|     if (!g)
# 1621|       rb_raise (rb_eArgError, "%s: used handle after closing it", "internal_test_rstruct");

Error: COMPILER_WARNING (CWE-477): [#def1448]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_isoinfo’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1673:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1673 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1671|   {
# 1672|     guestfs_h *g;
# 1673|->   Data_Get_Struct (gv, guestfs_h, g);
# 1674|     if (!g)
# 1675|       rb_raise (rb_eArgError, "%s: used handle after closing it", "isoinfo");

Error: COMPILER_WARNING (CWE-477): [#def1449]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_journal_close’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1727:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1727 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1725|   {
# 1726|     guestfs_h *g;
# 1727|->   Data_Get_Struct (gv, guestfs_h, g);
# 1728|     if (!g)
# 1729|       rb_raise (rb_eArgError, "%s: used handle after closing it", "journal_close");

Error: COMPILER_WARNING (CWE-477): [#def1450]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_lgetxattr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1777:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1777 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1775|   {
# 1776|     guestfs_h *g;
# 1777|->   Data_Get_Struct (gv, guestfs_h, g);
# 1778|     if (!g)
# 1779|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lgetxattr");

Error: COMPILER_WARNING (CWE-477): [#def1451]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_list_9p’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1816:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1816 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1814|   {
# 1815|     guestfs_h *g;
# 1816|->   Data_Get_Struct (gv, guestfs_h, g);
# 1817|     if (!g)
# 1818|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_9p");

Error: COMPILER_WARNING (CWE-477): [#def1452]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_list_ldm_partitions’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1862:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1862 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1860|   {
# 1861|     guestfs_h *g;
# 1862|->   Data_Get_Struct (gv, guestfs_h, g);
# 1863|     if (!g)
# 1864|       rb_raise (rb_eArgError, "%s: used handle after closing it", "list_ldm_partitions");

Error: COMPILER_WARNING (CWE-477): [#def1453]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_luks_format_cipher’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1905:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1905 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1903|   {
# 1904|     guestfs_h *g;
# 1905|->   Data_Get_Struct (gv, guestfs_h, g);
# 1906|     if (!g)
# 1907|       rb_raise (rb_eArgError, "%s: used handle after closing it", "luks_format_cipher");

Error: COMPILER_WARNING (CWE-477): [#def1454]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_lvm_clear_filter’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1945:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1945 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1943|   {
# 1944|     guestfs_h *g;
# 1945|->   Data_Get_Struct (gv, guestfs_h, g);
# 1946|     if (!g)
# 1947|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvm_clear_filter");

Error: COMPILER_WARNING (CWE-477): [#def1455]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_lvs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:1985:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 1985 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 1983|   {
# 1984|     guestfs_h *g;
# 1985|->   Data_Get_Struct (gv, guestfs_h, g);
# 1986|     if (!g)
# 1987|       rb_raise (rb_eArgError, "%s: used handle after closing it", "lvs");

Error: COMPILER_WARNING (CWE-477): [#def1456]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_max_disks’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2032:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2032 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2030|   {
# 2031|     guestfs_h *g;
# 2032|->   Data_Get_Struct (gv, guestfs_h, g);
# 2033|     if (!g)
# 2034|       rb_raise (rb_eArgError, "%s: used handle after closing it", "max_disks");

Error: COMPILER_WARNING (CWE-477): [#def1457]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_md_detail’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2083:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2083 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2081|   {
# 2082|     guestfs_h *g;
# 2083|->   Data_Get_Struct (gv, guestfs_h, g);
# 2084|     if (!g)
# 2085|       rb_raise (rb_eArgError, "%s: used handle after closing it", "md_detail");

Error: COMPILER_WARNING (CWE-477): [#def1458]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_mke2journal_L’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2127:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2127 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2125|   {
# 2126|     guestfs_h *g;
# 2127|->   Data_Get_Struct (gv, guestfs_h, g);
# 2128|     if (!g)
# 2129|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mke2journal_L");

Error: COMPILER_WARNING (CWE-477): [#def1459]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_mkswap’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2171:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2171 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2169|   {
# 2170|     guestfs_h *g;
# 2171|->   Data_Get_Struct (gv, guestfs_h, g);
# 2172|     if (!g)
# 2173|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkswap");

Error: COMPILER_WARNING (CWE-477): [#def1460]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_mkswap_L’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2231:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2231 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2229|   {
# 2230|     guestfs_h *g;
# 2231|->   Data_Get_Struct (gv, guestfs_h, g);
# 2232|     if (!g)
# 2233|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mkswap_L");

Error: COMPILER_WARNING (CWE-477): [#def1461]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_mktemp’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2292:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2292 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2290|   {
# 2291|     guestfs_h *g;
# 2292|->   Data_Get_Struct (gv, guestfs_h, g);
# 2293|     if (!g)
# 2294|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mktemp");

Error: COMPILER_WARNING (CWE-477): [#def1462]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_mount_loop’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2345:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2345 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2343|   {
# 2344|     guestfs_h *g;
# 2345|->   Data_Get_Struct (gv, guestfs_h, g);
# 2346|     if (!g)
# 2347|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_loop");

Error: COMPILER_WARNING (CWE-477): [#def1463]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_mount_vfs’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2381:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2381 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2379|   {
# 2380|     guestfs_h *g;
# 2381|->   Data_Get_Struct (gv, guestfs_h, g);
# 2382|     if (!g)
# 2383|       rb_raise (rb_eArgError, "%s: used handle after closing it", "mount_vfs");

Error: COMPILER_WARNING (CWE-477): [#def1464]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_part_set_mbr_id’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2425:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2425 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2423|   {
# 2424|     guestfs_h *g;
# 2425|->   Data_Get_Struct (gv, guestfs_h, g);
# 2426|     if (!g)
# 2427|       rb_raise (rb_eArgError, "%s: used handle after closing it", "part_set_mbr_id");

Error: COMPILER_WARNING (CWE-477): [#def1465]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_pread_device’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2470:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2470 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2468|   {
# 2469|     guestfs_h *g;
# 2470|->   Data_Get_Struct (gv, guestfs_h, g);
# 2471|     if (!g)
# 2472|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pread_device");

Error: COMPILER_WARNING (CWE-477): [#def1466]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_pvchange_uuid’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2511:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2511 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2509|   {
# 2510|     guestfs_h *g;
# 2511|->   Data_Get_Struct (gv, guestfs_h, g);
# 2512|     if (!g)
# 2513|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvchange_uuid");

Error: COMPILER_WARNING (CWE-477): [#def1467]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_pvchange_uuid_all’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2546:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2546 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2544|   {
# 2545|     guestfs_h *g;
# 2546|->   Data_Get_Struct (gv, guestfs_h, g);
# 2547|     if (!g)
# 2548|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvchange_uuid_all");

Error: COMPILER_WARNING (CWE-477): [#def1468]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_pvresize_size’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2582:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2582 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2580|   {
# 2581|     guestfs_h *g;
# 2582|->   Data_Get_Struct (gv, guestfs_h, g);
# 2583|     if (!g)
# 2584|       rb_raise (rb_eArgError, "%s: used handle after closing it", "pvresize_size");

Error: COMPILER_WARNING (CWE-477): [#def1469]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_read_lines’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2626:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2626 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2624|   {
# 2625|     guestfs_h *g;
# 2626|->   Data_Get_Struct (gv, guestfs_h, g);
# 2627|     if (!g)
# 2628|       rb_raise (rb_eArgError, "%s: used handle after closing it", "read_lines");

Error: COMPILER_WARNING (CWE-477): [#def1470]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_remount’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2678:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2678 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2676|   {
# 2677|     guestfs_h *g;
# 2678|->   Data_Get_Struct (gv, guestfs_h, g);
# 2679|     if (!g)
# 2680|       rb_raise (rb_eArgError, "%s: used handle after closing it", "remount");

Error: COMPILER_WARNING (CWE-477): [#def1471]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_removexattr’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2732:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2732 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2730|   {
# 2731|     guestfs_h *g;
# 2732|->   Data_Get_Struct (gv, guestfs_h, g);
# 2733|     if (!g)
# 2734|       rb_raise (rb_eArgError, "%s: used handle after closing it", "removexattr");

Error: COMPILER_WARNING (CWE-477): [#def1472]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_resize2fs_size’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2770:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2770 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2768|   {
# 2769|     guestfs_h *g;
# 2770|->   Data_Get_Struct (gv, guestfs_h, g);
# 2771|     if (!g)
# 2772|       rb_raise (rb_eArgError, "%s: used handle after closing it", "resize2fs_size");

Error: COMPILER_WARNING (CWE-477): [#def1473]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_rm_f’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2811:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2811 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2809|   {
# 2810|     guestfs_h *g;
# 2811|->   Data_Get_Struct (gv, guestfs_h, g);
# 2812|     if (!g)
# 2813|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rm_f");

Error: COMPILER_WARNING (CWE-477): [#def1474]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_rsync_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2877:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2877 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2875|   {
# 2876|     guestfs_h *g;
# 2877|->   Data_Get_Struct (gv, guestfs_h, g);
# 2878|     if (!g)
# 2879|       rb_raise (rb_eArgError, "%s: used handle after closing it", "rsync_out");

Error: COMPILER_WARNING (CWE-477): [#def1475]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_set_e2generation’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:2935:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 2935 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2933|   {
# 2934|     guestfs_h *g;
# 2935|->   Data_Get_Struct (gv, guestfs_h, g);
# 2936|     if (!g)
# 2937|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_e2generation");

Error: COMPILER_WARNING (CWE-477): [#def1476]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_set_label’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3000:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3000 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2998|   {
# 2999|     guestfs_h *g;
# 3000|->   Data_Get_Struct (gv, guestfs_h, g);
# 3001|     if (!g)
# 3002|       rb_raise (rb_eArgError, "%s: used handle after closing it", "set_label");

Error: COMPILER_WARNING (CWE-477): [#def1477]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_sfdisk_kernel_geometry’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3038:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3038 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3036|   {
# 3037|     guestfs_h *g;
# 3038|->   Data_Get_Struct (gv, guestfs_h, g);
# 3039|     if (!g)
# 3040|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sfdisk_kernel_geometry");

Error: COMPILER_WARNING (CWE-477): [#def1478]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_sleep’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3073:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3073 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3071|   {
# 3072|     guestfs_h *g;
# 3073|->   Data_Get_Struct (gv, guestfs_h, g);
# 3074|     if (!g)
# 3075|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sleep");

Error: COMPILER_WARNING (CWE-477): [#def1479]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_strings_e’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3139:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3139 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3137|   {
# 3138|     guestfs_h *g;
# 3139|->   Data_Get_Struct (gv, guestfs_h, g);
# 3140|     if (!g)
# 3141|       rb_raise (rb_eArgError, "%s: used handle after closing it", "strings_e");

Error: COMPILER_WARNING (CWE-477): [#def1480]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_sync’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3185:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3185 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3183|   {
# 3184|     guestfs_h *g;
# 3185|->   Data_Get_Struct (gv, guestfs_h, g);
# 3186|     if (!g)
# 3187|       rb_raise (rb_eArgError, "%s: used handle after closing it", "sync");

Error: COMPILER_WARNING (CWE-477): [#def1481]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_tail_n’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3229:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3229 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3227|   {
# 3228|     guestfs_h *g;
# 3229|->   Data_Get_Struct (gv, guestfs_h, g);
# 3230|     if (!g)
# 3231|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tail_n");

Error: COMPILER_WARNING (CWE-477): [#def1482]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_tar_out’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3306:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3306 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3304|   {
# 3305|     guestfs_h *g;
# 3306|->   Data_Get_Struct (gv, guestfs_h, g);
# 3307|     if (!g)
# 3308|       rb_raise (rb_eArgError, "%s: used handle after closing it", "tar_out");

Error: COMPILER_WARNING (CWE-477): [#def1483]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_vfs_type’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3402:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3402 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3400|   {
# 3401|     guestfs_h *g;
# 3402|->   Data_Get_Struct (gv, guestfs_h, g);
# 3403|     if (!g)
# 3404|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vfs_type");

Error: COMPILER_WARNING (CWE-477): [#def1484]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_vgcreate’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3440:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3440 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3438|   {
# 3439|     guestfs_h *g;
# 3440|->   Data_Get_Struct (gv, guestfs_h, g);
# 3441|     if (!g)
# 3442|       rb_raise (rb_eArgError, "%s: used handle after closing it", "vgcreate");

Error: COMPILER_WARNING (CWE-477): [#def1485]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_wait_ready’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3497:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3497 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3495|   {
# 3496|     guestfs_h *g;
# 3497|->   Data_Get_Struct (gv, guestfs_h, g);
# 3498|     if (!g)
# 3499|       rb_raise (rb_eArgError, "%s: used handle after closing it", "wait_ready");

Error: COMPILER_WARNING (CWE-477): [#def1486]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_wc_c’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3532:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3532 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3530|   {
# 3531|     guestfs_h *g;
# 3532|->   Data_Get_Struct (gv, guestfs_h, g);
# 3533|     if (!g)
# 3534|       rb_raise (rb_eArgError, "%s: used handle after closing it", "wc_c");

Error: COMPILER_WARNING (CWE-477): [#def1487]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_yara_load’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3581:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3581 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3579|   {
# 3580|     guestfs_h *g;
# 3581|->   Data_Get_Struct (gv, guestfs_h, g);
# 3582|     if (!g)
# 3583|       rb_raise (rb_eArgError, "%s: used handle after closing it", "yara_load");

Error: COMPILER_WARNING (CWE-477): [#def1488]
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c: scope_hint: In function ‘guestfs_int_ruby_zegrep’
libguestfs-1.55.9/ruby/ext/guestfs/actions-6.c:3621:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
# 3621 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3619|   {
# 3620|     guestfs_h *g;
# 3621|->   Data_Get_Struct (gv, guestfs_h, g);
# 3622|     if (!g)
# 3623|       rb_raise (rb_eArgError, "%s: used handle after closing it", "zegrep");

Error: COMPILER_WARNING (CWE-477): [#def1489]
libguestfs-1.55.9/ruby/ext/guestfs/handle.c: scope_hint: In function ‘guestfs_int_ruby_alloc_handle’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:92:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_wrap_warning’ is deprecated: by TypedData
#   92 |   return Data_Wrap_Struct (c_guestfs, NULL, free_handle, g);
#      |   ^~~~~~
/usr/include/ruby/internal/core.h:27: included_from: Included from here.
/usr/include/ruby/ruby.h:29: included_from: Included from here.
/usr/include/ruby.h:38: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/actions.h:32: included_from: Included from here.
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:28: included_from: Included from here.
/usr/include/ruby/internal/core/rdata.h:293:1: note: declared here
#  293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#   90|      * handle goes away.
#   91|      */
#   92|->   return Data_Wrap_Struct (c_guestfs, NULL, free_handle, g);
#   93|   }
#   94|   

Error: COMPILER_WARNING (CWE-477): [#def1490]
libguestfs-1.55.9/ruby/ext/guestfs/handle.c: scope_hint: In function ‘guestfs_int_ruby_compat_create_handle’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:169:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_wrap_warning’ is deprecated: by TypedData
#  169 |   return Data_Wrap_Struct (c_guestfs, NULL, free_handle, g);
#      |   ^~~~~~
/usr/include/ruby/internal/core/rdata.h:293:1: note: declared here
#  293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  167|     guestfs_set_error_handler (g, NULL, NULL);
#  168|   
#  169|->   return Data_Wrap_Struct (c_guestfs, NULL, free_handle, g);
#  170|   }
#  171|   

Error: COMPILER_WARNING (CWE-477): [#def1491]
libguestfs-1.55.9/ruby/ext/guestfs/handle.c: scope_hint: In function ‘guestfs_int_ruby_close_handle’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:184:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  184 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  182|   {
#  183|     guestfs_h *g;
#  184|->   Data_Get_Struct (gv, guestfs_h, g);
#  185|   
#  186|     /* Clear the data pointer first so there's no chance of a double

Error: COMPILER_WARNING (CWE-477): [#def1492]
libguestfs-1.55.9/ruby/ext/guestfs/handle.c: scope_hint: In function ‘guestfs_int_ruby_set_event_callback’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:212:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  212 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  210|     char key[64];
#  211|   
#  212|->   Data_Get_Struct (gv, guestfs_h, g);
#  213|   
#  214|     event_bitmask = NUM2ULL (event_bitmaskv);

Error: COMPILER_WARNING (CWE-477): [#def1493]
libguestfs-1.55.9/ruby/ext/guestfs/handle.c: scope_hint: In function ‘guestfs_int_ruby_delete_event_callback’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:252:3: warning[-Wdeprecated-declarations]: ‘rb_data_object_get_warning’ is deprecated: by TypedData
#  252 |   Data_Get_Struct (gv, guestfs_h, g);
#      |   ^~~~~~~~~~~~~~~
/usr/include/ruby/internal/core/rdata.h:325:1: note: declared here
#  325 | rb_data_object_get_warning(VALUE obj)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  250|     VALUE *root;
#  251|   
#  252|->   Data_Get_Struct (gv, guestfs_h, g);
#  253|   
#  254|     snprintf (key, sizeof key, "_ruby_event_%d", eh);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1494]
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:385:9: warning[-Wanalyzer-malloc-leak]: leak of ‘get_all_event_callbacks(gvp, & len)’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:47:1: enter_function: entry to ‘free_handle’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:58:21: call_function: calling ‘get_all_event_callbacks’ from ‘free_handle’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:58:21: return_function: returning to ‘free_handle’ from ‘get_all_event_callbacks’
libguestfs-1.55.9/ruby/ext/guestfs/handle.c:385:9: danger: ‘get_all_event_callbacks(gvp, & len)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
#  383|     root = guestfs_first_private (g, &key);
#  384|     while (root != NULL) {
#  385|->     if (strncmp (key, "_ruby_event_", strlen ("_ruby_event_")) == 0)
#  386|         (*len_rtn)++;
#  387|       root = guestfs_next_private (g, &key);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1495]
libguestfs-1.55.9/test-tool/test-tool.c:345:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
libguestfs-1.55.9/test-tool/test-tool.c:314:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/test-tool/test-tool.c:315:7: branch_false: ...to here
libguestfs-1.55.9/test-tool/test-tool.c:314:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/test-tool/test-tool.c:320:6: branch_false: ...to here
libguestfs-1.55.9/test-tool/test-tool.c:320:6: branch_false: following ‘false’ branch (when ‘use_wrapper != 0’)...
libguestfs-1.55.9/test-tool/test-tool.c:330:7: branch_false: ...to here
libguestfs-1.55.9/test-tool/test-tool.c:330:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/test-tool/test-tool.c:332:7: branch_false: ...to here
libguestfs-1.55.9/test-tool/test-tool.c:332:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/test-tool/test-tool.c:333:8: branch_false: ...to here
libguestfs-1.55.9/test-tool/test-tool.c:332:7: branch_false: following ‘false’ branch...
libguestfs-1.55.9/test-tool/test-tool.c:338:8: branch_false: ...to here
libguestfs-1.55.9/test-tool/test-tool.c:339:6: branch_false: following ‘false’ branch...
libguestfs-1.55.9/test-tool/test-tool.c:342:3: branch_false: ...to here
libguestfs-1.55.9/test-tool/test-tool.c:344:8: acquire_memory: this call could return NULL
libguestfs-1.55.9/test-tool/test-tool.c:345:3: danger: argument 1 (‘fp’) from [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14) could be NULL where non-null expected
#  343|   
#  344|     fp = fdopen (fd, "w");
#  345|->   fprintf (fp,
#  346|              "#!/bin/sh -\n"
#  347|              "host_cpu=%s\n"

Error: CLIPPY_WARNING: [#def1496]
src/base.rs:42:27: warning: very complex type used. Consider factoring parts into `type` definitions
#     |
#  42 |       pub(crate) callbacks: collections::HashMap<
#     |  ___________________________^
#  43 | |         event::EventHandle,
#  44 | |         Box<Box<dyn Fn(guestfs::Event, event::EventHandle, &[u8], &[u64]) + 'a>>,
#  45 | |     >,
#     | |_____^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
#     = note: `#[warn(clippy::type_complexity)]` on by default

Error: CLIPPY_WARNING: [#def1497]
src/base.rs:70:6: warning: the following explicit lifetimes could be elided: 'a
#     |
#  70 | impl<'a> Drop for Handle<'a> {
#     |      ^^                  ^^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
#     = note: `#[warn(clippy::needless_lifetimes)]` on by default
#  help: elide the lifetimes
#     |
#  70 - impl<'a> Drop for Handle<'a> {
#  70 + impl Drop for Handle<'_> {
#     |

Error: CLIPPY_WARNING: [#def1498]
src/base.rs:89:5: warning: you should consider adding a `Default` implementation for `CreateFlags`
#     |
#  89 | /     pub fn new() -> CreateFlags {
#  90 | |         CreateFlags::none()
#  91 | |     }
#     | |_____^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
#     = note: `#[warn(clippy::new_without_default)]` on by default
#  help: try adding this
#     |
#  81 + impl Default for CreateFlags {
#  82 +     fn default() -> Self {
#  83 +         Self::new()
#  84 +     }
#  85 + }
#     |

Error: CLIPPY_WARNING: [#def1499]
src/base.rs:103:27: warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
#      |
#  103 |     unsafe fn to_libc_int(self) -> i64 {
#      |                           ^^^^
#      |
#      = help: consider choosing a less ambiguous name
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
#      = note: `#[warn(clippy::wrong_self_convention)]` on by default

Error: CLIPPY_WARNING: [#def1500]
src/error.rs:101:6: warning: the following explicit lifetimes could be elided: 'a
#      |
#  101 | impl<'a> base::Handle<'a> {
#      |      ^^               ^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
#  help: elide the lifetimes
#      |
#  101 - impl<'a> base::Handle<'a> {
#  101 + impl base::Handle<'_> {
#      |

Error: CLIPPY_WARNING: [#def1501]
src/event.rs:79:31: warning: bound is defined in more than one place
#     |
#  79 |     pub fn set_event_callback<C: 'a>(
#     |                               ^
#  ...
#  85 |         C: Fn(guestfs::Event, EventHandle, &[u8], &[u64]) + 'a,
#     |         ^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
#     = note: `#[warn(clippy::multiple_bound_locations)]` on by default

Error: CLIPPY_WARNING: [#def1502]
src/event.rs:87:34: warning: type parameter `C` goes unused in function definition
#     |
#  87 |         extern "C" fn trampoline<C>(
#     |                                  ^
#     |
#     = help: consider removing the parameter
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
#     = note: `#[warn(clippy::extra_unused_type_parameters)]` on by default

Error: CLIPPY_WARNING: [#def1503]
src/event.rs:119:27: warning: very complex type used. Consider factoring parts into `type` definitions
#      |
#  119 |             let callback: &Box<dyn Fn(guestfs::Event, EventHandle, &[u8], &[u64])> =
#      |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity

Error: CLIPPY_WARNING: [#def1504]
src/event.rs:126:23: warning: very complex type used. Consider factoring parts into `type` definitions
#      |
#  126 |         let callback: Box<Box<dyn Fn(guestfs::Event, EventHandle, &[u8], &[u64]) + 'a>> =
#      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity

Error: CLIPPY_WARNING: [#def1505]
src/guestfs.rs:132:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  132 |                 app_name: char_ptr_to_string((*raw).app_name)?,
#      |                                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
#      = note: `#[warn(clippy::not_unsafe_ptr_arg_deref)]` on by default

Error: CLIPPY_WARNING: [#def1506]
src/guestfs.rs:133:56: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  133 |                 app_display_name: char_ptr_to_string((*raw).app_display_name)?,
#      |                                                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1507]
src/guestfs.rs:134:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  134 |                 app_epoch: (*raw).app_epoch,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1508]
src/guestfs.rs:135:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  135 |                 app_version: char_ptr_to_string((*raw).app_version)?,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1509]
src/guestfs.rs:136:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  136 |                 app_release: char_ptr_to_string((*raw).app_release)?,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1510]
src/guestfs.rs:137:56: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  137 |                 app_install_path: char_ptr_to_string((*raw).app_install_path)?,
#      |                                                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1511]
src/guestfs.rs:138:54: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  138 |                 app_trans_path: char_ptr_to_string((*raw).app_trans_path)?,
#      |                                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1512]
src/guestfs.rs:139:53: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  139 |                 app_publisher: char_ptr_to_string((*raw).app_publisher)?,
#      |                                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1513]
src/guestfs.rs:140:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  140 |                 app_url: char_ptr_to_string((*raw).app_url)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1514]
src/guestfs.rs:141:58: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  141 |                 app_source_package: char_ptr_to_string((*raw).app_source_package)?,
#      |                                                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1515]
src/guestfs.rs:142:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  142 |                 app_summary: char_ptr_to_string((*raw).app_summary)?,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1516]
src/guestfs.rs:143:55: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  143 |                 app_description: char_ptr_to_string((*raw).app_description)?,
#      |                                                       ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1517]
src/guestfs.rs:194:49: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  194 |                 app2_name: char_ptr_to_string((*raw).app2_name)?,
#      |                                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1518]
src/guestfs.rs:195:57: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  195 |                 app2_display_name: char_ptr_to_string((*raw).app2_display_name)?,
#      |                                                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1519]
src/guestfs.rs:196:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  196 |                 app2_epoch: (*raw).app2_epoch,
#      |                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1520]
src/guestfs.rs:197:52: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  197 |                 app2_version: char_ptr_to_string((*raw).app2_version)?,
#      |                                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1521]
src/guestfs.rs:198:52: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  198 |                 app2_release: char_ptr_to_string((*raw).app2_release)?,
#      |                                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1522]
src/guestfs.rs:199:49: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  199 |                 app2_arch: char_ptr_to_string((*raw).app2_arch)?,
#      |                                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1523]
src/guestfs.rs:200:57: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  200 |                 app2_install_path: char_ptr_to_string((*raw).app2_install_path)?,
#      |                                                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1524]
src/guestfs.rs:201:55: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  201 |                 app2_trans_path: char_ptr_to_string((*raw).app2_trans_path)?,
#      |                                                       ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1525]
src/guestfs.rs:202:54: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  202 |                 app2_publisher: char_ptr_to_string((*raw).app2_publisher)?,
#      |                                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1526]
src/guestfs.rs:203:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  203 |                 app2_url: char_ptr_to_string((*raw).app2_url)?,
#      |                                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1527]
src/guestfs.rs:204:59: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  204 |                 app2_source_package: char_ptr_to_string((*raw).app2_source_package)?,
#      |                                                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1528]
src/guestfs.rs:205:52: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  205 |                 app2_summary: char_ptr_to_string((*raw).app2_summary)?,
#      |                                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1529]
src/guestfs.rs:206:56: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  206 |                 app2_description: char_ptr_to_string((*raw).app2_description)?,
#      |                                                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1530]
src/guestfs.rs:207:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  207 |                 app2_spare1: char_ptr_to_string((*raw).app2_spare1)?,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1531]
src/guestfs.rs:208:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  208 |                 app2_spare2: char_ptr_to_string((*raw).app2_spare2)?,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1532]
src/guestfs.rs:209:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  209 |                 app2_spare3: char_ptr_to_string((*raw).app2_spare3)?,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1533]
src/guestfs.rs:210:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  210 |                 app2_spare4: char_ptr_to_string((*raw).app2_spare4)?,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1534]
src/guestfs.rs:237:59: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  237 |                 btrfsbalance_status: char_ptr_to_string((*raw).btrfsbalance_status)?,
#      |                                                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1535]
src/guestfs.rs:238:39: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  238 |                 btrfsbalance_total: (*raw).btrfsbalance_total,
#      |                                       ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1536]
src/guestfs.rs:239:42: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  239 |                 btrfsbalance_balanced: (*raw).btrfsbalance_balanced,
#      |                                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1537]
src/guestfs.rs:240:44: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  240 |                 btrfsbalance_considered: (*raw).btrfsbalance_considered,
#      |                                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1538]
src/guestfs.rs:241:38: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  241 |                 btrfsbalance_left: (*raw).btrfsbalance_left,
#      |                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1539]
src/guestfs.rs:264:54: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  264 |                 btrfsqgroup_id: char_ptr_to_string((*raw).btrfsqgroup_id)?,
#      |                                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1540]
src/guestfs.rs:265:37: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  265 |                 btrfsqgroup_rfer: (*raw).btrfsqgroup_rfer,
#      |                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1541]
src/guestfs.rs:266:37: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  266 |                 btrfsqgroup_excl: (*raw).btrfsqgroup_excl,
#      |                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1542]
src/guestfs.rs:313:53: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  313 |                 btrfsscrub_data_extents_scrubbed: (*raw).btrfsscrub_data_extents_scrubbed,
#      |                                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1543]
src/guestfs.rs:314:53: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  314 |                 btrfsscrub_tree_extents_scrubbed: (*raw).btrfsscrub_tree_extents_scrubbed,
#      |                                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1544]
src/guestfs.rs:315:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  315 |                 btrfsscrub_data_bytes_scrubbed: (*raw).btrfsscrub_data_bytes_scrubbed,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1545]
src/guestfs.rs:316:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  316 |                 btrfsscrub_tree_bytes_scrubbed: (*raw).btrfsscrub_tree_bytes_scrubbed,
#      |                                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1546]
src/guestfs.rs:317:43: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  317 |                 btrfsscrub_read_errors: (*raw).btrfsscrub_read_errors,
#      |                                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1547]
src/guestfs.rs:318:43: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  318 |                 btrfsscrub_csum_errors: (*raw).btrfsscrub_csum_errors,
#      |                                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1548]
src/guestfs.rs:319:45: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  319 |                 btrfsscrub_verify_errors: (*raw).btrfsscrub_verify_errors,
#      |                                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1549]
src/guestfs.rs:320:39: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  320 |                 btrfsscrub_no_csum: (*raw).btrfsscrub_no_csum,
#      |                                       ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1550]
src/guestfs.rs:321:45: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  321 |                 btrfsscrub_csum_discards: (*raw).btrfsscrub_csum_discards,
#      |                                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1551]
src/guestfs.rs:322:44: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  322 |                 btrfsscrub_super_errors: (*raw).btrfsscrub_super_errors,
#      |                                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1552]
src/guestfs.rs:323:45: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  323 |                 btrfsscrub_malloc_errors: (*raw).btrfsscrub_malloc_errors,
#      |                                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1553]
src/guestfs.rs:324:52: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  324 |                 btrfsscrub_uncorrectable_errors: (*raw).btrfsscrub_uncorrectable_errors,
#      |                                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1554]
src/guestfs.rs:325:49: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  325 |                 btrfsscrub_unverified_errors: (*raw).btrfsscrub_unverified_errors,
#      |                                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1555]
src/guestfs.rs:326:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  326 |                 btrfsscrub_corrected_errors: (*raw).btrfsscrub_corrected_errors,
#      |                                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1556]
src/guestfs.rs:327:45: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  327 |                 btrfsscrub_last_physical: (*raw).btrfsscrub_last_physical,
#      |                                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1557]
src/guestfs.rs:350:38: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  350 |                 btrfssubvolume_id: (*raw).btrfssubvolume_id,
#      |                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1558]
src/guestfs.rs:351:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  351 |                 btrfssubvolume_top_level_id: (*raw).btrfssubvolume_top_level_id,
#      |                                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1559]
src/guestfs.rs:352:59: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  352 |                 btrfssubvolume_path: char_ptr_to_string((*raw).btrfssubvolume_path)?,
#      |                                                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1560]
src/guestfs.rs:375:24: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  375 |                 ino: (*raw).ino,
#      |                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1561]
src/guestfs.rs:376:23: warning: casting to the same type is unnecessary (`i8` -> `i8`)
#      |
#  376 |                 ftyp: (*raw).ftyp as i8,
#      |                       ^^^^^^^^^^^^^^^^^ help: try: `(*raw).ftyp`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
#      = note: `#[warn(clippy::unnecessary_cast)]` on by default

Error: CLIPPY_WARNING: [#def1562]
src/guestfs.rs:376:25: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  376 |                 ftyp: (*raw).ftyp as i8,
#      |                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1563]
src/guestfs.rs:377:44: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  377 |                 name: char_ptr_to_string((*raw).name)?,
#      |                                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1564]
src/guestfs.rs:396:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  396 |                 hivex_node_h: (*raw).hivex_node_h,
#      |                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1565]
src/guestfs.rs:415:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  415 |                 hivex_value_h: (*raw).hivex_value_h,
#      |                                  ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1566]
src/guestfs.rs:440:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  440 |                 in_wd: (*raw).in_wd,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1567]
src/guestfs.rs:441:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  441 |                 in_mask: (*raw).in_mask,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1568]
src/guestfs.rs:442:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  442 |                 in_cookie: (*raw).in_cookie,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1569]
src/guestfs.rs:443:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  443 |                 in_name: char_ptr_to_string((*raw).in_name)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1570]
src/guestfs.rs:464:22: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  464 |                 i: (*raw).i,
#      |                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1571]
src/guestfs.rs:465:22: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  465 |                 b: (*raw).b,
#      |                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1572]
src/guestfs.rs:516:53: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  516 |                 iso_system_id: char_ptr_to_string((*raw).iso_system_id)?,
#      |                                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1573]
src/guestfs.rs:517:53: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  517 |                 iso_volume_id: char_ptr_to_string((*raw).iso_volume_id)?,
#      |                                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1574]
src/guestfs.rs:518:42: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  518 |                 iso_volume_space_size: (*raw).iso_volume_space_size,
#      |                                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1575]
src/guestfs.rs:519:40: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  519 |                 iso_volume_set_size: (*raw).iso_volume_set_size,
#      |                                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1576]
src/guestfs.rs:520:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  520 |                 iso_volume_sequence_number: (*raw).iso_volume_sequence_number,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1577]
src/guestfs.rs:521:43: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  521 |                 iso_logical_block_size: (*raw).iso_logical_block_size,
#      |                                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1578]
src/guestfs.rs:522:57: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  522 |                 iso_volume_set_id: char_ptr_to_string((*raw).iso_volume_set_id)?,
#      |                                                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1579]
src/guestfs.rs:523:56: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  523 |                 iso_publisher_id: char_ptr_to_string((*raw).iso_publisher_id)?,
#      |                                                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1580]
src/guestfs.rs:524:60: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  524 |                 iso_data_preparer_id: char_ptr_to_string((*raw).iso_data_preparer_id)?,
#      |                                                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1581]
src/guestfs.rs:525:58: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  525 |                 iso_application_id: char_ptr_to_string((*raw).iso_application_id)?,
#      |                                                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1582]
src/guestfs.rs:526:61: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  526 |                 iso_copyright_file_id: char_ptr_to_string((*raw).iso_copyright_file_id)?,
#      |                                                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1583]
src/guestfs.rs:527:60: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  527 |                 iso_abstract_file_id: char_ptr_to_string((*raw).iso_abstract_file_id)?,
#      |                                                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1584]
src/guestfs.rs:528:65: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  528 |                 iso_bibliographic_file_id: char_ptr_to_string((*raw).iso_bibliographic_file_id)?,
#      |                                                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1585]
src/guestfs.rs:529:42: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  529 |                 iso_volume_creation_t: (*raw).iso_volume_creation_t,
#      |                                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1586]
src/guestfs.rs:530:46: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  530 |                 iso_volume_modification_t: (*raw).iso_volume_modification_t,
#      |                                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1587]
src/guestfs.rs:531:44: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  531 |                 iso_volume_expiration_t: (*raw).iso_volume_expiration_t,
#      |                                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1588]
src/guestfs.rs:532:43: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  532 |                 iso_volume_effective_t: (*raw).iso_volume_effective_t,
#      |                                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1589]
src/guestfs.rs:581:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  581 |                 lv_name: char_ptr_to_string((*raw).lv_name)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1590]
src/guestfs.rs:582:38: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  582 |                 lv_uuid: UUID::new((*raw).lv_uuid),
#      |                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1591]
src/guestfs.rs:583:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  583 |                 lv_attr: char_ptr_to_string((*raw).lv_attr)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1592]
src/guestfs.rs:584:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  584 |                 lv_major: (*raw).lv_major,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1593]
src/guestfs.rs:585:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  585 |                 lv_minor: (*raw).lv_minor,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1594]
src/guestfs.rs:586:36: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  586 |                 lv_kernel_major: (*raw).lv_kernel_major,
#      |                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1595]
src/guestfs.rs:587:36: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  587 |                 lv_kernel_minor: (*raw).lv_kernel_minor,
#      |                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1596]
src/guestfs.rs:588:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  588 |                 lv_size: (*raw).lv_size,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1597]
src/guestfs.rs:589:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  589 |                 seg_count: (*raw).seg_count,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1598]
src/guestfs.rs:590:46: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  590 |                 origin: char_ptr_to_string((*raw).origin)?,
#      |                                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1599]
src/guestfs.rs:591:36: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  591 |                 snap_percent: if (*raw).snap_percent < 0.0 {
#      |                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1600]
src/guestfs.rs:594:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  594 |                     Some((*raw).snap_percent)
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1601]
src/guestfs.rs:596:36: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  596 |                 copy_percent: if (*raw).copy_percent < 0.0 {
#      |                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1602]
src/guestfs.rs:599:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  599 |                     Some((*raw).copy_percent)
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1603]
src/guestfs.rs:601:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  601 |                 move_pv: char_ptr_to_string((*raw).move_pv)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1604]
src/guestfs.rs:602:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  602 |                 lv_tags: char_ptr_to_string((*raw).lv_tags)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1605]
src/guestfs.rs:603:50: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  603 |                 mirror_log: char_ptr_to_string((*raw).mirror_log)?,
#      |                                                  ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1606]
src/guestfs.rs:604:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  604 |                 modules: char_ptr_to_string((*raw).modules)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1607]
src/guestfs.rs:649:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  649 |                 pv_name: char_ptr_to_string((*raw).pv_name)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1608]
src/guestfs.rs:650:38: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  650 |                 pv_uuid: UUID::new((*raw).pv_uuid),
#      |                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1609]
src/guestfs.rs:651:46: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  651 |                 pv_fmt: char_ptr_to_string((*raw).pv_fmt)?,
#      |                                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1610]
src/guestfs.rs:652:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  652 |                 pv_size: (*raw).pv_size,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1611]
src/guestfs.rs:653:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  653 |                 dev_size: (*raw).dev_size,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1612]
src/guestfs.rs:654:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  654 |                 pv_free: (*raw).pv_free,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1613]
src/guestfs.rs:655:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  655 |                 pv_used: (*raw).pv_used,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1614]
src/guestfs.rs:656:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  656 |                 pv_attr: char_ptr_to_string((*raw).pv_attr)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1615]
src/guestfs.rs:657:32: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  657 |                 pv_pe_count: (*raw).pv_pe_count,
#      |                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1616]
src/guestfs.rs:658:38: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  658 |                 pv_pe_alloc_count: (*raw).pv_pe_alloc_count,
#      |                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1617]
src/guestfs.rs:659:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  659 |                 pv_tags: char_ptr_to_string((*raw).pv_tags)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1618]
src/guestfs.rs:660:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  660 |                 pe_start: (*raw).pe_start,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1619]
src/guestfs.rs:661:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  661 |                 pv_mda_count: (*raw).pv_mda_count,
#      |                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1620]
src/guestfs.rs:662:32: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  662 |                 pv_mda_free: (*raw).pv_mda_free,
#      |                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1621]
src/guestfs.rs:717:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  717 |                 vg_name: char_ptr_to_string((*raw).vg_name)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1622]
src/guestfs.rs:718:38: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  718 |                 vg_uuid: UUID::new((*raw).vg_uuid),
#      |                                      ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1623]
src/guestfs.rs:719:46: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  719 |                 vg_fmt: char_ptr_to_string((*raw).vg_fmt)?,
#      |                                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1624]
src/guestfs.rs:720:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  720 |                 vg_attr: char_ptr_to_string((*raw).vg_attr)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1625]
src/guestfs.rs:721:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  721 |                 vg_size: (*raw).vg_size,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1626]
src/guestfs.rs:722:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  722 |                 vg_free: (*raw).vg_free,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1627]
src/guestfs.rs:723:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  723 |                 vg_sysid: char_ptr_to_string((*raw).vg_sysid)?,
#      |                                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1628]
src/guestfs.rs:724:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  724 |                 vg_extent_size: (*raw).vg_extent_size,
#      |                                   ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1629]
src/guestfs.rs:725:36: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  725 |                 vg_extent_count: (*raw).vg_extent_count,
#      |                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1630]
src/guestfs.rs:726:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  726 |                 vg_free_count: (*raw).vg_free_count,
#      |                                  ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1631]
src/guestfs.rs:727:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  727 |                 max_lv: (*raw).max_lv,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1632]
src/guestfs.rs:728:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  728 |                 max_pv: (*raw).max_pv,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1633]
src/guestfs.rs:729:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  729 |                 pv_count: (*raw).pv_count,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1634]
src/guestfs.rs:730:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  730 |                 lv_count: (*raw).lv_count,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1635]
src/guestfs.rs:731:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  731 |                 snap_count: (*raw).snap_count,
#      |                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1636]
src/guestfs.rs:732:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  732 |                 vg_seqno: (*raw).vg_seqno,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1637]
src/guestfs.rs:733:47: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  733 |                 vg_tags: char_ptr_to_string((*raw).vg_tags)?,
#      |                                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1638]
src/guestfs.rs:734:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  734 |                 vg_mda_count: (*raw).vg_mda_count,
#      |                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1639]
src/guestfs.rs:735:32: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  735 |                 vg_mda_free: (*raw).vg_mda_free,
#      |                                ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1640]
src/guestfs.rs:758:53: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  758 |                 mdstat_device: char_ptr_to_string((*raw).mdstat_device)?,
#      |                                                     ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1641]
src/guestfs.rs:759:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  759 |                 mdstat_index: (*raw).mdstat_index,
#      |                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1642]
src/guestfs.rs:760:52: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  760 |                 mdstat_flags: char_ptr_to_string((*raw).mdstat_flags)?,
#      |                                                    ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1643]
src/guestfs.rs:785:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  785 |                 part_num: (*raw).part_num,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1644]
src/guestfs.rs:786:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  786 |                 part_start: (*raw).part_start,
#      |                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1645]
src/guestfs.rs:787:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  787 |                 part_end: (*raw).part_end,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1646]
src/guestfs.rs:788:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  788 |                 part_size: (*raw).part_size,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1647]
src/guestfs.rs:831:24: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  831 |                 dev: (*raw).dev,
#      |                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1648]
src/guestfs.rs:832:24: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  832 |                 ino: (*raw).ino,
#      |                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1649]
src/guestfs.rs:833:25: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  833 |                 mode: (*raw).mode,
#      |                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1650]
src/guestfs.rs:834:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  834 |                 nlink: (*raw).nlink,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1651]
src/guestfs.rs:835:24: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  835 |                 uid: (*raw).uid,
#      |                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1652]
src/guestfs.rs:836:24: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  836 |                 gid: (*raw).gid,
#      |                        ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1653]
src/guestfs.rs:837:25: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  837 |                 rdev: (*raw).rdev,
#      |                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1654]
src/guestfs.rs:838:25: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  838 |                 size: (*raw).size,
#      |                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1655]
src/guestfs.rs:839:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  839 |                 blksize: (*raw).blksize,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1656]
src/guestfs.rs:840:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  840 |                 blocks: (*raw).blocks,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1657]
src/guestfs.rs:841:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  841 |                 atime: (*raw).atime,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1658]
src/guestfs.rs:842:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  842 |                 mtime: (*raw).mtime,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1659]
src/guestfs.rs:843:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  843 |                 ctime: (*raw).ctime,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1660]
src/guestfs.rs:904:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  904 |                 st_dev: (*raw).st_dev,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1661]
src/guestfs.rs:905:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  905 |                 st_ino: (*raw).st_ino,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1662]
src/guestfs.rs:906:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  906 |                 st_mode: (*raw).st_mode,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1663]
src/guestfs.rs:907:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  907 |                 st_nlink: (*raw).st_nlink,
#      |                             ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1664]
src/guestfs.rs:908:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  908 |                 st_uid: (*raw).st_uid,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1665]
src/guestfs.rs:909:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  909 |                 st_gid: (*raw).st_gid,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1666]
src/guestfs.rs:910:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  910 |                 st_rdev: (*raw).st_rdev,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1667]
src/guestfs.rs:911:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  911 |                 st_size: (*raw).st_size,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1668]
src/guestfs.rs:912:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  912 |                 st_blksize: (*raw).st_blksize,
#      |                               ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1669]
src/guestfs.rs:913:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  913 |                 st_blocks: (*raw).st_blocks,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1670]
src/guestfs.rs:914:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  914 |                 st_atime_sec: (*raw).st_atime_sec,
#      |                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1671]
src/guestfs.rs:915:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  915 |                 st_atime_nsec: (*raw).st_atime_nsec,
#      |                                  ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1672]
src/guestfs.rs:916:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  916 |                 st_mtime_sec: (*raw).st_mtime_sec,
#      |                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1673]
src/guestfs.rs:917:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  917 |                 st_mtime_nsec: (*raw).st_mtime_nsec,
#      |                                  ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1674]
src/guestfs.rs:918:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  918 |                 st_ctime_sec: (*raw).st_ctime_sec,
#      |                                 ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1675]
src/guestfs.rs:919:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  919 |                 st_ctime_nsec: (*raw).st_ctime_nsec,
#      |                                  ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1676]
src/guestfs.rs:920:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  920 |                 st_spare1: (*raw).st_spare1,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1677]
src/guestfs.rs:921:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  921 |                 st_spare2: (*raw).st_spare2,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1678]
src/guestfs.rs:922:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  922 |                 st_spare3: (*raw).st_spare3,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1679]
src/guestfs.rs:923:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  923 |                 st_spare4: (*raw).st_spare4,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1680]
src/guestfs.rs:924:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  924 |                 st_spare5: (*raw).st_spare5,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1681]
src/guestfs.rs:925:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  925 |                 st_spare6: (*raw).st_spare6,
#      |                              ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1682]
src/guestfs.rs:964:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  964 |                 bsize: (*raw).bsize,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1683]
src/guestfs.rs:965:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  965 |                 frsize: (*raw).frsize,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1684]
src/guestfs.rs:966:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  966 |                 blocks: (*raw).blocks,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1685]
src/guestfs.rs:967:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  967 |                 bfree: (*raw).bfree,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1686]
src/guestfs.rs:968:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  968 |                 bavail: (*raw).bavail,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1687]
src/guestfs.rs:969:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  969 |                 files: (*raw).files,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1688]
src/guestfs.rs:970:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  970 |                 ffree: (*raw).ffree,
#      |                          ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1689]
src/guestfs.rs:971:27: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  971 |                 favail: (*raw).favail,
#      |                           ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1690]
src/guestfs.rs:972:25: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  972 |                 fsid: (*raw).fsid,
#      |                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1691]
src/guestfs.rs:973:25: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  973 |                 flag: (*raw).flag,
#      |                         ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1692]
src/guestfs.rs:974:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#      |
#  974 |                 namemax: (*raw).namemax,
#      |                            ^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1693]
src/guestfs.rs:1023:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1023 |                 tsk_inode: (*raw).tsk_inode,
#       |                              ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1694]
src/guestfs.rs:1024:27: warning: casting to the same type is unnecessary (`i8` -> `i8`)
#       |
#  1024 |                 tsk_type: (*raw).tsk_type as i8,
#       |                           ^^^^^^^^^^^^^^^^^^^^^ help: try: `(*raw).tsk_type`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1695]
src/guestfs.rs:1024:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1024 |                 tsk_type: (*raw).tsk_type as i8,
#       |                             ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1696]
src/guestfs.rs:1025:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1025 |                 tsk_size: (*raw).tsk_size,
#       |                             ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1697]
src/guestfs.rs:1026:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1026 |                 tsk_name: char_ptr_to_string((*raw).tsk_name)?,
#       |                                                ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1698]
src/guestfs.rs:1027:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1027 |                 tsk_flags: (*raw).tsk_flags,
#       |                              ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1699]
src/guestfs.rs:1028:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1028 |                 tsk_atime_sec: (*raw).tsk_atime_sec,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1700]
src/guestfs.rs:1029:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1029 |                 tsk_atime_nsec: (*raw).tsk_atime_nsec,
#       |                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1701]
src/guestfs.rs:1030:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1030 |                 tsk_mtime_sec: (*raw).tsk_mtime_sec,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1702]
src/guestfs.rs:1031:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1031 |                 tsk_mtime_nsec: (*raw).tsk_mtime_nsec,
#       |                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1703]
src/guestfs.rs:1032:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1032 |                 tsk_ctime_sec: (*raw).tsk_ctime_sec,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1704]
src/guestfs.rs:1033:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1033 |                 tsk_ctime_nsec: (*raw).tsk_ctime_nsec,
#       |                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1705]
src/guestfs.rs:1034:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1034 |                 tsk_crtime_sec: (*raw).tsk_crtime_sec,
#       |                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1706]
src/guestfs.rs:1035:36: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1035 |                 tsk_crtime_nsec: (*raw).tsk_crtime_nsec,
#       |                                    ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1707]
src/guestfs.rs:1036:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1036 |                 tsk_nlink: (*raw).tsk_nlink,
#       |                              ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1708]
src/guestfs.rs:1037:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1037 |                 tsk_link: char_ptr_to_string((*raw).tsk_link)?,
#       |                                                ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1709]
src/guestfs.rs:1038:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1038 |                 tsk_spare1: (*raw).tsk_spare1,
#       |                               ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1710]
src/guestfs.rs:1063:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1063 |                 uts_sysname: char_ptr_to_string((*raw).uts_sysname)?,
#       |                                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1711]
src/guestfs.rs:1064:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1064 |                 uts_release: char_ptr_to_string((*raw).uts_release)?,
#       |                                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1712]
src/guestfs.rs:1065:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1065 |                 uts_version: char_ptr_to_string((*raw).uts_version)?,
#       |                                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1713]
src/guestfs.rs:1066:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1066 |                 uts_machine: char_ptr_to_string((*raw).uts_machine)?,
#       |                                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1714]
src/guestfs.rs:1091:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1091 |                 major: (*raw).major,
#       |                          ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1715]
src/guestfs.rs:1092:26: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1092 |                 minor: (*raw).minor,
#       |                          ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1716]
src/guestfs.rs:1093:28: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1093 |                 release: (*raw).release,
#       |                            ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1717]
src/guestfs.rs:1094:45: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1094 |                 extra: char_ptr_to_string((*raw).extra)?,
#       |                                             ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1718]
src/guestfs.rs:1116:48: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1116 |                 attrname: char_ptr_to_string((*raw).attrname)?,
#       |                                                ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1719]
src/guestfs.rs:1117:50: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1117 |                 attrval: slice::from_raw_parts((*raw).attrval as *const u8, (*raw).attrval_len).to_vec(),
#       |                                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1720]
src/guestfs.rs:1117:79: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1117 |                 attrval: slice::from_raw_parts((*raw).attrval as *const u8, (*raw).attrval_len).to_vec(),
#       |                                                                               ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1721]
src/guestfs.rs:1184:52: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1184 |                 xfs_mntpoint: char_ptr_to_string((*raw).xfs_mntpoint)?,
#       |                                                    ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1722]
src/guestfs.rs:1185:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1185 |                 xfs_inodesize: (*raw).xfs_inodesize,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1723]
src/guestfs.rs:1186:32: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1186 |                 xfs_agcount: (*raw).xfs_agcount,
#       |                                ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1724]
src/guestfs.rs:1187:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1187 |                 xfs_agsize: (*raw).xfs_agsize,
#       |                               ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1725]
src/guestfs.rs:1188:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1188 |                 xfs_sectsize: (*raw).xfs_sectsize,
#       |                                 ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1726]
src/guestfs.rs:1189:29: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1189 |                 xfs_attr: (*raw).xfs_attr,
#       |                             ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1727]
src/guestfs.rs:1190:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1190 |                 xfs_blocksize: (*raw).xfs_blocksize,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1728]
src/guestfs.rs:1191:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1191 |                 xfs_datablocks: (*raw).xfs_datablocks,
#       |                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1729]
src/guestfs.rs:1192:32: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1192 |                 xfs_imaxpct: (*raw).xfs_imaxpct,
#       |                                ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1730]
src/guestfs.rs:1193:30: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1193 |                 xfs_sunit: (*raw).xfs_sunit,
#       |                              ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1731]
src/guestfs.rs:1194:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1194 |                 xfs_swidth: (*raw).xfs_swidth,
#       |                               ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1732]
src/guestfs.rs:1195:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1195 |                 xfs_dirversion: (*raw).xfs_dirversion,
#       |                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1733]
src/guestfs.rs:1196:37: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1196 |                 xfs_dirblocksize: (*raw).xfs_dirblocksize,
#       |                                     ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1734]
src/guestfs.rs:1197:31: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1197 |                 xfs_cimode: (*raw).xfs_cimode,
#       |                               ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1735]
src/guestfs.rs:1198:51: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1198 |                 xfs_logname: char_ptr_to_string((*raw).xfs_logname)?,
#       |                                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1736]
src/guestfs.rs:1199:37: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1199 |                 xfs_logblocksize: (*raw).xfs_logblocksize,
#       |                                     ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1737]
src/guestfs.rs:1200:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1200 |                 xfs_logblocks: (*raw).xfs_logblocks,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1738]
src/guestfs.rs:1201:35: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1201 |                 xfs_logversion: (*raw).xfs_logversion,
#       |                                   ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1739]
src/guestfs.rs:1202:36: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1202 |                 xfs_logsectsize: (*raw).xfs_logsectsize,
#       |                                    ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1740]
src/guestfs.rs:1203:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1203 |                 xfs_logsunit: (*raw).xfs_logsunit,
#       |                                 ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1741]
src/guestfs.rs:1204:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1204 |                 xfs_lazycount: (*raw).xfs_lazycount,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1742]
src/guestfs.rs:1205:50: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1205 |                 xfs_rtname: char_ptr_to_string((*raw).xfs_rtname)?,
#       |                                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1743]
src/guestfs.rs:1206:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1206 |                 xfs_rtextsize: (*raw).xfs_rtextsize,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1744]
src/guestfs.rs:1207:33: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1207 |                 xfs_rtblocks: (*raw).xfs_rtblocks,
#       |                                 ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1745]
src/guestfs.rs:1208:34: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1208 |                 xfs_rtextents: (*raw).xfs_rtextents,
#       |                                  ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1746]
src/guestfs.rs:1229:49: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1229 |                 yara_name: char_ptr_to_string((*raw).yara_name)?,
#       |                                                 ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1747]
src/guestfs.rs:1230:49: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  1230 |                 yara_rule: char_ptr_to_string((*raw).yara_rule)?,
#       |                                                 ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1748]
src/guestfs.rs:1373:44: warning: redundant closure
#       |
#  1373 |         libvirturi: optargs.libvirturi.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                            ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
#       = note: `#[warn(clippy::redundant_closure)]` on by default

Error: CLIPPY_WARNING: [#def1749]
src/guestfs.rs:1375:34: warning: redundant closure
#       |
#  1375 |         iface: optargs.iface.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1750]
src/guestfs.rs:1378:48: warning: redundant closure
#       |
#  1378 |         readonlydisk: optargs.readonlydisk.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1751]
src/guestfs.rs:1379:42: warning: redundant closure
#       |
#  1379 |         cachemode: optargs.cachemode.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1752]
src/guestfs.rs:1380:38: warning: redundant closure
#       |
#  1380 |         discard: optargs.discard.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1753]
src/guestfs.rs:1501:36: warning: redundant closure
#       |
#  1501 |         format: optargs.format.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1754]
src/guestfs.rs:1502:34: warning: redundant closure
#       |
#  1502 |         iface: optargs.iface.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1755]
src/guestfs.rs:1503:32: warning: redundant closure
#       |
#  1503 |         name: optargs.name.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1756]
src/guestfs.rs:1504:34: warning: redundant closure
#       |
#  1504 |         label: optargs.label.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1757]
src/guestfs.rs:1505:40: warning: redundant closure
#       |
#  1505 |         protocol: optargs.protocol.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1758]
src/guestfs.rs:1509:43: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  1509 |                          let mut w = (&v).into_iter()
#       |                                           ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
#       = note: `#[warn(clippy::into_iter_on_ref)]` on by default

Error: CLIPPY_WARNING: [#def1759]
src/guestfs.rs:1516:40: warning: redundant closure
#       |
#  1516 |         username: optargs.username.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1760]
src/guestfs.rs:1517:36: warning: redundant closure
#       |
#  1517 |         secret: optargs.secret.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1761]
src/guestfs.rs:1518:42: warning: redundant closure
#       |
#  1518 |         cachemode: optargs.cachemode.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1762]
src/guestfs.rs:1519:38: warning: redundant closure
#       |
#  1519 |         discard: optargs.discard.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1763]
src/guestfs.rs:1648:32: warning: redundant closure
#       |
#  1648 |         name: optargs.name.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1764]
src/guestfs.rs:1649:34: warning: redundant closure
#       |
#  1649 |         label: optargs.label.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1765]
src/guestfs.rs:1716:34: warning: redundant closure
#       |
#  1716 |         iface: optargs.iface.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1766]
src/guestfs.rs:1718:48: warning: redundant closure
#       |
#  1718 |         readonlydisk: optargs.readonlydisk.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1767]
src/guestfs.rs:1719:42: warning: redundant closure
#       |
#  1719 |         cachemode: optargs.cachemode.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1768]
src/guestfs.rs:1720:38: warning: redundant closure
#       |
#  1720 |         discard: optargs.discard.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1769]
src/guestfs.rs:1844:40: warning: redundant closure
#       |
#  1844 |         compress: optargs.compress.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1770]
src/guestfs.rs:2017:40: warning: redundant closure
#       |
#  2017 |         qgroupid: optargs.qgroupid.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1771]
src/guestfs.rs:2059:40: warning: redundant closure
#       |
#  2059 |         qgroupid: optargs.qgroupid.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1772]
src/guestfs.rs:2568:36: warning: redundant closure
#       |
#  2568 |         format: optargs.format.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1773]
src/guestfs.rs:2612:42: warning: redundant closure
#       |
#  2612 |         crypttype: optargs.crypttype.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1774]
src/guestfs.rs:2613:36: warning: redundant closure
#       |
#  2613 |         cipher: optargs.cipher.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1775]
src/guestfs.rs:2674:46: warning: redundant closure
#       |
#  2674 |         backingfile: optargs.backingfile.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                              ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1776]
src/guestfs.rs:2675:50: warning: redundant closure
#       |
#  2675 |         backingformat: optargs.backingformat.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1777]
src/guestfs.rs:2676:50: warning: redundant closure
#       |
#  2676 |         preallocation: optargs.preallocation.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1778]
src/guestfs.rs:2677:36: warning: redundant closure
#       |
#  2677 |         compat: optargs.compat.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1779]
src/guestfs.rs:3129:38: warning: redundant closure
#       |
#  3129 |         ostring: optargs.ostring.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1780]
src/guestfs.rs:3133:43: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  3133 |                          let mut w = (&v).into_iter()
#       |                                           ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1781]
src/guestfs.rs:4150:34: warning: redundant closure
#       |
#  4150 |         level: optargs.level.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1782]
src/guestfs.rs:4305:50: warning: redundant closure
#       |
#  4305 |         journaldevice: optargs.journaldevice.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1783]
src/guestfs.rs:4306:34: warning: redundant closure
#       |
#  4306 |         label: optargs.label.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1784]
src/guestfs.rs:4307:52: warning: redundant closure
#       |
#  4307 |         lastmounteddir: optargs.lastmounteddir.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1785]
src/guestfs.rs:4308:42: warning: redundant closure
#       |
#  4308 |         creatoros: optargs.creatoros.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1786]
src/guestfs.rs:4309:36: warning: redundant closure
#       |
#  4309 |         fstype: optargs.fstype.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1787]
src/guestfs.rs:4310:42: warning: redundant closure
#       |
#  4310 |         usagetype: optargs.usagetype.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1788]
src/guestfs.rs:4311:32: warning: redundant closure
#       |
#  4311 |         uuid: optargs.uuid.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1789]
src/guestfs.rs:4635:40: warning: redundant closure
#       |
#  4635 |         features: optargs.features.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1790]
src/guestfs.rs:4638:34: warning: redundant closure
#       |
#  4638 |         label: optargs.label.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1791]
src/guestfs.rs:4721:40: warning: redundant closure
#       |
#  4721 |         datatype: optargs.datatype.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1792]
src/guestfs.rs:4723:34: warning: redundant closure
#       |
#  4723 |         label: optargs.label.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1793]
src/guestfs.rs:4724:40: warning: redundant closure
#       |
#  4724 |         metadata: optargs.metadata.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1794]
src/guestfs.rs:4816:40: warning: redundant closure
#       |
#  4816 |         compress: optargs.compress.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1795]
src/guestfs.rs:4820:43: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  4820 |                          let mut w = (&v).into_iter()
#       |                                           ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1796]
src/guestfs.rs:4874:34: warning: redundant closure
#       |
#  4874 |         label: optargs.label.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1797]
src/guestfs.rs:4875:32: warning: redundant closure
#       |
#  4875 |         uuid: optargs.uuid.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1798]
src/guestfs.rs:4921:36: warning: redundant closure
#       |
#  4921 |         suffix: optargs.suffix.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1799]
src/guestfs.rs:4960:38: warning: redundant closure
#       |
#  4960 |         options: optargs.options.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1800]
src/guestfs.rs:5006:38: warning: redundant closure
#       |
#  5006 |         options: optargs.options.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1801]
src/guestfs.rs:5499:42: warning: redundant closure
#       |
#  5499 |         directory: optargs.directory.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1802]
src/guestfs.rs:5544:40: warning: redundant closure
#       |
#  5544 |         compress: optargs.compress.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1803]
src/guestfs.rs:5617:40: warning: redundant closure
#       |
#  5617 |         compress: optargs.compress.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1804]
src/guestfs.rs:5622:43: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  5622 |                          let mut w = (&v).into_iter()
#       |                                           ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1805]
src/guestfs.rs:5726:50: warning: redundant closure
#       |
#  5726 |         errorbehavior: optargs.errorbehavior.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1806]
src/guestfs.rs:5730:64: warning: redundant closure
#       |
#  5730 |         lastmounteddirectory: optargs.lastmounteddirectory.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1807]
src/guestfs.rs:5939:34: warning: redundant closure
#       |
#  5939 |         label: optargs.label.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1808]
src/guestfs.rs:5940:32: warning: redundant closure
#       |
#  5940 |         uuid: optargs.uuid.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1809]
src/guestfs.rs:6156:36: warning: redundant closure
#       |
#  6156 |         logdev: optargs.logdev.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1810]
src/guestfs.rs:6157:34: warning: redundant closure
#       |
#  6157 |         rtdev: optargs.rtdev.map(|v| ffi::CString::new(v)).transpose()?,
#       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1811]
src/guestfs.rs:7498:6: warning: the following explicit lifetimes could be elided: 'a
#       |
#  7498 | impl<'a> Handle<'a> {
#       |      ^^         ^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
#  help: elide the lifetimes
#       |
#  7498 - impl<'a> Handle<'a> {
#  7498 + impl Handle<'_> {
#       |

Error: CLIPPY_WARNING: [#def1812]
src/guestfs.rs:7504:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7504 |         let r = unsafe { guestfs_acl_delete_def_file(self.g, (&c_dir).as_ptr()) };
#       |                                                              ^^^^^^^^ help: change this to: `c_dir`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
#       = note: `#[warn(clippy::needless_borrow)]` on by default

Error: CLIPPY_WARNING: [#def1813]
src/guestfs.rs:7518:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7518 |         let r = unsafe { guestfs_acl_get_file(self.g, (&c_path).as_ptr(), (&c_acltype).as_ptr()) };
#       |                                                       ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1814]
src/guestfs.rs:7518:75: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7518 |         let r = unsafe { guestfs_acl_get_file(self.g, (&c_path).as_ptr(), (&c_acltype).as_ptr()) };
#       |                                                                           ^^^^^^^^^^^^ help: change this to: `c_acltype`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1815]
src/guestfs.rs:7537:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7537 |         let r = unsafe { guestfs_acl_set_file(self.g, (&c_path).as_ptr(), (&c_acltype).as_ptr(), (&c_acl).as_ptr()) };
#       |                                                       ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1816]
src/guestfs.rs:7537:75: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7537 |         let r = unsafe { guestfs_acl_set_file(self.g, (&c_path).as_ptr(), (&c_acltype).as_ptr(), (&c_acl).as_ptr()) };
#       |                                                                           ^^^^^^^^^^^^ help: change this to: `c_acltype`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1817]
src/guestfs.rs:7537:98: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7537 |         let r = unsafe { guestfs_acl_set_file(self.g, (&c_path).as_ptr(), (&c_acltype).as_ptr(), (&c_acl).as_ptr()) };
#       |                                                                                                  ^^^^^^^^ help: change this to: `c_acl`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1818]
src/guestfs.rs:7552:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7552 |         let r = unsafe { guestfs_add_cdrom(self.g, (&c_filename).as_ptr()) };
#       |                                                    ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1819]
src/guestfs.rs:7566:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7566 | ...   let r = unsafe { guestfs_add_domain_argv(self.g, (&c_dom).as_ptr(), &(RawAddDomainOptArgs::from(&optargs_cexpr)) as *const RawAddDo...
#       |                                                        ^^^^^^^^ help: change this to: `c_dom`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1820]
src/guestfs.rs:7581:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7581 | ...   let r = unsafe { guestfs_add_drive_opts_argv(self.g, (&c_filename).as_ptr(), &(RawAddDriveOptArgs::from(&optargs_cexpr)) as *const ...
#       |                                                            ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1821]
src/guestfs.rs:7595:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7595 |         let r = unsafe { guestfs_add_drive_ro(self.g, (&c_filename).as_ptr()) };
#       |                                                       ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1822]
src/guestfs.rs:7609:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7609 |         let r = unsafe { guestfs_add_drive_ro_with_if(self.g, (&c_filename).as_ptr(), (&c_iface).as_ptr()) };
#       |                                                               ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1823]
src/guestfs.rs:7609:87: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7609 |         let r = unsafe { guestfs_add_drive_ro_with_if(self.g, (&c_filename).as_ptr(), (&c_iface).as_ptr()) };
#       |                                                                                       ^^^^^^^^^^ help: change this to: `c_iface`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1824]
src/guestfs.rs:7637:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7637 |         let r = unsafe { guestfs_add_drive_with_if(self.g, (&c_filename).as_ptr(), (&c_iface).as_ptr()) };
#       |                                                            ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1825]
src/guestfs.rs:7637:84: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7637 |         let r = unsafe { guestfs_add_drive_with_if(self.g, (&c_filename).as_ptr(), (&c_iface).as_ptr()) };
#       |                                                                                    ^^^^^^^^^^ help: change this to: `c_iface`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1826]
src/guestfs.rs:7651:63: warning: this public function might dereference a raw pointer but is not marked `unsafe`
#       |
#  7651 | ...   let r = unsafe { guestfs_add_libvirt_dom_argv(self.g, dom, &(RawAddLibvirtDomOptArgs::from(&optargs_cexpr)) as *const RawAddLibvirt...
#       |                                                             ^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref

Error: CLIPPY_WARNING: [#def1827]
src/guestfs.rs:7664:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7664 |         let r = unsafe { guestfs_aug_clear(self.g, (&c_augpath).as_ptr()) };
#       |                                                    ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1828]
src/guestfs.rs:7690:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7690 |         let r = unsafe { guestfs_aug_defnode(self.g, (&c_name).as_ptr(), (&c_expr).as_ptr(), (&c_val).as_ptr()) };
#       |                                                      ^^^^^^^^^ help: change this to: `c_name`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1829]
src/guestfs.rs:7690:74: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7690 |         let r = unsafe { guestfs_aug_defnode(self.g, (&c_name).as_ptr(), (&c_expr).as_ptr(), (&c_val).as_ptr()) };
#       |                                                                          ^^^^^^^^^ help: change this to: `c_expr`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1830]
src/guestfs.rs:7690:94: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7690 |         let r = unsafe { guestfs_aug_defnode(self.g, (&c_name).as_ptr(), (&c_expr).as_ptr(), (&c_val).as_ptr()) };
#       |                                                                                              ^^^^^^^^ help: change this to: `c_val`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1831]
src/guestfs.rs:7708:31: warning: redundant closure
#       |
#  7708 |         let c_expr = expr.map(|s| ffi::CString::new(s)).transpose()?;
#       |                               ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1832]
src/guestfs.rs:7710:53: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7710 |         let r = unsafe { guestfs_aug_defvar(self.g, (&c_name).as_ptr(), match &c_expr { Some(ref s) => s.as_ptr(), None => ptr::null() }
#       |                                                     ^^^^^^^^^ help: change this to: `c_name`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1833]
src/guestfs.rs:7725:50: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7725 |         let r = unsafe { guestfs_aug_get(self.g, (&c_augpath).as_ptr()) };
#       |                                                  ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1834]
src/guestfs.rs:7741:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7741 |         let r = unsafe { guestfs_aug_init(self.g, (&c_root).as_ptr(), flags) };
#       |                                                   ^^^^^^^^^ help: change this to: `c_root`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1835]
src/guestfs.rs:7756:53: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7756 |         let r = unsafe { guestfs_aug_insert(self.g, (&c_augpath).as_ptr(), (&c_label).as_ptr(), before) };
#       |                                                     ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1836]
src/guestfs.rs:7756:76: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7756 |         let r = unsafe { guestfs_aug_insert(self.g, (&c_augpath).as_ptr(), (&c_label).as_ptr(), before) };
#       |                                                                            ^^^^^^^^^^ help: change this to: `c_label`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1837]
src/guestfs.rs:7770:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7770 |         let r = unsafe { guestfs_aug_label(self.g, (&c_augpath).as_ptr()) };
#       |                                                    ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1838]
src/guestfs.rs:7797:49: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7797 |         let r = unsafe { guestfs_aug_ls(self.g, (&c_augpath).as_ptr()) };
#       |                                                 ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1839]
src/guestfs.rs:7814:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7814 |         let r = unsafe { guestfs_aug_match(self.g, (&c_augpath).as_ptr()) };
#       |                                                    ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1840]
src/guestfs.rs:7832:49: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7832 |         let r = unsafe { guestfs_aug_mv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                                 ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1841]
src/guestfs.rs:7832:68: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7832 |         let r = unsafe { guestfs_aug_mv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                                                    ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1842]
src/guestfs.rs:7846:49: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7846 |         let r = unsafe { guestfs_aug_rm(self.g, (&c_augpath).as_ptr()) };
#       |                                                 ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1843]
src/guestfs.rs:7871:50: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7871 |         let r = unsafe { guestfs_aug_set(self.g, (&c_augpath).as_ptr(), (&c_val).as_ptr()) };
#       |                                                  ^^^^^^^^^^^^ help: change this to: `c_augpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1844]
src/guestfs.rs:7871:73: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7871 |         let r = unsafe { guestfs_aug_set(self.g, (&c_augpath).as_ptr(), (&c_val).as_ptr()) };
#       |                                                                         ^^^^^^^^ help: change this to: `c_val`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1845]
src/guestfs.rs:7884:29: warning: redundant closure
#       |
#  7884 |         let c_sub = sub.map(|s| ffi::CString::new(s)).transpose()?;
#       |                             ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1846]
src/guestfs.rs:7887:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7887 |         let r = unsafe { guestfs_aug_setm(self.g, (&c_base).as_ptr(), match &c_sub { Some(ref s) => s.as_ptr(), None => ptr::null() }
#       |                                                   ^^^^^^^^^ help: change this to: `c_base`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1847]
src/guestfs.rs:7888:3: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7888 | , (&c_val).as_ptr()) };
#       |   ^^^^^^^^ help: change this to: `c_val`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1848]
src/guestfs.rs:7905:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7905 | ...   let r = unsafe { guestfs_aug_transform_argv(self.g, (&c_lens).as_ptr(), (&c_file).as_ptr(), &(RawAugTransformOptArgs::from(&optargs...
#       |                                                           ^^^^^^^^^ help: change this to: `c_lens`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1849]
src/guestfs.rs:7905:81: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7905 | ...   let r = unsafe { guestfs_aug_transform_argv(self.g, (&c_lens).as_ptr(), (&c_file).as_ptr(), &(RawAugTransformOptArgs::from(&optargs...
#       |                                                                               ^^^^^^^^^ help: change this to: `c_file`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1850]
src/guestfs.rs:7911:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  7911 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprAugTransformOptArgs`
#      --> src/guestfs.rs:7911:14
#       |
#  7911 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop
#       = note: `#[warn(clippy::drop_non_drop)]` on by default

Error: CLIPPY_WARNING: [#def1851]
src/guestfs.rs:7919:42: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  7919 |         let mut c_groups = (&c_groups_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                          ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1852]
src/guestfs.rs:7922:52: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  7922 |         let r = unsafe { guestfs_available(self.g, (&c_groups).as_ptr() as *const *const c_char) };
#       |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_groups).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1853]
src/guestfs.rs:7922:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7922 |         let r = unsafe { guestfs_available(self.g, (&c_groups).as_ptr() as *const *const c_char) };
#       |                                                    ^^^^^^^^^^^ help: change this to: `c_groups`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1854]
src/guestfs.rs:7952:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7952 |         let r = unsafe { guestfs_base64_in(self.g, (&c_base64file).as_ptr(), (&c_filename).as_ptr()) };
#       |                                                    ^^^^^^^^^^^^^^^ help: change this to: `c_base64file`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1855]
src/guestfs.rs:7952:78: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7952 |         let r = unsafe { guestfs_base64_in(self.g, (&c_base64file).as_ptr(), (&c_filename).as_ptr()) };
#       |                                                                              ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1856]
src/guestfs.rs:7967:53: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7967 |         let r = unsafe { guestfs_base64_out(self.g, (&c_filename).as_ptr(), (&c_base64file).as_ptr()) };
#       |                                                     ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1857]
src/guestfs.rs:7967:77: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7967 |         let r = unsafe { guestfs_base64_out(self.g, (&c_filename).as_ptr(), (&c_base64file).as_ptr()) };
#       |                                                                             ^^^^^^^^^^^^^^^ help: change this to: `c_base64file`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1858]
src/guestfs.rs:7981:53: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7981 |         let r = unsafe { guestfs_blkdiscard(self.g, (&c_device).as_ptr()) };
#       |                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1859]
src/guestfs.rs:7994:59: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  7994 |         let r = unsafe { guestfs_blkdiscardzeroes(self.g, (&c_device).as_ptr()) };
#       |                                                           ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1860]
src/guestfs.rs:8007:48: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8007 |         let r = unsafe { guestfs_blkid(self.g, (&c_device).as_ptr()) };
#       |                                                ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1861]
src/guestfs.rs:8024:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8024 |         let r = unsafe { guestfs_blockdev_flushbufs(self.g, (&c_device).as_ptr()) };
#       |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1862]
src/guestfs.rs:8037:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8037 |         let r = unsafe { guestfs_blockdev_getbsz(self.g, (&c_device).as_ptr()) };
#       |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1863]
src/guestfs.rs:8050:57: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8050 |         let r = unsafe { guestfs_blockdev_getro(self.g, (&c_device).as_ptr()) };
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1864]
src/guestfs.rs:8063:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8063 |         let r = unsafe { guestfs_blockdev_getsize64(self.g, (&c_device).as_ptr()) };
#       |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1865]
src/guestfs.rs:8076:57: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8076 |         let r = unsafe { guestfs_blockdev_getss(self.g, (&c_device).as_ptr()) };
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1866]
src/guestfs.rs:8089:57: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8089 |         let r = unsafe { guestfs_blockdev_getsz(self.g, (&c_device).as_ptr()) };
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1867]
src/guestfs.rs:8102:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8102 |         let r = unsafe { guestfs_blockdev_rereadpt(self.g, (&c_device).as_ptr()) };
#       |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1868]
src/guestfs.rs:8115:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8115 |         let r = unsafe { guestfs_blockdev_setbsz(self.g, (&c_device).as_ptr(), blocksize) };
#       |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1869]
src/guestfs.rs:8128:57: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8128 |         let r = unsafe { guestfs_blockdev_setra(self.g, (&c_device).as_ptr(), sectors) };
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1870]
src/guestfs.rs:8141:57: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8141 |         let r = unsafe { guestfs_blockdev_setro(self.g, (&c_device).as_ptr()) };
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1871]
src/guestfs.rs:8154:57: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8154 |         let r = unsafe { guestfs_blockdev_setrw(self.g, (&c_device).as_ptr()) };
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1872]
src/guestfs.rs:8167:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8167 |         let r = unsafe { guestfs_btrfs_balance_cancel(self.g, (&c_path).as_ptr()) };
#       |                                                               ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1873]
src/guestfs.rs:8180:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8180 |         let r = unsafe { guestfs_btrfs_balance_pause(self.g, (&c_path).as_ptr()) };
#       |                                                              ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1874]
src/guestfs.rs:8193:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8193 |         let r = unsafe { guestfs_btrfs_balance_resume(self.g, (&c_path).as_ptr()) };
#       |                                                               ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1875]
src/guestfs.rs:8206:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8206 |         let r = unsafe { guestfs_btrfs_balance_status(self.g, (&c_path).as_ptr()) };
#       |                                                               ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1876]
src/guestfs.rs:8222:44: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  8222 |         let mut c_devices = (&c_devices_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                            ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1877]
src/guestfs.rs:8226:59: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  8226 |         let r = unsafe { guestfs_btrfs_device_add(self.g, (&c_devices).as_ptr() as *const *const c_char, (&c_fs).as_ptr()) };
#       |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_devices).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1878]
src/guestfs.rs:8226:59: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8226 |         let r = unsafe { guestfs_btrfs_device_add(self.g, (&c_devices).as_ptr() as *const *const c_char, (&c_fs).as_ptr()) };
#       |                                                           ^^^^^^^^^^^^ help: change this to: `c_devices`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1879]
src/guestfs.rs:8226:106: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8226 |         let r = unsafe { guestfs_btrfs_device_add(self.g, (&c_devices).as_ptr() as *const *const c_char, (&c_fs).as_ptr()) };
#       |                                                                                                          ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1880]
src/guestfs.rs:8240:44: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  8240 |         let mut c_devices = (&c_devices_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                            ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1881]
src/guestfs.rs:8244:62: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  8244 |         let r = unsafe { guestfs_btrfs_device_delete(self.g, (&c_devices).as_ptr() as *const *const c_char, (&c_fs).as_ptr()) };
#       |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_devices).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1882]
src/guestfs.rs:8244:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8244 |         let r = unsafe { guestfs_btrfs_device_delete(self.g, (&c_devices).as_ptr() as *const *const c_char, (&c_fs).as_ptr()) };
#       |                                                              ^^^^^^^^^^^^ help: change this to: `c_devices`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1883]
src/guestfs.rs:8244:109: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8244 |         let r = unsafe { guestfs_btrfs_device_delete(self.g, (&c_devices).as_ptr() as *const *const c_char, (&c_fs).as_ptr()) };
#       |                                                                                                             ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1884]
src/guestfs.rs:8259:67: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8259 |         let r = unsafe { guestfs_btrfs_filesystem_balance(self.g, (&c_fs).as_ptr()) };
#       |                                                                   ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1885]
src/guestfs.rs:8273:75: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8273 | ...   let r = unsafe { guestfs_btrfs_filesystem_defragment_argv(self.g, (&c_path).as_ptr(), &(RawBtrfsFilesystemDefragmentOptArgs::from(&...
#       |                                                                         ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1886]
src/guestfs.rs:8288:71: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8288 | ...   let r = unsafe { guestfs_btrfs_filesystem_resize_argv(self.g, (&c_mountpoint).as_ptr(), &(RawBtrfsFilesystemResizeOptArgs::from(&op...
#       |                                                                     ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1887]
src/guestfs.rs:8293:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  8293 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprBtrfsFilesystemResizeOptArgs`
#      --> src/guestfs.rs:8293:14
#       |
#  8293 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1888]
src/guestfs.rs:8302:64: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8302 |         let r = unsafe { guestfs_btrfs_filesystem_show(self.g, (&c_device).as_ptr()) };
#       |                                                                ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1889]
src/guestfs.rs:8319:64: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8319 |         let r = unsafe { guestfs_btrfs_filesystem_sync(self.g, (&c_fs).as_ptr()) };
#       |                                                                ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1890]
src/guestfs.rs:8333:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8333 | ...   let r = unsafe { guestfs_btrfs_fsck_argv(self.g, (&c_device).as_ptr(), &(RawBtrfsFsckOptArgs::from(&optargs_cexpr)) as *const RawBt...
#       |                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1891]
src/guestfs.rs:8338:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  8338 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprBtrfsFsckOptArgs`
#      --> src/guestfs.rs:8338:14
#       |
#  8338 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1892]
src/guestfs.rs:8346:42: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  8346 |         let mut c_source = (&c_source_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                          ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1893]
src/guestfs.rs:8351:59: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  8351 | ...   let r = unsafe { guestfs_btrfs_image_argv(self.g, (&c_source).as_ptr() as *const *const c_char, (&c_image).as_ptr(), &(RawBtrfsImag...
#       |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_source).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1894]
src/guestfs.rs:8351:59: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8351 | ...   let r = unsafe { guestfs_btrfs_image_argv(self.g, (&c_source).as_ptr() as *const *const c_char, (&c_image).as_ptr(), &(RawBtrfsImag...
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_source`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1895]
src/guestfs.rs:8351:105: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8351 | ...(&c_source).as_ptr() as *const *const c_char, (&c_image).as_ptr(), &(RawBtrfsImageOptArgs::from(&optargs_cexpr)) as *const RawBtrfsIma...
#       |                                                  ^^^^^^^^^^ help: change this to: `c_image`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1896]
src/guestfs.rs:8358:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  8358 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprBtrfsImageOptArgs`
#      --> src/guestfs.rs:8358:14
#       |
#  8358 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1897]
src/guestfs.rs:8369:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8369 |         let r = unsafe { guestfs_btrfs_qgroup_assign(self.g, (&c_src).as_ptr(), (&c_dst).as_ptr(), (&c_path).as_ptr()) };
#       |                                                              ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1898]
src/guestfs.rs:8369:81: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8369 |         let r = unsafe { guestfs_btrfs_qgroup_assign(self.g, (&c_src).as_ptr(), (&c_dst).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                                 ^^^^^^^^ help: change this to: `c_dst`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1899]
src/guestfs.rs:8369:100: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8369 |         let r = unsafe { guestfs_btrfs_qgroup_assign(self.g, (&c_src).as_ptr(), (&c_dst).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                                                    ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1900]
src/guestfs.rs:8385:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8385 |         let r = unsafe { guestfs_btrfs_qgroup_create(self.g, (&c_qgroupid).as_ptr(), (&c_subvolume).as_ptr()) };
#       |                                                              ^^^^^^^^^^^^^ help: change this to: `c_qgroupid`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1901]
src/guestfs.rs:8385:86: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8385 |         let r = unsafe { guestfs_btrfs_qgroup_create(self.g, (&c_qgroupid).as_ptr(), (&c_subvolume).as_ptr()) };
#       |                                                                                      ^^^^^^^^^^^^^^ help: change this to: `c_subvolume`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1902]
src/guestfs.rs:8400:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8400 |         let r = unsafe { guestfs_btrfs_qgroup_destroy(self.g, (&c_qgroupid).as_ptr(), (&c_subvolume).as_ptr()) };
#       |                                                               ^^^^^^^^^^^^^ help: change this to: `c_qgroupid`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1903]
src/guestfs.rs:8400:87: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8400 |         let r = unsafe { guestfs_btrfs_qgroup_destroy(self.g, (&c_qgroupid).as_ptr(), (&c_subvolume).as_ptr()) };
#       |                                                                                       ^^^^^^^^^^^^^^ help: change this to: `c_subvolume`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1904]
src/guestfs.rs:8414:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8414 |         let r = unsafe { guestfs_btrfs_qgroup_limit(self.g, (&c_subvolume).as_ptr(), size) };
#       |                                                             ^^^^^^^^^^^^^^ help: change this to: `c_subvolume`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1905]
src/guestfs.rs:8429:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8429 |         let r = unsafe { guestfs_btrfs_qgroup_remove(self.g, (&c_src).as_ptr(), (&c_dst).as_ptr(), (&c_path).as_ptr()) };
#       |                                                              ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1906]
src/guestfs.rs:8429:81: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8429 |         let r = unsafe { guestfs_btrfs_qgroup_remove(self.g, (&c_src).as_ptr(), (&c_dst).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                                 ^^^^^^^^ help: change this to: `c_dst`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1907]
src/guestfs.rs:8429:100: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8429 |         let r = unsafe { guestfs_btrfs_qgroup_remove(self.g, (&c_src).as_ptr(), (&c_dst).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                                                    ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1908]
src/guestfs.rs:8444:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8444 |         let r = unsafe { guestfs_btrfs_qgroup_show(self.g, (&c_path).as_ptr()) };
#       |                                                            ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1909]
src/guestfs.rs:8462:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8462 |         let r = unsafe { guestfs_btrfs_quota_enable(self.g, (&c_fs).as_ptr(), enable) };
#       |                                                             ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1910]
src/guestfs.rs:8475:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8475 |         let r = unsafe { guestfs_btrfs_quota_rescan(self.g, (&c_fs).as_ptr()) };
#       |                                                             ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1911]
src/guestfs.rs:8490:56: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8490 |         let r = unsafe { guestfs_btrfs_replace(self.g, (&c_srcdev).as_ptr(), (&c_targetdev).as_ptr(), (&c_mntpoint).as_ptr()) };
#       |                                                        ^^^^^^^^^^^ help: change this to: `c_srcdev`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1912]
src/guestfs.rs:8490:78: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8490 |         let r = unsafe { guestfs_btrfs_replace(self.g, (&c_srcdev).as_ptr(), (&c_targetdev).as_ptr(), (&c_mntpoint).as_ptr()) };
#       |                                                                              ^^^^^^^^^^^^^^ help: change this to: `c_targetdev`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1913]
src/guestfs.rs:8490:103: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8490 |         let r = unsafe { guestfs_btrfs_replace(self.g, (&c_srcdev).as_ptr(), (&c_targetdev).as_ptr(), (&c_mntpoint).as_ptr()) };
#       |                                                                                                       ^^^^^^^^^^^^^ help: change this to: `c_mntpoint`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1914]
src/guestfs.rs:8505:69: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8505 |         let r = unsafe { guestfs_btrfs_rescue_chunk_recover(self.g, (&c_device).as_ptr()) };
#       |                                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1915]
src/guestfs.rs:8518:69: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8518 |         let r = unsafe { guestfs_btrfs_rescue_super_recover(self.g, (&c_device).as_ptr()) };
#       |                                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1916]
src/guestfs.rs:8531:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8531 |         let r = unsafe { guestfs_btrfs_scrub_cancel(self.g, (&c_path).as_ptr()) };
#       |                                                             ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1917]
src/guestfs.rs:8544:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8544 |         let r = unsafe { guestfs_btrfs_scrub_resume(self.g, (&c_path).as_ptr()) };
#       |                                                             ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1918]
src/guestfs.rs:8557:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8557 |         let r = unsafe { guestfs_btrfs_scrub_start(self.g, (&c_path).as_ptr()) };
#       |                                                            ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1919]
src/guestfs.rs:8570:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8570 |         let r = unsafe { guestfs_btrfs_scrub_status(self.g, (&c_path).as_ptr()) };
#       |                                                             ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1920]
src/guestfs.rs:8588:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8588 |         let r = unsafe { guestfs_btrfs_set_seeding(self.g, (&c_device).as_ptr(), seeding) };
#       |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1921]
src/guestfs.rs:8602:75: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8602 | ...   let r = unsafe { guestfs_btrfs_subvolume_create_opts_argv(self.g, (&c_dest).as_ptr(), &(RawBtrfsSubvolumeCreateOptArgs::from(&optar...
#       |                                                                         ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1922]
src/guestfs.rs:8616:65: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8616 |         let r = unsafe { guestfs_btrfs_subvolume_delete(self.g, (&c_subvolume).as_ptr()) };
#       |                                                                 ^^^^^^^^^^^^^^ help: change this to: `c_subvolume`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1923]
src/guestfs.rs:8629:70: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8629 |         let r = unsafe { guestfs_btrfs_subvolume_get_default(self.g, (&c_fs).as_ptr()) };
#       |                                                                      ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1924]
src/guestfs.rs:8642:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8642 |         let r = unsafe { guestfs_btrfs_subvolume_list(self.g, (&c_fs).as_ptr()) };
#       |                                                               ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1925]
src/guestfs.rs:8659:74: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8659 |         let r = unsafe { guestfs_btrfs_subvolume_set_default(self.g, id, (&c_fs).as_ptr()) };
#       |                                                                          ^^^^^^^ help: change this to: `c_fs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1926]
src/guestfs.rs:8672:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8672 |         let r = unsafe { guestfs_btrfs_subvolume_show(self.g, (&c_subvolume).as_ptr()) };
#       |                                                               ^^^^^^^^^^^^^^ help: change this to: `c_subvolume`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1927]
src/guestfs.rs:8691:77: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8691 | ...   let r = unsafe { guestfs_btrfs_subvolume_snapshot_opts_argv(self.g, (&c_source).as_ptr(), (&c_dest).as_ptr(), &(RawBtrfsSubvolumeSn...
#       |                                                                           ^^^^^^^^^^^ help: change this to: `c_source`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1928]
src/guestfs.rs:8691:99: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8691 | ...apshot_opts_argv(self.g, (&c_source).as_ptr(), (&c_dest).as_ptr(), &(RawBtrfsSubvolumeSnapshotOptArgs::from(&optargs_cexpr)) as *const...
#       |                                                   ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1929]
src/guestfs.rs:8706:79: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8706 |         let r = unsafe { guestfs_btrfstune_enable_extended_inode_refs(self.g, (&c_device).as_ptr()) };
#       |                                                                               ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1930]
src/guestfs.rs:8719:87: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8719 |         let r = unsafe { guestfs_btrfstune_enable_skinny_metadata_extent_refs(self.g, (&c_device).as_ptr()) };
#       |                                                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1931]
src/guestfs.rs:8733:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8733 |         let r = unsafe { guestfs_btrfstune_seeding(self.g, (&c_device).as_ptr(), seeding) };
#       |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1932]
src/guestfs.rs:8757:64: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8757 |         let r = unsafe { guestfs_canonical_device_name(self.g, (&c_device).as_ptr()) };
#       |                                                                ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1933]
src/guestfs.rs:8773:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8773 |         let r = unsafe { guestfs_cap_get_file(self.g, (&c_path).as_ptr()) };
#       |                                                       ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1934]
src/guestfs.rs:8790:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8790 |         let r = unsafe { guestfs_cap_set_file(self.g, (&c_path).as_ptr(), (&c_cap).as_ptr()) };
#       |                                                       ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1935]
src/guestfs.rs:8790:75: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8790 |         let r = unsafe { guestfs_cap_set_file(self.g, (&c_path).as_ptr(), (&c_cap).as_ptr()) };
#       |                                                                           ^^^^^^^^ help: change this to: `c_cap`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1936]
src/guestfs.rs:8804:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8804 |         let r = unsafe { guestfs_case_sensitive_path(self.g, (&c_path).as_ptr()) };
#       |                                                              ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1937]
src/guestfs.rs:8820:46: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8820 |         let r = unsafe { guestfs_cat(self.g, (&c_path).as_ptr()) };
#       |                                              ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1938]
src/guestfs.rs:8837:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8837 |         let r = unsafe { guestfs_checksum(self.g, (&c_csumtype).as_ptr(), (&c_path).as_ptr()) };
#       |                                                   ^^^^^^^^^^^^^ help: change this to: `c_csumtype`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1939]
src/guestfs.rs:8837:75: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8837 |         let r = unsafe { guestfs_checksum(self.g, (&c_csumtype).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                           ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1940]
src/guestfs.rs:8855:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8855 |         let r = unsafe { guestfs_checksum_device(self.g, (&c_csumtype).as_ptr(), (&c_device).as_ptr()) };
#       |                                                          ^^^^^^^^^^^^^ help: change this to: `c_csumtype`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1941]
src/guestfs.rs:8855:82: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8855 |         let r = unsafe { guestfs_checksum_device(self.g, (&c_csumtype).as_ptr(), (&c_device).as_ptr()) };
#       |                                                                                  ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1942]
src/guestfs.rs:8874:56: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8874 |         let r = unsafe { guestfs_checksums_out(self.g, (&c_csumtype).as_ptr(), (&c_directory).as_ptr(), (&c_sumsfile).as_ptr()) };
#       |                                                        ^^^^^^^^^^^^^ help: change this to: `c_csumtype`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1943]
src/guestfs.rs:8874:80: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8874 |         let r = unsafe { guestfs_checksums_out(self.g, (&c_csumtype).as_ptr(), (&c_directory).as_ptr(), (&c_sumsfile).as_ptr()) };
#       |                                                                                ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1944]
src/guestfs.rs:8874:105: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8874 |         let r = unsafe { guestfs_checksums_out(self.g, (&c_csumtype).as_ptr(), (&c_directory).as_ptr(), (&c_sumsfile).as_ptr()) };
#       |                                                                                                         ^^^^^^^^^^^^^ help: change this to: `c_sumsfile`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1945]
src/guestfs.rs:8889:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8889 |         let r = unsafe { guestfs_chmod(self.g, mode, (&c_path).as_ptr()) };
#       |                                                      ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1946]
src/guestfs.rs:8902:62: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8902 |         let r = unsafe { guestfs_chown(self.g, owner, group, (&c_path).as_ptr()) };
#       |                                                              ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1947]
src/guestfs.rs:8915:64: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8915 |         let r = unsafe { guestfs_clear_backend_setting(self.g, (&c_name).as_ptr()) };
#       |                                                                ^^^^^^^^^ help: change this to: `c_name`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1948]
src/guestfs.rs:8929:61: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8929 |         let r = unsafe { guestfs_clevis_luks_unlock(self.g, (&c_device).as_ptr(), (&c_mapname).as_ptr()) };
#       |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1949]
src/guestfs.rs:8929:83: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8929 |         let r = unsafe { guestfs_clevis_luks_unlock(self.g, (&c_device).as_ptr(), (&c_mapname).as_ptr()) };
#       |                                                                                   ^^^^^^^^^^^^ help: change this to: `c_mapname`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1950]
src/guestfs.rs:8942:48: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  8942 |         let mut c_arguments = (&c_arguments_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                                ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1951]
src/guestfs.rs:8945:50: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  8945 |         let r = unsafe { guestfs_command(self.g, (&c_arguments).as_ptr() as *const *const c_char) };
#       |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_arguments).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1952]
src/guestfs.rs:8945:50: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8945 |         let r = unsafe { guestfs_command(self.g, (&c_arguments).as_ptr() as *const *const c_char) };
#       |                                                  ^^^^^^^^^^^^^^ help: change this to: `c_arguments`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1953]
src/guestfs.rs:8961:48: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  8961 |         let mut c_arguments = (&c_arguments_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                                ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1954]
src/guestfs.rs:8964:56: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  8964 |         let r = unsafe { guestfs_command_lines(self.g, (&c_arguments).as_ptr() as *const *const c_char) };
#       |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_arguments).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1955]
src/guestfs.rs:8964:56: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8964 |         let r = unsafe { guestfs_command_lines(self.g, (&c_arguments).as_ptr() as *const *const c_char) };
#       |                                                        ^^^^^^^^^^^^^^ help: change this to: `c_arguments`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1956]
src/guestfs.rs:8981:48: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  8981 |         let mut c_arguments = (&c_arguments_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                                ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def1957]
src/guestfs.rs:8985:54: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  8985 |         let r = unsafe { guestfs_command_out(self.g, (&c_arguments).as_ptr() as *const *const c_char, (&c_output).as_ptr()) };
#       |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_arguments).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def1958]
src/guestfs.rs:8985:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8985 |         let r = unsafe { guestfs_command_out(self.g, (&c_arguments).as_ptr() as *const *const c_char, (&c_output).as_ptr()) };
#       |                                                      ^^^^^^^^^^^^^^ help: change this to: `c_arguments`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1959]
src/guestfs.rs:8985:103: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  8985 |         let r = unsafe { guestfs_command_out(self.g, (&c_arguments).as_ptr() as *const *const c_char, (&c_output).as_ptr()) };
#       |                                                                                                       ^^^^^^^^^^^ help: change this to: `c_output`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1960]
src/guestfs.rs:9003:67: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9003 | ...   let r = unsafe { guestfs_compress_device_out_argv(self.g, (&c_ctype).as_ptr(), (&c_device).as_ptr(), (&c_zdevice).as_ptr(), &(RawCo...
#       |                                                                 ^^^^^^^^^^ help: change this to: `c_ctype`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1961]
src/guestfs.rs:9003:88: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9003 | ...   let r = unsafe { guestfs_compress_device_out_argv(self.g, (&c_ctype).as_ptr(), (&c_device).as_ptr(), (&c_zdevice).as_ptr(), &(RawCo...
#       |                                                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1962]
src/guestfs.rs:9003:110: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9003 | ... (&c_ctype).as_ptr(), (&c_device).as_ptr(), (&c_zdevice).as_ptr(), &(RawCompressDeviceOutOptArgs::from(&optargs_cexpr)) as *const RawC...
#       |                                                ^^^^^^^^^^^^ help: change this to: `c_zdevice`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1963]
src/guestfs.rs:9010:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9010 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprCompressDeviceOutOptArgs`
#      --> src/guestfs.rs:9010:14
#       |
#  9010 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1964]
src/guestfs.rs:9022:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9022 | ...   let r = unsafe { guestfs_compress_out_argv(self.g, (&c_ctype).as_ptr(), (&c_file).as_ptr(), (&c_zfile).as_ptr(), &(RawCompressOutOp...
#       |                                                          ^^^^^^^^^^ help: change this to: `c_ctype`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1965]
src/guestfs.rs:9022:81: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9022 | ...   let r = unsafe { guestfs_compress_out_argv(self.g, (&c_ctype).as_ptr(), (&c_file).as_ptr(), (&c_zfile).as_ptr(), &(RawCompressOutOp...
#       |                                                                               ^^^^^^^^^ help: change this to: `c_file`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1966]
src/guestfs.rs:9022:101: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9022 | ...f.g, (&c_ctype).as_ptr(), (&c_file).as_ptr(), (&c_zfile).as_ptr(), &(RawCompressOutOptArgs::from(&optargs_cexpr)) as *const RawCompres...
#       |                                                  ^^^^^^^^^^ help: change this to: `c_zfile`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1967]
src/guestfs.rs:9029:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9029 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprCompressOutOptArgs`
#      --> src/guestfs.rs:9029:14
#       |
#  9029 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1968]
src/guestfs.rs:9037:37: warning: redundant closure
#       |
#  9037 |         let c_hvvalue = hvvalue.map(|s| ffi::CString::new(s)).transpose()?;
#       |                                     ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def1969]
src/guestfs.rs:9039:49: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9039 |         let r = unsafe { guestfs_config(self.g, (&c_hvparam).as_ptr(), match &c_hvvalue { Some(ref s) => s.as_ptr(), None => ptr::null() }
#       |                                                 ^^^^^^^^^^^^ help: change this to: `c_hvparam`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1970]
src/guestfs.rs:9056:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9056 | ...   let r = unsafe { guestfs_copy_attributes_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyAttributesOptArgs::from(&opta...
#       |                                                             ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1971]
src/guestfs.rs:9056:82: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9056 | ...   let r = unsafe { guestfs_copy_attributes_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyAttributesOptArgs::from(&opta...
#       |                                                                                ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1972]
src/guestfs.rs:9062:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9062 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprCopyAttributesOptArgs`
#      --> src/guestfs.rs:9062:14
#       |
#  9062 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1973]
src/guestfs.rs:9073:69: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9073 | ...   let r = unsafe { guestfs_copy_device_to_device_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyDeviceToDeviceOptArgs::...
#       |                                                                   ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1974]
src/guestfs.rs:9073:88: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9073 | ...   let r = unsafe { guestfs_copy_device_to_device_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyDeviceToDeviceOptArgs::...
#       |                                                                                      ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1975]
src/guestfs.rs:9079:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9079 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprCopyDeviceToDeviceOptArgs`
#      --> src/guestfs.rs:9079:14
#       |
#  9079 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1976]
src/guestfs.rs:9090:67: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9090 | ...   let r = unsafe { guestfs_copy_device_to_file_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyDeviceToFileOptArgs::from...
#       |                                                                 ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1977]
src/guestfs.rs:9090:86: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9090 | ...   let r = unsafe { guestfs_copy_device_to_file_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyDeviceToFileOptArgs::from...
#       |                                                                                    ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1978]
src/guestfs.rs:9096:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9096 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprCopyDeviceToFileOptArgs`
#      --> src/guestfs.rs:9096:14
#       |
#  9096 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1979]
src/guestfs.rs:9107:67: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9107 | ...   let r = unsafe { guestfs_copy_file_to_device_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyFileToDeviceOptArgs::from...
#       |                                                                 ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1980]
src/guestfs.rs:9107:86: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9107 | ...   let r = unsafe { guestfs_copy_file_to_device_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyFileToDeviceOptArgs::from...
#       |                                                                                    ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1981]
src/guestfs.rs:9113:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9113 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprCopyFileToDeviceOptArgs`
#      --> src/guestfs.rs:9113:14
#       |
#  9113 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1982]
src/guestfs.rs:9124:65: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9124 | ...   let r = unsafe { guestfs_copy_file_to_file_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyFileToFileOptArgs::from(&op...
#       |                                                               ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1983]
src/guestfs.rs:9124:84: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9124 | ...   let r = unsafe { guestfs_copy_file_to_file_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawCopyFileToFileOptArgs::from(&op...
#       |                                                                                  ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1984]
src/guestfs.rs:9130:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9130 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprCopyFileToFileOptArgs`
#      --> src/guestfs.rs:9130:14
#       |
#  9130 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def1985]
src/guestfs.rs:9140:50: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9140 |         let r = unsafe { guestfs_copy_in(self.g, (&c_localpath).as_ptr(), (&c_remotedir).as_ptr()) };
#       |                                                  ^^^^^^^^^^^^^^ help: change this to: `c_localpath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1986]
src/guestfs.rs:9140:75: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9140 |         let r = unsafe { guestfs_copy_in(self.g, (&c_localpath).as_ptr(), (&c_remotedir).as_ptr()) };
#       |                                                                           ^^^^^^^^^^^^^^ help: change this to: `c_remotedir`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1987]
src/guestfs.rs:9155:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9155 |         let r = unsafe { guestfs_copy_out(self.g, (&c_remotepath).as_ptr(), (&c_localdir).as_ptr()) };
#       |                                                   ^^^^^^^^^^^^^^^ help: change this to: `c_remotepath`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1988]
src/guestfs.rs:9155:77: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9155 |         let r = unsafe { guestfs_copy_out(self.g, (&c_remotepath).as_ptr(), (&c_localdir).as_ptr()) };
#       |                                                                             ^^^^^^^^^^^^^ help: change this to: `c_localdir`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1989]
src/guestfs.rs:9170:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9170 |         let r = unsafe { guestfs_copy_size(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), size) };
#       |                                                    ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1990]
src/guestfs.rs:9170:71: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9170 |         let r = unsafe { guestfs_copy_size(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), size) };
#       |                                                                       ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1991]
src/guestfs.rs:9185:45: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9185 |         let r = unsafe { guestfs_cp(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                             ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1992]
src/guestfs.rs:9185:64: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9185 |         let r = unsafe { guestfs_cp(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                                                ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1993]
src/guestfs.rs:9200:47: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9200 |         let r = unsafe { guestfs_cp_a(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                               ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1994]
src/guestfs.rs:9200:66: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9200 |         let r = unsafe { guestfs_cp_a(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                                                  ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1995]
src/guestfs.rs:9215:47: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9215 |         let r = unsafe { guestfs_cp_r(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                               ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1996]
src/guestfs.rs:9215:66: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9215 |         let r = unsafe { guestfs_cp_r(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                                                  ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1997]
src/guestfs.rs:9231:56: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9231 | ...   let r = unsafe { guestfs_cpio_out_argv(self.g, (&c_directory).as_ptr(), (&c_cpiofile).as_ptr(), &(RawCpioOutOptArgs::from(&optargs_...
#       |                                                      ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1998]
src/guestfs.rs:9231:81: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9231 | ...   let r = unsafe { guestfs_cpio_out_argv(self.g, (&c_directory).as_ptr(), (&c_cpiofile).as_ptr(), &(RawCpioOutOptArgs::from(&optargs_...
#       |                                                                               ^^^^^^^^^^^^^ help: change this to: `c_cpiofile`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def1999]
src/guestfs.rs:9246:59: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9246 |         let r = unsafe { guestfs_cryptsetup_close(self.g, (&c_device).as_ptr()) };
#       |                                                           ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2000]
src/guestfs.rs:9262:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9262 | ...   let r = unsafe { guestfs_cryptsetup_open_argv(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr(), &(RawCryptset...
#       |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2001]
src/guestfs.rs:9262:85: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9262 | ...   let r = unsafe { guestfs_cryptsetup_open_argv(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr(), &(RawCryptset...
#       |                                                                                   ^^^^^^^^ help: change this to: `c_key`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2002]
src/guestfs.rs:9262:104: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9262 | ...g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr(), &(RawCryptsetupOpenOptArgs::from(&optargs_cexpr)) as *const RawCryp...
#       |                                                ^^^^^^^^^^^^ help: change this to: `c_mapname`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2003]
src/guestfs.rs:9279:45: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9279 |         let r = unsafe { guestfs_dd(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                             ^^^^^^^^ help: change this to: `c_src`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2004]
src/guestfs.rs:9279:64: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9279 |         let r = unsafe { guestfs_dd(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#       |                                                                ^^^^^^^^^ help: change this to: `c_dest`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2005]
src/guestfs.rs:9293:48: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  9293 |         let mut c_extraargs = (&c_extraargs_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                                ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2006]
src/guestfs.rs:9296:48: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9296 |         let r = unsafe { guestfs_debug(self.g, (&c_subcmd).as_ptr(), (&c_extraargs).as_ptr() as *const *const c_char) };
#       |                                                ^^^^^^^^^^^ help: change this to: `c_subcmd`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2007]
src/guestfs.rs:9296:70: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  9296 |         let r = unsafe { guestfs_debug(self.g, (&c_subcmd).as_ptr(), (&c_extraargs).as_ptr() as *const *const c_char) };
#       |                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_extraargs).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2008]
src/guestfs.rs:9296:70: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9296 |         let r = unsafe { guestfs_debug(self.g, (&c_subcmd).as_ptr(), (&c_extraargs).as_ptr() as *const *const c_char) };
#       |                                                                      ^^^^^^^^^^^^^^ help: change this to: `c_extraargs`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2009]
src/guestfs.rs:9330:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9330 |         let r = unsafe { guestfs_debug_upload(self.g, (&c_filename).as_ptr(), (&c_tmpname).as_ptr(), mode) };
#       |                                                       ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2010]
src/guestfs.rs:9330:79: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9330 |         let r = unsafe { guestfs_debug_upload(self.g, (&c_filename).as_ptr(), (&c_tmpname).as_ptr(), mode) };
#       |                                                                               ^^^^^^^^^^^^ help: change this to: `c_tmpname`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2011]
src/guestfs.rs:9344:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9344 |         let r = unsafe { guestfs_device_index(self.g, (&c_device).as_ptr()) };
#       |                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2012]
src/guestfs.rs:9401:59: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9401 | ...   let r = unsafe { guestfs_disk_create_argv(self.g, (&c_filename).as_ptr(), (&c_format).as_ptr(), size, &(RawDiskCreateOptArgs::from(...
#       |                                                         ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2013]
src/guestfs.rs:9401:83: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9401 | ...   let r = unsafe { guestfs_disk_create_argv(self.g, (&c_filename).as_ptr(), (&c_format).as_ptr(), size, &(RawDiskCreateOptArgs::from(...
#       |                                                                                 ^^^^^^^^^^^ help: change this to: `c_format`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2014]
src/guestfs.rs:9416:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9416 |         let r = unsafe { guestfs_disk_format(self.g, (&c_filename).as_ptr()) };
#       |                                                      ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2015]
src/guestfs.rs:9432:64: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9432 |         let r = unsafe { guestfs_disk_has_backing_file(self.g, (&c_filename).as_ptr()) };
#       |                                                                ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2016]
src/guestfs.rs:9445:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9445 |         let r = unsafe { guestfs_disk_virtual_size(self.g, (&c_filename).as_ptr()) };
#       |                                                            ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2017]
src/guestfs.rs:9473:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9473 |         let r = unsafe { guestfs_download(self.g, (&c_remotefilename).as_ptr(), (&c_filename).as_ptr()) };
#       |                                                   ^^^^^^^^^^^^^^^^^^^ help: change this to: `c_remotefilename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2018]
src/guestfs.rs:9473:81: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9473 |         let r = unsafe { guestfs_download(self.g, (&c_remotefilename).as_ptr(), (&c_filename).as_ptr()) };
#       |                                                                                 ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2019]
src/guestfs.rs:9489:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9489 | ...   let r = unsafe { guestfs_download_blocks_argv(self.g, (&c_device).as_ptr(), start, stop, (&c_filename).as_ptr(), &(RawDownloadBlock...
#       |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2020]
src/guestfs.rs:9489:98: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9489 | ...self.g, (&c_device).as_ptr(), start, stop, (&c_filename).as_ptr(), &(RawDownloadBlocksOptArgs::from(&optargs_cexpr)) as *const RawDown...
#       |                                               ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2021]
src/guestfs.rs:9495:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9495 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprDownloadBlocksOptArgs`
#      --> src/guestfs.rs:9495:14
#       |
#  9495 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2022]
src/guestfs.rs:9505:57: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9505 |         let r = unsafe { guestfs_download_inode(self.g, (&c_device).as_ptr(), inode, (&c_filename).as_ptr()) };
#       |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2023]
src/guestfs.rs:9505:86: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9505 |         let r = unsafe { guestfs_download_inode(self.g, (&c_device).as_ptr(), inode, (&c_filename).as_ptr()) };
#       |                                                                                      ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2024]
src/guestfs.rs:9520:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9520 |         let r = unsafe { guestfs_download_offset(self.g, (&c_remotefilename).as_ptr(), (&c_filename).as_ptr(), offset, size) };
#       |                                                          ^^^^^^^^^^^^^^^^^^^ help: change this to: `c_remotefilename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2025]
src/guestfs.rs:9520:88: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9520 |         let r = unsafe { guestfs_download_offset(self.g, (&c_remotefilename).as_ptr(), (&c_filename).as_ptr(), offset, size) };
#       |                                                                                        ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2026]
src/guestfs.rs:9545:45: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9545 |         let r = unsafe { guestfs_du(self.g, (&c_path).as_ptr()) };
#       |                                             ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2027]
src/guestfs.rs:9559:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9559 | ...   let r = unsafe { guestfs_e2fsck_argv(self.g, (&c_device).as_ptr(), &(RawE2fsckOptArgs::from(&optargs_cexpr)) as *const RawE2fsckOpt...
#       |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2028]
src/guestfs.rs:9564:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#       |
#  9564 |         drop(optargs_cexpr);
#       |         ^^^^^^^^^^^^^^^^^^^
#       |
#  note: argument has type `guestfs::CExprE2fsckOptArgs`
#      --> src/guestfs.rs:9564:14
#       |
#  9564 |         drop(optargs_cexpr);
#       |              ^^^^^^^^^^^^^
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2029]
src/guestfs.rs:9573:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9573 |         let r = unsafe { guestfs_e2fsck_f(self.g, (&c_device).as_ptr()) };
#       |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2030]
src/guestfs.rs:9585:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  9585 |         let mut c_words = (&c_words_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                        ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2031]
src/guestfs.rs:9588:54: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  9588 |         let r = unsafe { guestfs_echo_daemon(self.g, (&c_words).as_ptr() as *const *const c_char) };
#       |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_words).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2032]
src/guestfs.rs:9588:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9588 |         let r = unsafe { guestfs_echo_daemon(self.g, (&c_words).as_ptr() as *const *const c_char) };
#       |                                                      ^^^^^^^^^^ help: change this to: `c_words`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2033]
src/guestfs.rs:9606:48: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9606 |         let r = unsafe { guestfs_egrep(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr()) };
#       |                                                ^^^^^^^^^^ help: change this to: `c_regex`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2034]
src/guestfs.rs:9606:69: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9606 |         let r = unsafe { guestfs_egrep(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                     ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2035]
src/guestfs.rs:9625:49: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9625 |         let r = unsafe { guestfs_egrepi(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr()) };
#       |                                                 ^^^^^^^^^^ help: change this to: `c_regex`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2036]
src/guestfs.rs:9625:70: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9625 |         let r = unsafe { guestfs_egrepi(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                      ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2037]
src/guestfs.rs:9644:48: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9644 |         let r = unsafe { guestfs_equal(self.g, (&c_file1).as_ptr(), (&c_file2).as_ptr()) };
#       |                                                ^^^^^^^^^^ help: change this to: `c_file1`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2038]
src/guestfs.rs:9644:69: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9644 |         let r = unsafe { guestfs_equal(self.g, (&c_file1).as_ptr(), (&c_file2).as_ptr()) };
#       |                                                                     ^^^^^^^^^^ help: change this to: `c_file2`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2039]
src/guestfs.rs:9658:49: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9658 |         let r = unsafe { guestfs_exists(self.g, (&c_path).as_ptr()) };
#       |                                                 ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2040]
src/guestfs.rs:9671:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9671 |         let r = unsafe { guestfs_extlinux(self.g, (&c_directory).as_ptr()) };
#       |                                                   ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2041]
src/guestfs.rs:9684:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9684 |         let r = unsafe { guestfs_f2fs_expand(self.g, (&c_device).as_ptr()) };
#       |                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2042]
src/guestfs.rs:9697:52: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9697 |         let r = unsafe { guestfs_fallocate(self.g, (&c_path).as_ptr(), len) };
#       |                                                    ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2043]
src/guestfs.rs:9710:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9710 |         let r = unsafe { guestfs_fallocate64(self.g, (&c_path).as_ptr(), len) };
#       |                                                      ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2044]
src/guestfs.rs:9722:42: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#       |
#  9722 |         let mut c_groups = (&c_groups_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#       |                                          ^^^^^^^^^ help: call directly: `iter`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2045]
src/guestfs.rs:9725:60: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#       |
#  9725 |         let r = unsafe { guestfs_feature_available(self.g, (&c_groups).as_ptr() as *const *const c_char) };
#       |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_groups).as_ptr()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2046]
src/guestfs.rs:9725:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9725 |         let r = unsafe { guestfs_feature_available(self.g, (&c_groups).as_ptr() as *const *const c_char) };
#       |                                                            ^^^^^^^^^^^ help: change this to: `c_groups`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2047]
src/guestfs.rs:9740:48: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9740 |         let r = unsafe { guestfs_fgrep(self.g, (&c_pattern).as_ptr(), (&c_path).as_ptr()) };
#       |                                                ^^^^^^^^^^^^ help: change this to: `c_pattern`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2048]
src/guestfs.rs:9740:71: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9740 |         let r = unsafe { guestfs_fgrep(self.g, (&c_pattern).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                       ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2049]
src/guestfs.rs:9759:49: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9759 |         let r = unsafe { guestfs_fgrepi(self.g, (&c_pattern).as_ptr(), (&c_path).as_ptr()) };
#       |                                                 ^^^^^^^^^^^^ help: change this to: `c_pattern`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2050]
src/guestfs.rs:9759:72: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9759 |         let r = unsafe { guestfs_fgrepi(self.g, (&c_pattern).as_ptr(), (&c_path).as_ptr()) };
#       |                                                                        ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2051]
src/guestfs.rs:9777:47: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9777 |         let r = unsafe { guestfs_file(self.g, (&c_path).as_ptr()) };
#       |                                               ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2052]
src/guestfs.rs:9793:60: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9793 |         let r = unsafe { guestfs_file_architecture(self.g, (&c_filename).as_ptr()) };
#       |                                                            ^^^^^^^^^^^^^ help: change this to: `c_filename`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2053]
src/guestfs.rs:9809:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9809 |         let r = unsafe { guestfs_filesize(self.g, (&c_file).as_ptr()) };
#       |                                                   ^^^^^^^^^ help: change this to: `c_file`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2054]
src/guestfs.rs:9822:63: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9822 |         let r = unsafe { guestfs_filesystem_available(self.g, (&c_filesystem).as_ptr()) };
#       |                                                               ^^^^^^^^^^^^^^^ help: change this to: `c_filesystem`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2055]
src/guestfs.rs:9835:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9835 |         let r = unsafe { guestfs_filesystem_walk(self.g, (&c_device).as_ptr()) };
#       |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2056]
src/guestfs.rs:9852:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9852 |         let r = unsafe { guestfs_fill(self.g, c, len, (&c_path).as_ptr()) };
#       |                                                       ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2057]
src/guestfs.rs:9865:51: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9865 |         let r = unsafe { guestfs_fill_dir(self.g, (&c_dir).as_ptr(), nr) };
#       |                                                   ^^^^^^^^ help: change this to: `c_dir`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2058]
src/guestfs.rs:9879:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9879 |         let r = unsafe { guestfs_fill_pattern(self.g, (&c_pattern).as_ptr(), len, (&c_path).as_ptr()) };
#       |                                                       ^^^^^^^^^^^^ help: change this to: `c_pattern`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2059]
src/guestfs.rs:9879:83: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9879 |         let r = unsafe { guestfs_fill_pattern(self.g, (&c_pattern).as_ptr(), len, (&c_path).as_ptr()) };
#       |                                                                                   ^^^^^^^^^ help: change this to: `c_path`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2060]
src/guestfs.rs:9893:47: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9893 |         let r = unsafe { guestfs_find(self.g, (&c_directory).as_ptr()) };
#       |                                               ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2061]
src/guestfs.rs:9911:48: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9911 |         let r = unsafe { guestfs_find0(self.g, (&c_directory).as_ptr(), (&c_files).as_ptr()) };
#       |                                                ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2062]
src/guestfs.rs:9911:73: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9911 |         let r = unsafe { guestfs_find0(self.g, (&c_directory).as_ptr(), (&c_files).as_ptr()) };
#       |                                                                         ^^^^^^^^^^ help: change this to: `c_files`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2063]
src/guestfs.rs:9925:53: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9925 |         let r = unsafe { guestfs_find_inode(self.g, (&c_device).as_ptr(), inode) };
#       |                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2064]
src/guestfs.rs:9942:55: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9942 |         let r = unsafe { guestfs_findfs_label(self.g, (&c_label).as_ptr()) };
#       |                                                       ^^^^^^^^^^ help: change this to: `c_label`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2065]
src/guestfs.rs:9958:59: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9958 |         let r = unsafe { guestfs_findfs_partlabel(self.g, (&c_label).as_ptr()) };
#       |                                                           ^^^^^^^^^^ help: change this to: `c_label`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2066]
src/guestfs.rs:9974:58: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9974 |         let r = unsafe { guestfs_findfs_partuuid(self.g, (&c_uuid).as_ptr()) };
#       |                                                          ^^^^^^^^^ help: change this to: `c_uuid`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2067]
src/guestfs.rs:9990:54: warning: this expression borrows a value the compiler would automatically borrow
#       |
#  9990 |         let r = unsafe { guestfs_findfs_uuid(self.g, (&c_uuid).as_ptr()) };
#       |                                                      ^^^^^^^^^ help: change this to: `c_uuid`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2068]
src/guestfs.rs:10007:47: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10007 |         let r = unsafe { guestfs_fsck(self.g, (&c_fstype).as_ptr(), (&c_device).as_ptr()) };
#        |                                               ^^^^^^^^^^^ help: change this to: `c_fstype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2069]
src/guestfs.rs:10007:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10007 |         let r = unsafe { guestfs_fsck(self.g, (&c_fstype).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2070]
src/guestfs.rs:10022:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10022 | ...   let r = unsafe { guestfs_fstrim_argv(self.g, (&c_mountpoint).as_ptr(), &(RawFstrimOptArgs::from(&optargs_cexpr)) as *const RawFstri...
#        |                                                    ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2071]
src/guestfs.rs:10027:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  10027 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprFstrimOptArgs`
#       --> src/guestfs.rs:10027:14
#        |
#  10027 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2072]
src/guestfs.rs:10087:62: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10087 |         let r = unsafe { guestfs_get_backend_setting(self.g, (&c_name).as_ptr()) };
#        |                                                              ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2073]
src/guestfs.rs:10143:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10143 |         let r = unsafe { guestfs_get_e2attrs(self.g, (&c_file).as_ptr()) };
#        |                                                      ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2074]
src/guestfs.rs:10159:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10159 |         let r = unsafe { guestfs_get_e2generation(self.g, (&c_file).as_ptr()) };
#        |                                                           ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2075]
src/guestfs.rs:10172:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10172 |         let r = unsafe { guestfs_get_e2label(self.g, (&c_device).as_ptr()) };
#        |                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2076]
src/guestfs.rs:10188:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10188 |         let r = unsafe { guestfs_get_e2uuid(self.g, (&c_device).as_ptr()) };
#        |                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2077]
src/guestfs.rs:10484:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10484 |         let r = unsafe { guestfs_getxattr(self.g, (&c_path).as_ptr(), (&c_name).as_ptr(), &mut size as *mut usize) };
#        |                                                   ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2078]
src/guestfs.rs:10484:71: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10484 |         let r = unsafe { guestfs_getxattr(self.g, (&c_path).as_ptr(), (&c_name).as_ptr(), &mut size as *mut usize) };
#        |                                                                       ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2079]
src/guestfs.rs:10502:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10502 |         let r = unsafe { guestfs_getxattrs(self.g, (&c_path).as_ptr()) };
#        |                                                    ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2080]
src/guestfs.rs:10520:64: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10520 | ...   let r = unsafe { guestfs_glob_expand_opts_argv(self.g, (&c_pattern).as_ptr(), &(RawGlobExpandOptArgs::from(&optargs_cexpr)) as *con...
#        |                                                              ^^^^^^^^^^^^ help: change this to: `c_pattern`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2081]
src/guestfs.rs:10525:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  10525 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprGlobExpandOptArgs`
#       --> src/guestfs.rs:10525:14
#        |
#  10525 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2082]
src/guestfs.rs:10540:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10540 | ...   let r = unsafe { guestfs_grep_opts_argv(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr(), &(RawGrepOptArgs::from(&optargs_cexpr)) as...
#        |                                                       ^^^^^^^^^^ help: change this to: `c_regex`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2083]
src/guestfs.rs:10540:78: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10540 | ...   let r = unsafe { guestfs_grep_opts_argv(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr(), &(RawGrepOptArgs::from(&optargs_cexpr)) as...
#        |                                                                            ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2084]
src/guestfs.rs:10546:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  10546 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprGrepOptArgs`
#       --> src/guestfs.rs:10546:14
#        |
#  10546 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2085]
src/guestfs.rs:10560:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10560 |         let r = unsafe { guestfs_grepi(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr()) };
#        |                                                ^^^^^^^^^^ help: change this to: `c_regex`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2086]
src/guestfs.rs:10560:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10560 |         let r = unsafe { guestfs_grepi(self.g, (&c_regex).as_ptr(), (&c_path).as_ptr()) };
#        |                                                                     ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2087]
src/guestfs.rs:10579:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10579 |         let r = unsafe { guestfs_grub_install(self.g, (&c_root).as_ptr(), (&c_device).as_ptr()) };
#        |                                                       ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2088]
src/guestfs.rs:10579:75: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10579 |         let r = unsafe { guestfs_grub_install(self.g, (&c_root).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                           ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2089]
src/guestfs.rs:10593:47: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10593 |         let r = unsafe { guestfs_head(self.g, (&c_path).as_ptr()) };
#        |                                               ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2090]
src/guestfs.rs:10610:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10610 |         let r = unsafe { guestfs_head_n(self.g, nrlines, (&c_path).as_ptr()) };
#        |                                                          ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2091]
src/guestfs.rs:10627:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10627 |         let r = unsafe { guestfs_hexdump(self.g, (&c_path).as_ptr()) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2092]
src/guestfs.rs:10652:39: warning: redundant closure
#        |
#  10652 |         let c_filename = filename.map(|s| ffi::CString::new(s)).transpose()?;
#        |                                       ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def2093]
src/guestfs.rs:10668:71: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10668 |         let r = unsafe { guestfs_hivex_node_add_child(self.g, parent, (&c_name).as_ptr()) };
#        |                                                                       ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2094]
src/guestfs.rs:10707:70: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10707 |         let r = unsafe { guestfs_hivex_node_get_child(self.g, nodeh, (&c_name).as_ptr()) };
#        |                                                                      ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2095]
src/guestfs.rs:10720:70: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10720 |         let r = unsafe { guestfs_hivex_node_get_value(self.g, nodeh, (&c_key).as_ptr()) };
#        |                                                                      ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2096]
src/guestfs.rs:10760:70: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10760 |         let r = unsafe { guestfs_hivex_node_set_value(self.g, nodeh, (&c_key).as_ptr(), t, (&c_val).as_ptr(), c_val_len) };
#        |                                                                      ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2097]
src/guestfs.rs:10760:92: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10760 |         let r = unsafe { guestfs_hivex_node_set_value(self.g, nodeh, (&c_key).as_ptr(), t, (&c_val).as_ptr(), c_val_len) };
#        |                                                                                            ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2098]
src/guestfs.rs:10790:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10790 | ...   let r = unsafe { guestfs_hivex_open_argv(self.g, (&c_filename).as_ptr(), &(RawHivexOpenOptArgs::from(&optargs_cexpr)) as *const Raw...
#        |                                                        ^^^^^^^^^^^^^ help: change this to: `c_filename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2099]
src/guestfs.rs:10795:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  10795 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprHivexOpenOptArgs`
#       --> src/guestfs.rs:10795:14
#        |
#  10795 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2100]
src/guestfs.rs:10886:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10886 |         let r = unsafe { guestfs_initrd_cat(self.g, (&c_initrdpath).as_ptr(), (&c_filename).as_ptr(), &mut size as *mut usize) };
#        |                                                     ^^^^^^^^^^^^^^^ help: change this to: `c_initrdpath`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2101]
src/guestfs.rs:10886:79: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10886 |         let r = unsafe { guestfs_initrd_cat(self.g, (&c_initrdpath).as_ptr(), (&c_filename).as_ptr(), &mut size as *mut usize) };
#        |                                                                               ^^^^^^^^^^^^^ help: change this to: `c_filename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2102]
src/guestfs.rs:10904:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10904 |         let r = unsafe { guestfs_initrd_list(self.g, (&c_path).as_ptr()) };
#        |                                                      ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2103]
src/guestfs.rs:10921:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10921 |         let r = unsafe { guestfs_inotify_add_watch(self.g, (&c_path).as_ptr(), mask) };
#        |                                                            ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2104]
src/guestfs.rs:10997:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  10997 |         let r = unsafe { guestfs_inspect_get_arch(self.g, (&c_root).as_ptr()) };
#        |                                                           ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2105]
src/guestfs.rs:11013:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11013 |         let r = unsafe { guestfs_inspect_get_build_id(self.g, (&c_root).as_ptr()) };
#        |                                                               ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2106]
src/guestfs.rs:11029:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11029 |         let r = unsafe { guestfs_inspect_get_distro(self.g, (&c_root).as_ptr()) };
#        |                                                             ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2107]
src/guestfs.rs:11045:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11045 |         let r = unsafe { guestfs_inspect_get_drive_mappings(self.g, (&c_root).as_ptr()) };
#        |                                                                     ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2108]
src/guestfs.rs:11062:66: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11062 |         let r = unsafe { guestfs_inspect_get_filesystems(self.g, (&c_root).as_ptr()) };
#        |                                                                  ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2109]
src/guestfs.rs:11079:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11079 |         let r = unsafe { guestfs_inspect_get_format(self.g, (&c_root).as_ptr()) };
#        |                                                             ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2110]
src/guestfs.rs:11095:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11095 |         let r = unsafe { guestfs_inspect_get_hostname(self.g, (&c_root).as_ptr()) };
#        |                                                               ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2111]
src/guestfs.rs:11113:64: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11113 | ...   let r = unsafe { guestfs_inspect_get_icon_argv(self.g, (&c_root).as_ptr(), &mut size as *mut usize, &(RawInspectGetIconOptArgs::fro...
#        |                                                              ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2112]
src/guestfs.rs:11118:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11118 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprInspectGetIconOptArgs`
#       --> src/guestfs.rs:11118:14
#        |
#  11118 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2113]
src/guestfs.rs:11131:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11131 |         let r = unsafe { guestfs_inspect_get_major_version(self.g, (&c_root).as_ptr()) };
#        |                                                                    ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2114]
src/guestfs.rs:11144:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11144 |         let r = unsafe { guestfs_inspect_get_minor_version(self.g, (&c_root).as_ptr()) };
#        |                                                                    ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2115]
src/guestfs.rs:11157:66: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11157 |         let r = unsafe { guestfs_inspect_get_mountpoints(self.g, (&c_root).as_ptr()) };
#        |                                                                  ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2116]
src/guestfs.rs:11174:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11174 |         let r = unsafe { guestfs_inspect_get_osinfo(self.g, (&c_root).as_ptr()) };
#        |                                                             ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2117]
src/guestfs.rs:11190:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11190 |         let r = unsafe { guestfs_inspect_get_package_format(self.g, (&c_root).as_ptr()) };
#        |                                                                     ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2118]
src/guestfs.rs:11206:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11206 |         let r = unsafe { guestfs_inspect_get_package_management(self.g, (&c_root).as_ptr()) };
#        |                                                                         ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2119]
src/guestfs.rs:11222:67: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11222 |         let r = unsafe { guestfs_inspect_get_product_name(self.g, (&c_root).as_ptr()) };
#        |                                                                   ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2120]
src/guestfs.rs:11238:70: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11238 |         let r = unsafe { guestfs_inspect_get_product_variant(self.g, (&c_root).as_ptr()) };
#        |                                                                      ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2121]
src/guestfs.rs:11269:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11269 |         let r = unsafe { guestfs_inspect_get_type(self.g, (&c_root).as_ptr()) };
#        |                                                           ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2122]
src/guestfs.rs:11285:82: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11285 |         let r = unsafe { guestfs_inspect_get_windows_current_control_set(self.g, (&c_root).as_ptr()) };
#        |                                                                                  ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2123]
src/guestfs.rs:11301:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11301 |         let r = unsafe { guestfs_inspect_get_windows_software_hive(self.g, (&c_root).as_ptr()) };
#        |                                                                            ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2124]
src/guestfs.rs:11317:74: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11317 |         let r = unsafe { guestfs_inspect_get_windows_system_hive(self.g, (&c_root).as_ptr()) };
#        |                                                                          ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2125]
src/guestfs.rs:11333:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11333 |         let r = unsafe { guestfs_inspect_get_windows_systemroot(self.g, (&c_root).as_ptr()) };
#        |                                                                         ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2126]
src/guestfs.rs:11349:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11349 |         let r = unsafe { guestfs_inspect_is_live(self.g, (&c_root).as_ptr()) };
#        |                                                          ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2127]
src/guestfs.rs:11362:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11362 |         let r = unsafe { guestfs_inspect_is_multipart(self.g, (&c_root).as_ptr()) };
#        |                                                               ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2128]
src/guestfs.rs:11375:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11375 |         let r = unsafe { guestfs_inspect_is_netinst(self.g, (&c_root).as_ptr()) };
#        |                                                             ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2129]
src/guestfs.rs:11388:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11388 |         let r = unsafe { guestfs_inspect_list_applications(self.g, (&c_root).as_ptr()) };
#        |                                                                    ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2130]
src/guestfs.rs:11405:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11405 |         let r = unsafe { guestfs_inspect_list_applications2(self.g, (&c_root).as_ptr()) };
#        |                                                                     ^^^^^^^^^ help: change this to: `c_root`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2131]
src/guestfs.rs:11445:5: warning: this function has too many arguments (11/7)
#        |
#  11445 |     pub fn internal_test(&self, str: &str, optstr: Option<&str>, strlist: &[&str], b: bool, integer: i32, integer64: i64, filein: &str, fileout: &str, bufferin: &[u8], optargs: InternalTestOptArgs) -> Result<(), Error...
#        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
#        = note: `#[warn(clippy::too_many_arguments)]` on by default

Error: CLIPPY_WARNING: [#def2132]
src/guestfs.rs:11447:35: warning: redundant closure
#        |
#  11447 |         let c_optstr = optstr.map(|s| ffi::CString::new(s)).transpose()?;
#        |                                   ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def2133]
src/guestfs.rs:11449:44: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  11449 |         let mut c_strlist = (&c_strlist_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                            ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2134]
src/guestfs.rs:11458:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11458 | ...   let r = unsafe { guestfs_internal_test_argv(self.g, (&c_str).as_ptr(), match &c_optstr { Some(ref s) => s.as_ptr(), None => ptr::nu...
#        |                                                           ^^^^^^^^ help: change this to: `c_str`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2135]
src/guestfs.rs:11459:3: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  11459 | , (&c_strlist).as_ptr() as *const *const c_char, b, integer, integer64, (&c_filein).as_ptr(), (&c_fileout).as_ptr(), (&c_bufferin).as_ptr...
#        |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_strlist).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2136]
src/guestfs.rs:11459:3: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11459 | , (&c_strlist).as_ptr() as *const *const c_char, b, integer, integer64, (&c_filein).as_ptr(), (&c_fileout).as_ptr(), (&c_bufferin).as_ptr...
#        |   ^^^^^^^^^^^^ help: change this to: `c_strlist`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2137]
src/guestfs.rs:11459:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11459 | , (&c_strlist).as_ptr() as *const *const c_char, b, integer, integer64, (&c_filein).as_ptr(), (&c_fileout).as_ptr(), (&c_bufferin).as_ptr...
#        |                                                                         ^^^^^^^^^^^ help: change this to: `c_filein`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2138]
src/guestfs.rs:11459:95: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11459 | ..., integer, integer64, (&c_filein).as_ptr(), (&c_fileout).as_ptr(), (&c_bufferin).as_ptr(), c_bufferin_len, &(RawInternalTestOptArgs::f...
#        |                                                ^^^^^^^^^^^^ help: change this to: `c_fileout`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2139]
src/guestfs.rs:11459:118: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11459 | ...c_filein).as_ptr(), (&c_fileout).as_ptr(), (&c_bufferin).as_ptr(), c_bufferin_len, &(RawInternalTestOptArgs::from(&optargs_cexpr)) as ...
#        |                                               ^^^^^^^^^^^^^ help: change this to: `c_bufferin`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2140]
src/guestfs.rs:11483:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11483 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprInternalTest63OptargsOptArgs`
#       --> src/guestfs.rs:11483:14
#        |
#  11483 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2141]
src/guestfs.rs:11507:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11507 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprInternalTestOnlyOptargsOptArgs`
#       --> src/guestfs.rs:11507:14
#        |
#  11507 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2142]
src/guestfs.rs:11516:62: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11516 |         let r = unsafe { guestfs_internal_test_rbool(self.g, (&c_val).as_ptr()) };
#        |                                                              ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2143]
src/guestfs.rs:11541:67: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11541 |         let r = unsafe { guestfs_internal_test_rbufferout(self.g, (&c_val).as_ptr(), &mut size as *mut usize) };
#        |                                                                   ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2144]
src/guestfs.rs:11574:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11574 |         let r = unsafe { guestfs_internal_test_rconstoptstring(self.g, (&c_val).as_ptr()) };
#        |                                                                        ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2145]
src/guestfs.rs:11600:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11600 |         let r = unsafe { guestfs_internal_test_rconststring(self.g, (&c_val).as_ptr()) };
#        |                                                                     ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2146]
src/guestfs.rs:11624:67: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11624 |         let r = unsafe { guestfs_internal_test_rhashtable(self.g, (&c_val).as_ptr()) };
#        |                                                                   ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2147]
src/guestfs.rs:11656:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11656 |         let r = unsafe { guestfs_internal_test_rint(self.g, (&c_val).as_ptr()) };
#        |                                                             ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2148]
src/guestfs.rs:11669:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11669 |         let r = unsafe { guestfs_internal_test_rint64(self.g, (&c_val).as_ptr()) };
#        |                                                               ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2149]
src/guestfs.rs:11704:64: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11704 |         let r = unsafe { guestfs_internal_test_rstring(self.g, (&c_val).as_ptr()) };
#        |                                                                ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2150]
src/guestfs.rs:11734:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11734 |         let r = unsafe { guestfs_internal_test_rstringlist(self.g, (&c_val).as_ptr()) };
#        |                                                                    ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2151]
src/guestfs.rs:11766:64: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11766 |         let r = unsafe { guestfs_internal_test_rstruct(self.g, (&c_val).as_ptr()) };
#        |                                                                ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2152]
src/guestfs.rs:11798:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11798 |         let r = unsafe { guestfs_internal_test_rstructlist(self.g, (&c_val).as_ptr()) };
#        |                                                                    ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2153]
src/guestfs.rs:11830:67: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11830 |         let r = unsafe { guestfs_internal_test_set_output(self.g, (&c_filename).as_ptr()) };
#        |                                                                   ^^^^^^^^^^^^^ help: change this to: `c_filename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2154]
src/guestfs.rs:11844:64: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11844 | ...   let r = unsafe { guestfs_is_blockdev_opts_argv(self.g, (&c_path).as_ptr(), &(RawIsBlockdevOptArgs::from(&optargs_cexpr)) as *const ...
#        |                                                              ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2155]
src/guestfs.rs:11849:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11849 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprIsBlockdevOptArgs`
#       --> src/guestfs.rs:11849:14
#        |
#  11849 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2156]
src/guestfs.rs:11870:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11870 | ...   let r = unsafe { guestfs_is_chardev_opts_argv(self.g, (&c_path).as_ptr(), &(RawIsChardevOptArgs::from(&optargs_cexpr)) as *const Ra...
#        |                                                             ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2157]
src/guestfs.rs:11875:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11875 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprIsChardevOptArgs`
#       --> src/guestfs.rs:11875:14
#        |
#  11875 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2158]
src/guestfs.rs:11896:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11896 | ...   let r = unsafe { guestfs_is_dir_opts_argv(self.g, (&c_path).as_ptr(), &(RawIsDirOptArgs::from(&optargs_cexpr)) as *const RawIsDirOp...
#        |                                                         ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2159]
src/guestfs.rs:11901:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11901 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprIsDirOptArgs`
#       --> src/guestfs.rs:11901:14
#        |
#  11901 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2160]
src/guestfs.rs:11911:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11911 | ...   let r = unsafe { guestfs_is_fifo_opts_argv(self.g, (&c_path).as_ptr(), &(RawIsFifoOptArgs::from(&optargs_cexpr)) as *const RawIsFif...
#        |                                                          ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2161]
src/guestfs.rs:11916:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11916 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprIsFifoOptArgs`
#       --> src/guestfs.rs:11916:14
#        |
#  11916 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2162]
src/guestfs.rs:11926:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11926 | ...   let r = unsafe { guestfs_is_file_opts_argv(self.g, (&c_path).as_ptr(), &(RawIsFileOptArgs::from(&optargs_cexpr)) as *const RawIsFil...
#        |                                                          ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2163]
src/guestfs.rs:11931:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11931 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprIsFileOptArgs`
#       --> src/guestfs.rs:11931:14
#        |
#  11931 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2164]
src/guestfs.rs:11951:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11951 |         let r = unsafe { guestfs_is_lv(self.g, (&c_mountable).as_ptr()) };
#        |                                                ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2165]
src/guestfs.rs:11976:62: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11976 | ...   let r = unsafe { guestfs_is_socket_opts_argv(self.g, (&c_path).as_ptr(), &(RawIsSocketOptArgs::from(&optargs_cexpr)) as *const RawI...
#        |                                                            ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2166]
src/guestfs.rs:11981:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  11981 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprIsSocketOptArgs`
#       --> src/guestfs.rs:11981:14
#        |
#  11981 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2167]
src/guestfs.rs:11990:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  11990 |         let r = unsafe { guestfs_is_symlink(self.g, (&c_path).as_ptr()) };
#        |                                                     ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2168]
src/guestfs.rs:12003:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12003 |         let r = unsafe { guestfs_is_whole_device(self.g, (&c_device).as_ptr()) };
#        |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2169]
src/guestfs.rs:12016:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12016 |         let r = unsafe { guestfs_is_zero(self.g, (&c_path).as_ptr()) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2170]
src/guestfs.rs:12029:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12029 |         let r = unsafe { guestfs_is_zero_device(self.g, (&c_device).as_ptr()) };
#        |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2171]
src/guestfs.rs:12042:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12042 |         let r = unsafe { guestfs_isoinfo(self.g, (&c_isofile).as_ptr()) };
#        |                                                  ^^^^^^^^^^^^ help: change this to: `c_isofile`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2172]
src/guestfs.rs:12059:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12059 |         let r = unsafe { guestfs_isoinfo_device(self.g, (&c_device).as_ptr()) };
#        |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2173]
src/guestfs.rs:12135:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12135 |         let r = unsafe { guestfs_journal_open(self.g, (&c_directory).as_ptr()) };
#        |                                                       ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2174]
src/guestfs.rs:12192:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12192 |         let r = unsafe { guestfs_lchown(self.g, owner, group, (&c_path).as_ptr()) };
#        |                                                               ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2175]
src/guestfs.rs:12216:66: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12216 |         let r = unsafe { guestfs_ldmtool_diskgroup_disks(self.g, (&c_diskgroup).as_ptr()) };
#        |                                                                  ^^^^^^^^^^^^^^ help: change this to: `c_diskgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2176]
src/guestfs.rs:12233:65: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12233 |         let r = unsafe { guestfs_ldmtool_diskgroup_name(self.g, (&c_diskgroup).as_ptr()) };
#        |                                                                 ^^^^^^^^^^^^^^ help: change this to: `c_diskgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2177]
src/guestfs.rs:12249:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12249 |         let r = unsafe { guestfs_ldmtool_diskgroup_volumes(self.g, (&c_diskgroup).as_ptr()) };
#        |                                                                    ^^^^^^^^^^^^^^ help: change this to: `c_diskgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2178]
src/guestfs.rs:12291:44: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  12291 |         let mut c_devices = (&c_devices_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                            ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2179]
src/guestfs.rs:12294:63: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  12294 |         let r = unsafe { guestfs_ldmtool_scan_devices(self.g, (&c_devices).as_ptr() as *const *const c_char) };
#        |                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_devices).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2180]
src/guestfs.rs:12294:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12294 |         let r = unsafe { guestfs_ldmtool_scan_devices(self.g, (&c_devices).as_ptr() as *const *const c_char) };
#        |                                                               ^^^^^^^^^^^^ help: change this to: `c_devices`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2181]
src/guestfs.rs:12313:62: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12313 |         let r = unsafe { guestfs_ldmtool_volume_hint(self.g, (&c_diskgroup).as_ptr(), (&c_volume).as_ptr()) };
#        |                                                              ^^^^^^^^^^^^^^ help: change this to: `c_diskgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2182]
src/guestfs.rs:12313:87: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12313 |         let r = unsafe { guestfs_ldmtool_volume_hint(self.g, (&c_diskgroup).as_ptr(), (&c_volume).as_ptr()) };
#        |                                                                                       ^^^^^^^^^^^ help: change this to: `c_volume`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2183]
src/guestfs.rs:12331:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12331 |         let r = unsafe { guestfs_ldmtool_volume_partitions(self.g, (&c_diskgroup).as_ptr(), (&c_volume).as_ptr()) };
#        |                                                                    ^^^^^^^^^^^^^^ help: change this to: `c_diskgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2184]
src/guestfs.rs:12331:93: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12331 |         let r = unsafe { guestfs_ldmtool_volume_partitions(self.g, (&c_diskgroup).as_ptr(), (&c_volume).as_ptr()) };
#        |                                                                                             ^^^^^^^^^^^ help: change this to: `c_volume`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2185]
src/guestfs.rs:12350:62: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12350 |         let r = unsafe { guestfs_ldmtool_volume_type(self.g, (&c_diskgroup).as_ptr(), (&c_volume).as_ptr()) };
#        |                                                              ^^^^^^^^^^^^^^ help: change this to: `c_diskgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2186]
src/guestfs.rs:12350:87: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12350 |         let r = unsafe { guestfs_ldmtool_volume_type(self.g, (&c_diskgroup).as_ptr(), (&c_volume).as_ptr()) };
#        |                                                                                       ^^^^^^^^^^^ help: change this to: `c_volume`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2187]
src/guestfs.rs:12369:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12369 |         let r = unsafe { guestfs_lgetxattr(self.g, (&c_path).as_ptr(), (&c_name).as_ptr(), &mut size as *mut usize) };
#        |                                                    ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2188]
src/guestfs.rs:12369:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12369 |         let r = unsafe { guestfs_lgetxattr(self.g, (&c_path).as_ptr(), (&c_name).as_ptr(), &mut size as *mut usize) };
#        |                                                                        ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2189]
src/guestfs.rs:12387:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12387 |         let r = unsafe { guestfs_lgetxattrs(self.g, (&c_path).as_ptr()) };
#        |                                                     ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2190]
src/guestfs.rs:12539:45: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12539 |         let r = unsafe { guestfs_ll(self.g, (&c_directory).as_ptr()) };
#        |                                             ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2191]
src/guestfs.rs:12555:46: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12555 |         let r = unsafe { guestfs_llz(self.g, (&c_directory).as_ptr()) };
#        |                                              ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2192]
src/guestfs.rs:12572:45: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12572 |         let r = unsafe { guestfs_ln(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                             ^^^^^^^^^^^ help: change this to: `c_target`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2193]
src/guestfs.rs:12572:67: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12572 |         let r = unsafe { guestfs_ln(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                                                   ^^^^^^^^^^^^^ help: change this to: `c_linkname`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2194]
src/guestfs.rs:12587:47: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12587 |         let r = unsafe { guestfs_ln_f(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                               ^^^^^^^^^^^ help: change this to: `c_target`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2195]
src/guestfs.rs:12587:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12587 |         let r = unsafe { guestfs_ln_f(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                                                     ^^^^^^^^^^^^^ help: change this to: `c_linkname`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2196]
src/guestfs.rs:12602:47: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12602 |         let r = unsafe { guestfs_ln_s(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                               ^^^^^^^^^^^ help: change this to: `c_target`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2197]
src/guestfs.rs:12602:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12602 |         let r = unsafe { guestfs_ln_s(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                                                     ^^^^^^^^^^^^^ help: change this to: `c_linkname`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2198]
src/guestfs.rs:12617:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12617 |         let r = unsafe { guestfs_ln_sf(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                                ^^^^^^^^^^^ help: change this to: `c_target`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2199]
src/guestfs.rs:12617:70: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12617 |         let r = unsafe { guestfs_ln_sf(self.g, (&c_target).as_ptr(), (&c_linkname).as_ptr()) };
#        |                                                                      ^^^^^^^^^^^^^ help: change this to: `c_linkname`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2200]
src/guestfs.rs:12632:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12632 |         let r = unsafe { guestfs_lremovexattr(self.g, (&c_xattr).as_ptr(), (&c_path).as_ptr()) };
#        |                                                       ^^^^^^^^^^ help: change this to: `c_xattr`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2201]
src/guestfs.rs:12632:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12632 |         let r = unsafe { guestfs_lremovexattr(self.g, (&c_xattr).as_ptr(), (&c_path).as_ptr()) };
#        |                                                                            ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2202]
src/guestfs.rs:12646:45: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12646 |         let r = unsafe { guestfs_ls(self.g, (&c_directory).as_ptr()) };
#        |                                             ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2203]
src/guestfs.rs:12664:46: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12664 |         let r = unsafe { guestfs_ls0(self.g, (&c_dir).as_ptr(), (&c_filenames).as_ptr()) };
#        |                                              ^^^^^^^^ help: change this to: `c_dir`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2204]
src/guestfs.rs:12664:65: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12664 |         let r = unsafe { guestfs_ls0(self.g, (&c_dir).as_ptr(), (&c_filenames).as_ptr()) };
#        |                                                                 ^^^^^^^^^^^^^^ help: change this to: `c_filenames`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2205]
src/guestfs.rs:12680:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12680 |         let r = unsafe { guestfs_lsetxattr(self.g, (&c_xattr).as_ptr(), (&c_val).as_ptr(), vallen, (&c_path).as_ptr()) };
#        |                                                    ^^^^^^^^^^ help: change this to: `c_xattr`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2206]
src/guestfs.rs:12680:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12680 |         let r = unsafe { guestfs_lsetxattr(self.g, (&c_xattr).as_ptr(), (&c_val).as_ptr(), vallen, (&c_path).as_ptr()) };
#        |                                                                         ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2207]
src/guestfs.rs:12680:100: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12680 |         let r = unsafe { guestfs_lsetxattr(self.g, (&c_xattr).as_ptr(), (&c_val).as_ptr(), vallen, (&c_path).as_ptr()) };
#        |                                                                                                    ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2208]
src/guestfs.rs:12695:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12695 |         let r = unsafe { guestfs_lstat(self.g, (&c_path).as_ptr()) };
#        |                                                ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2209]
src/guestfs.rs:12712:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  12712 |         let mut c_names = (&c_names_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                        ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2210]
src/guestfs.rs:12715:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12715 |         let r = unsafe { guestfs_lstatlist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                    ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2211]
src/guestfs.rs:12715:72: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  12715 |         let r = unsafe { guestfs_lstatlist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_names).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2212]
src/guestfs.rs:12715:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12715 |         let r = unsafe { guestfs_lstatlist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                        ^^^^^^^^^^ help: change this to: `c_names`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2213]
src/guestfs.rs:12734:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12734 |         let r = unsafe { guestfs_lstatns(self.g, (&c_path).as_ptr()) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2214]
src/guestfs.rs:12751:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  12751 |         let mut c_names = (&c_names_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                        ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2215]
src/guestfs.rs:12754:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12754 |         let r = unsafe { guestfs_lstatnslist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                      ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2216]
src/guestfs.rs:12754:74: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  12754 |         let r = unsafe { guestfs_lstatnslist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_names).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2217]
src/guestfs.rs:12754:74: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12754 |         let r = unsafe { guestfs_lstatnslist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                          ^^^^^^^^^^ help: change this to: `c_names`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2218]
src/guestfs.rs:12775:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12775 |         let r = unsafe { guestfs_luks_add_key(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_newkey).as_ptr(), keyslot) };
#        |                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2219]
src/guestfs.rs:12775:77: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12775 |         let r = unsafe { guestfs_luks_add_key(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_newkey).as_ptr(), keyslot) };
#        |                                                                             ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2220]
src/guestfs.rs:12775:96: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12775 |         let r = unsafe { guestfs_luks_add_key(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_newkey).as_ptr(), keyslot) };
#        |                                                                                                ^^^^^^^^^^^ help: change this to: `c_newkey`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2221]
src/guestfs.rs:12790:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12790 |         let r = unsafe { guestfs_luks_close(self.g, (&c_device).as_ptr()) };
#        |                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2222]
src/guestfs.rs:12804:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12804 |         let r = unsafe { guestfs_luks_format(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), keyslot) };
#        |                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2223]
src/guestfs.rs:12804:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12804 |         let r = unsafe { guestfs_luks_format(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), keyslot) };
#        |                                                                            ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2224]
src/guestfs.rs:12820:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12820 |         let r = unsafe { guestfs_luks_format_cipher(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), keyslot, (&c_cipher).as_ptr()) };
#        |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2225]
src/guestfs.rs:12820:83: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12820 |         let r = unsafe { guestfs_luks_format_cipher(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), keyslot, (&c_cipher).as_ptr()) };
#        |                                                                                   ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2226]
src/guestfs.rs:12820:111: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12820 |         let r = unsafe { guestfs_luks_format_cipher(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), keyslot, (&c_cipher).as_ptr()) };
#        |                                                                                                               ^^^^^^^^^^^ help: change this to: `c_cipher`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2227]
src/guestfs.rs:12836:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12836 |         let r = unsafe { guestfs_luks_kill_slot(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), keyslot) };
#        |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2228]
src/guestfs.rs:12836:79: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12836 |         let r = unsafe { guestfs_luks_kill_slot(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), keyslot) };
#        |                                                                               ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2229]
src/guestfs.rs:12852:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12852 |         let r = unsafe { guestfs_luks_open(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2230]
src/guestfs.rs:12852:74: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12852 |         let r = unsafe { guestfs_luks_open(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr()) };
#        |                                                                          ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2231]
src/guestfs.rs:12852:93: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12852 |         let r = unsafe { guestfs_luks_open(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr()) };
#        |                                                                                             ^^^^^^^^^^^^ help: change this to: `c_mapname`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2232]
src/guestfs.rs:12869:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12869 |         let r = unsafe { guestfs_luks_open_ro(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr()) };
#        |                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2233]
src/guestfs.rs:12869:77: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12869 |         let r = unsafe { guestfs_luks_open_ro(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr()) };
#        |                                                                             ^^^^^^^^ help: change this to: `c_key`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2234]
src/guestfs.rs:12869:96: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12869 |         let r = unsafe { guestfs_luks_open_ro(self.g, (&c_device).as_ptr(), (&c_key).as_ptr(), (&c_mapname).as_ptr()) };
#        |                                                                                                ^^^^^^^^^^^^ help: change this to: `c_mapname`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2235]
src/guestfs.rs:12884:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12884 |         let r = unsafe { guestfs_luks_uuid(self.g, (&c_device).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2236]
src/guestfs.rs:12901:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12901 |         let r = unsafe { guestfs_lvcreate(self.g, (&c_logvol).as_ptr(), (&c_volgroup).as_ptr(), mbytes) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_logvol`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2237]
src/guestfs.rs:12901:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12901 |         let r = unsafe { guestfs_lvcreate(self.g, (&c_logvol).as_ptr(), (&c_volgroup).as_ptr(), mbytes) };
#        |                                                                         ^^^^^^^^^^^^^ help: change this to: `c_volgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2238]
src/guestfs.rs:12916:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12916 |         let r = unsafe { guestfs_lvcreate_free(self.g, (&c_logvol).as_ptr(), (&c_volgroup).as_ptr(), percent) };
#        |                                                        ^^^^^^^^^^^ help: change this to: `c_logvol`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2239]
src/guestfs.rs:12916:78: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12916 |         let r = unsafe { guestfs_lvcreate_free(self.g, (&c_logvol).as_ptr(), (&c_volgroup).as_ptr(), percent) };
#        |                                                                              ^^^^^^^^^^^^^ help: change this to: `c_volgroup`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2240]
src/guestfs.rs:12930:64: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12930 |         let r = unsafe { guestfs_lvm_canonical_lv_name(self.g, (&c_lvname).as_ptr()) };
#        |                                                                ^^^^^^^^^^^ help: change this to: `c_lvname`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2241]
src/guestfs.rs:12979:44: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  12979 |         let mut c_devices = (&c_devices_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                            ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2242]
src/guestfs.rs:12982:57: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  12982 |         let r = unsafe { guestfs_lvm_set_filter(self.g, (&c_devices).as_ptr() as *const *const c_char) };
#        |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_devices).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2243]
src/guestfs.rs:12982:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12982 |         let r = unsafe { guestfs_lvm_set_filter(self.g, (&c_devices).as_ptr() as *const *const c_char) };
#        |                                                         ^^^^^^^^^^^^ help: change this to: `c_devices`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2244]
src/guestfs.rs:12996:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  12996 |         let r = unsafe { guestfs_lvremove(self.g, (&c_device).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2245]
src/guestfs.rs:13010:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13010 |         let r = unsafe { guestfs_lvrename(self.g, (&c_logvol).as_ptr(), (&c_newlogvol).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_logvol`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2246]
src/guestfs.rs:13010:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13010 |         let r = unsafe { guestfs_lvrename(self.g, (&c_logvol).as_ptr(), (&c_newlogvol).as_ptr()) };
#        |                                                                         ^^^^^^^^^^^^^^ help: change this to: `c_newlogvol`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2247]
src/guestfs.rs:13024:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13024 |         let r = unsafe { guestfs_lvresize(self.g, (&c_device).as_ptr(), mbytes) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2248]
src/guestfs.rs:13037:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13037 |         let r = unsafe { guestfs_lvresize_free(self.g, (&c_lv).as_ptr(), percent) };
#        |                                                        ^^^^^^^ help: change this to: `c_lv`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2249]
src/guestfs.rs:13080:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13080 |         let r = unsafe { guestfs_lvuuid(self.g, (&c_device).as_ptr()) };
#        |                                                 ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2250]
src/guestfs.rs:13096:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  13096 |         let mut c_names = (&c_names_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                        ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2251]
src/guestfs.rs:13099:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13099 |         let r = unsafe { guestfs_lxattrlist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                     ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2252]
src/guestfs.rs:13099:73: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  13099 |         let r = unsafe { guestfs_lxattrlist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_names).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2253]
src/guestfs.rs:13099:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13099 |         let r = unsafe { guestfs_lxattrlist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                         ^^^^^^^^^^ help: change this to: `c_names`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2254]
src/guestfs.rs:13129:44: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  13129 |         let mut c_devices = (&c_devices_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                            ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2255]
src/guestfs.rs:13133:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13133 | ...   let r = unsafe { guestfs_md_create_argv(self.g, (&c_name).as_ptr(), (&c_devices).as_ptr() as *const *const c_char, &(RawMdCreateOpt...
#        |                                                       ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2256]
src/guestfs.rs:13133:77: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  13133 | ...elf.g, (&c_name).as_ptr(), (&c_devices).as_ptr() as *const *const c_char, &(RawMdCreateOptArgs::from(&optargs_cexpr)) as *const RawMdC...
#        |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_devices).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2257]
src/guestfs.rs:13133:77: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13133 | ...   let r = unsafe { guestfs_md_create_argv(self.g, (&c_name).as_ptr(), (&c_devices).as_ptr() as *const *const c_char, &(RawMdCreateOpt...
#        |                                                                           ^^^^^^^^^^^^ help: change this to: `c_devices`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2258]
src/guestfs.rs:13149:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13149 |         let r = unsafe { guestfs_md_detail(self.g, (&c_md).as_ptr()) };
#        |                                                    ^^^^^^^ help: change this to: `c_md`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2259]
src/guestfs.rs:13166:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13166 |         let r = unsafe { guestfs_md_stat(self.g, (&c_md).as_ptr()) };
#        |                                                  ^^^^^^^ help: change this to: `c_md`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2260]
src/guestfs.rs:13183:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13183 |         let r = unsafe { guestfs_md_stop(self.g, (&c_md).as_ptr()) };
#        |                                                  ^^^^^^^ help: change this to: `c_md`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2261]
src/guestfs.rs:13196:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13196 |         let r = unsafe { guestfs_mkdir(self.g, (&c_path).as_ptr()) };
#        |                                                ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2262]
src/guestfs.rs:13209:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13209 |         let r = unsafe { guestfs_mkdir_mode(self.g, (&c_path).as_ptr(), mode) };
#        |                                                     ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2263]
src/guestfs.rs:13222:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13222 |         let r = unsafe { guestfs_mkdir_p(self.g, (&c_path).as_ptr()) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2264]
src/guestfs.rs:13235:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13235 |         let r = unsafe { guestfs_mkdtemp(self.g, (&c_tmpl).as_ptr()) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_tmpl`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2265]
src/guestfs.rs:13252:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13252 | ...   let r = unsafe { guestfs_mke2fs_argv(self.g, (&c_device).as_ptr(), &(RawMke2fsOptArgs::from(&optargs_cexpr)) as *const RawMke2fsOpt...
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2266]
src/guestfs.rs:13268:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13268 |         let r = unsafe { guestfs_mke2fs_J(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_journal).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_fstype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2267]
src/guestfs.rs:13268:84: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13268 |         let r = unsafe { guestfs_mke2fs_J(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_journal).as_ptr()) };
#        |                                                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2268]
src/guestfs.rs:13268:106: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13268 |         let r = unsafe { guestfs_mke2fs_J(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_journal).as_ptr()) };
#        |                                                                                                          ^^^^^^^^^^^^ help: change this to: `c_journal`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2269]
src/guestfs.rs:13285:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13285 |         let r = unsafe { guestfs_mke2fs_JL(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_label).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_fstype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2270]
src/guestfs.rs:13285:85: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13285 |         let r = unsafe { guestfs_mke2fs_JL(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_label).as_ptr()) };
#        |                                                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2271]
src/guestfs.rs:13285:107: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13285 |         let r = unsafe { guestfs_mke2fs_JL(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_label).as_ptr()) };
#        |                                                                                                           ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2272]
src/guestfs.rs:13302:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13302 |         let r = unsafe { guestfs_mke2fs_JU(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_uuid).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_fstype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2273]
src/guestfs.rs:13302:85: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13302 |         let r = unsafe { guestfs_mke2fs_JU(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_uuid).as_ptr()) };
#        |                                                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2274]
src/guestfs.rs:13302:107: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13302 |         let r = unsafe { guestfs_mke2fs_JU(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr(), (&c_uuid).as_ptr()) };
#        |                                                                                                           ^^^^^^^^^ help: change this to: `c_uuid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2275]
src/guestfs.rs:13317:65: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13317 |         let r = unsafe { guestfs_mke2journal(self.g, blocksize, (&c_device).as_ptr()) };
#        |                                                                 ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2276]
src/guestfs.rs:13331:67: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13331 |         let r = unsafe { guestfs_mke2journal_L(self.g, blocksize, (&c_label).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                   ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2277]
src/guestfs.rs:13331:88: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13331 |         let r = unsafe { guestfs_mke2journal_L(self.g, blocksize, (&c_label).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2278]
src/guestfs.rs:13346:67: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13346 |         let r = unsafe { guestfs_mke2journal_U(self.g, blocksize, (&c_uuid).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                   ^^^^^^^^^ help: change this to: `c_uuid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2279]
src/guestfs.rs:13346:87: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13346 |         let r = unsafe { guestfs_mke2journal_U(self.g, blocksize, (&c_uuid).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2280]
src/guestfs.rs:13360:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13360 |         let r = unsafe { guestfs_mkfifo(self.g, mode, (&c_path).as_ptr()) };
#        |                                                       ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2281]
src/guestfs.rs:13375:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13375 | ...   let r = unsafe { guestfs_mkfs_opts_argv(self.g, (&c_fstype).as_ptr(), (&c_device).as_ptr(), &(RawMkfsOptArgs::from(&optargs_cexpr))...
#        |                                                       ^^^^^^^^^^^ help: change this to: `c_fstype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2282]
src/guestfs.rs:13375:79: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13375 | ...   let r = unsafe { guestfs_mkfs_opts_argv(self.g, (&c_fstype).as_ptr(), (&c_device).as_ptr(), &(RawMkfsOptArgs::from(&optargs_cexpr))...
#        |                                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2283]
src/guestfs.rs:13391:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13391 |         let r = unsafe { guestfs_mkfs_b(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr()) };
#        |                                                 ^^^^^^^^^^^ help: change this to: `c_fstype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2284]
src/guestfs.rs:13391:82: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13391 |         let r = unsafe { guestfs_mkfs_b(self.g, (&c_fstype).as_ptr(), blocksize, (&c_device).as_ptr()) };
#        |                                                                                  ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2285]
src/guestfs.rs:13404:44: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  13404 |         let mut c_devices = (&c_devices_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                            ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2286]
src/guestfs.rs:13408:58: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  13408 | ...fs_mkfs_btrfs_argv(self.g, (&c_devices).as_ptr() as *const *const c_char, &(RawMkfsBtrfsOptArgs::from(&optargs_cexpr)) as *const RawMk...
#        |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_devices).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2287]
src/guestfs.rs:13408:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13408 | ...   let r = unsafe { guestfs_mkfs_btrfs_argv(self.g, (&c_devices).as_ptr() as *const *const c_char, &(RawMkfsBtrfsOptArgs::from(&optarg...
#        |                                                        ^^^^^^^^^^^^ help: change this to: `c_devices`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2288]
src/guestfs.rs:13423:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13423 |         let r = unsafe { guestfs_mklost_and_found(self.g, (&c_mountpoint).as_ptr()) };
#        |                                                           ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2289]
src/guestfs.rs:13436:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13436 |         let r = unsafe { guestfs_mkmountpoint(self.g, (&c_exemptpath).as_ptr()) };
#        |                                                       ^^^^^^^^^^^^^^^ help: change this to: `c_exemptpath`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2290]
src/guestfs.rs:13449:74: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13449 |         let r = unsafe { guestfs_mknod(self.g, mode, devmajor, devminor, (&c_path).as_ptr()) };
#        |                                                                          ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2291]
src/guestfs.rs:13462:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13462 |         let r = unsafe { guestfs_mknod_b(self.g, mode, devmajor, devminor, (&c_path).as_ptr()) };
#        |                                                                            ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2292]
src/guestfs.rs:13475:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13475 |         let r = unsafe { guestfs_mknod_c(self.g, mode, devmajor, devminor, (&c_path).as_ptr()) };
#        |                                                                            ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2293]
src/guestfs.rs:13490:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13490 | ...   let r = unsafe { guestfs_mksquashfs_argv(self.g, (&c_path).as_ptr(), (&c_filename).as_ptr(), &(RawMksquashfsOptArgs::from(&optargs_...
#        |                                                        ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2294]
src/guestfs.rs:13490:78: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13490 | ...   let r = unsafe { guestfs_mksquashfs_argv(self.g, (&c_path).as_ptr(), (&c_filename).as_ptr(), &(RawMksquashfsOptArgs::from(&optargs_...
#        |                                                                            ^^^^^^^^^^^^^ help: change this to: `c_filename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2295]
src/guestfs.rs:13506:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13506 | ...   let r = unsafe { guestfs_mkswap_opts_argv(self.g, (&c_device).as_ptr(), &(RawMkswapOptArgs::from(&optargs_cexpr)) as *const RawMksw...
#        |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2296]
src/guestfs.rs:13521:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13521 |         let r = unsafe { guestfs_mkswap_L(self.g, (&c_label).as_ptr(), (&c_device).as_ptr()) };
#        |                                                   ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2297]
src/guestfs.rs:13521:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13521 |         let r = unsafe { guestfs_mkswap_L(self.g, (&c_label).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2298]
src/guestfs.rs:13536:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13536 |         let r = unsafe { guestfs_mkswap_U(self.g, (&c_uuid).as_ptr(), (&c_device).as_ptr()) };
#        |                                                   ^^^^^^^^^ help: change this to: `c_uuid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2299]
src/guestfs.rs:13536:71: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13536 |         let r = unsafe { guestfs_mkswap_U(self.g, (&c_uuid).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2300]
src/guestfs.rs:13550:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13550 |         let r = unsafe { guestfs_mkswap_file(self.g, (&c_path).as_ptr()) };
#        |                                                      ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2301]
src/guestfs.rs:13564:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13564 | ...   let r = unsafe { guestfs_mktemp_argv(self.g, (&c_tmpl).as_ptr(), &(RawMktempOptArgs::from(&optargs_cexpr)) as *const RawMktempOptAr...
#        |                                                    ^^^^^^^^^ help: change this to: `c_tmpl`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2302]
src/guestfs.rs:13581:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13581 |         let r = unsafe { guestfs_modprobe(self.g, (&c_modulename).as_ptr()) };
#        |                                                   ^^^^^^^^^^^^^^^ help: change this to: `c_modulename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2303]
src/guestfs.rs:13595:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13595 |         let r = unsafe { guestfs_mount(self.g, (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2304]
src/guestfs.rs:13595:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13595 |         let r = unsafe { guestfs_mount(self.g, (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                                         ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2305]
src/guestfs.rs:13611:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13611 | ...   let r = unsafe { guestfs_mount_9p_argv(self.g, (&c_mounttag).as_ptr(), (&c_mountpoint).as_ptr(), &(RawMount9pOptArgs::from(&optargs...
#        |                                                      ^^^^^^^^^^^^^ help: change this to: `c_mounttag`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2306]
src/guestfs.rs:13611:80: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13611 | ...   let r = unsafe { guestfs_mount_9p_argv(self.g, (&c_mounttag).as_ptr(), (&c_mountpoint).as_ptr(), &(RawMount9pOptArgs::from(&optargs...
#        |                                                                              ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2307]
src/guestfs.rs:13627:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13627 | ...   let r = unsafe { guestfs_mount_local_argv(self.g, (&c_localmountpoint).as_ptr(), &(RawMountLocalOptArgs::from(&optargs_cexpr)) as *...
#        |                                                         ^^^^^^^^^^^^^^^^^^^^ help: change this to: `c_localmountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2308]
src/guestfs.rs:13653:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13653 |         let r = unsafe { guestfs_mount_loop(self.g, (&c_file).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                     ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2309]
src/guestfs.rs:13653:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13653 |         let r = unsafe { guestfs_mount_loop(self.g, (&c_file).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                                         ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2310]
src/guestfs.rs:13669:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13669 |         let r = unsafe { guestfs_mount_options(self.g, (&c_options).as_ptr(), (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                        ^^^^^^^^^^^^ help: change this to: `c_options`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2311]
src/guestfs.rs:13669:79: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13669 |         let r = unsafe { guestfs_mount_options(self.g, (&c_options).as_ptr(), (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                                               ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2312]
src/guestfs.rs:13669:104: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13669 |         let r = unsafe { guestfs_mount_options(self.g, (&c_options).as_ptr(), (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                                                                        ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2313]
src/guestfs.rs:13685:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13685 |         let r = unsafe { guestfs_mount_ro(self.g, (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                   ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2314]
src/guestfs.rs:13685:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13685 |         let r = unsafe { guestfs_mount_ro(self.g, (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                                                            ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2315]
src/guestfs.rs:13702:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13702 | ...   let r = unsafe { guestfs_mount_vfs(self.g, (&c_options).as_ptr(), (&c_vfstype).as_ptr(), (&c_mountable).as_ptr(), (&c_mountpoint).a...
#        |                                                  ^^^^^^^^^^^^ help: change this to: `c_options`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2316]
src/guestfs.rs:13702:75: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13702 | ...   let r = unsafe { guestfs_mount_vfs(self.g, (&c_options).as_ptr(), (&c_vfstype).as_ptr(), (&c_mountable).as_ptr(), (&c_mountpoint).a...
#        |                                                                         ^^^^^^^^^^^^ help: change this to: `c_vfstype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2317]
src/guestfs.rs:13702:98: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13702 | ...options).as_ptr(), (&c_vfstype).as_ptr(), (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                              ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2318]
src/guestfs.rs:13702:123: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13702 | ...type).as_ptr(), (&c_mountable).as_ptr(), (&c_mountpoint).as_ptr()) };
#        |                                             ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2319]
src/guestfs.rs:13718:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13718 |         let r = unsafe { guestfs_mountable_device(self.g, (&c_mountable).as_ptr()) };
#        |                                                           ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2320]
src/guestfs.rs:13734:62: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13734 |         let r = unsafe { guestfs_mountable_subvolume(self.g, (&c_mountable).as_ptr()) };
#        |                                                              ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2321]
src/guestfs.rs:13781:45: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13781 |         let r = unsafe { guestfs_mv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#        |                                             ^^^^^^^^ help: change this to: `c_src`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2322]
src/guestfs.rs:13781:64: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13781 |         let r = unsafe { guestfs_mv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr()) };
#        |                                                                ^^^^^^^^^ help: change this to: `c_dest`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2323]
src/guestfs.rs:13807:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13807 |         let r = unsafe { guestfs_ntfs_3g_probe(self.g, rw, (&c_device).as_ptr()) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2324]
src/guestfs.rs:13821:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13821 |         let r = unsafe { guestfs_ntfscat_i(self.g, (&c_device).as_ptr(), inode, (&c_filename).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2325]
src/guestfs.rs:13821:81: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13821 |         let r = unsafe { guestfs_ntfscat_i(self.g, (&c_device).as_ptr(), inode, (&c_filename).as_ptr()) };
#        |                                                                                 ^^^^^^^^^^^^^ help: change this to: `c_filename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2326]
src/guestfs.rs:13836:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13836 |         let r = unsafe { guestfs_ntfsclone_in(self.g, (&c_backupfile).as_ptr(), (&c_device).as_ptr()) };
#        |                                                       ^^^^^^^^^^^^^^^ help: change this to: `c_backupfile`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2327]
src/guestfs.rs:13836:81: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13836 |         let r = unsafe { guestfs_ntfsclone_in(self.g, (&c_backupfile).as_ptr(), (&c_device).as_ptr()) };
#        |                                                                                 ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2328]
src/guestfs.rs:13852:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13852 | ...   let r = unsafe { guestfs_ntfsclone_out_argv(self.g, (&c_device).as_ptr(), (&c_backupfile).as_ptr(), &(RawNtfscloneOutOptArgs::from(...
#        |                                                           ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2329]
src/guestfs.rs:13852:83: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13852 | ...   let r = unsafe { guestfs_ntfsclone_out_argv(self.g, (&c_device).as_ptr(), (&c_backupfile).as_ptr(), &(RawNtfscloneOutOptArgs::from(...
#        |                                                                                 ^^^^^^^^^^^^^^^ help: change this to: `c_backupfile`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2330]
src/guestfs.rs:13858:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  13858 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprNtfscloneOutOptArgs`
#       --> src/guestfs.rs:13858:14
#        |
#  13858 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2331]
src/guestfs.rs:13868:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13868 | ...   let r = unsafe { guestfs_ntfsfix_argv(self.g, (&c_device).as_ptr(), &(RawNtfsfixOptArgs::from(&optargs_cexpr)) as *const RawNtfsfix...
#        |                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2332]
src/guestfs.rs:13873:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  13873 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprNtfsfixOptArgs`
#       --> src/guestfs.rs:13873:14
#        |
#  13873 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2333]
src/guestfs.rs:13883:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13883 | ...   let r = unsafe { guestfs_ntfsresize_opts_argv(self.g, (&c_device).as_ptr(), &(RawNtfsresizeOptArgs::from(&optargs_cexpr)) as *const...
#        |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2334]
src/guestfs.rs:13888:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  13888 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprNtfsresizeOptArgs`
#       --> src/guestfs.rs:13888:14
#        |
#  13888 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2335]
src/guestfs.rs:13897:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13897 |         let r = unsafe { guestfs_ntfsresize_size(self.g, (&c_device).as_ptr(), size) };
#        |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2336]
src/guestfs.rs:13920:52: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  13920 |         let mut c_environment = (&c_environment_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                                    ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2337]
src/guestfs.rs:13923:65: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  13923 |         let r = unsafe { guestfs_parse_environment_list(self.g, (&c_environment).as_ptr() as *const *const c_char) };
#        |                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_environment).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2338]
src/guestfs.rs:13923:65: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13923 |         let r = unsafe { guestfs_parse_environment_list(self.g, (&c_environment).as_ptr() as *const *const c_char) };
#        |                                                                 ^^^^^^^^^^^^^^^^ help: change this to: `c_environment`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2339]
src/guestfs.rs:13938:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13938 |         let r = unsafe { guestfs_part_add(self.g, (&c_device).as_ptr(), (&c_prlogex).as_ptr(), startsect, endsect) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2340]
src/guestfs.rs:13938:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13938 |         let r = unsafe { guestfs_part_add(self.g, (&c_device).as_ptr(), (&c_prlogex).as_ptr(), startsect, endsect) };
#        |                                                                         ^^^^^^^^^^^^ help: change this to: `c_prlogex`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2341]
src/guestfs.rs:13952:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13952 |         let r = unsafe { guestfs_part_del(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2342]
src/guestfs.rs:13966:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13966 |         let r = unsafe { guestfs_part_disk(self.g, (&c_device).as_ptr(), (&c_parttype).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2343]
src/guestfs.rs:13966:74: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13966 |         let r = unsafe { guestfs_part_disk(self.g, (&c_device).as_ptr(), (&c_parttype).as_ptr()) };
#        |                                                                          ^^^^^^^^^^^^^ help: change this to: `c_parttype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2344]
src/guestfs.rs:13980:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13980 |         let r = unsafe { guestfs_part_expand_gpt(self.g, (&c_device).as_ptr()) };
#        |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2345]
src/guestfs.rs:13993:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  13993 |         let r = unsafe { guestfs_part_get_bootable(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2346]
src/guestfs.rs:14006:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14006 |         let r = unsafe { guestfs_part_get_disk_guid(self.g, (&c_device).as_ptr()) };
#        |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2347]
src/guestfs.rs:14022:66: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14022 |         let r = unsafe { guestfs_part_get_gpt_attributes(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                                  ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2348]
src/guestfs.rs:14035:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14035 |         let r = unsafe { guestfs_part_get_gpt_guid(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2349]
src/guestfs.rs:14051:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14051 |         let r = unsafe { guestfs_part_get_gpt_type(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2350]
src/guestfs.rs:14067:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14067 |         let r = unsafe { guestfs_part_get_mbr_id(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2351]
src/guestfs.rs:14080:65: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14080 |         let r = unsafe { guestfs_part_get_mbr_part_type(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                                 ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2352]
src/guestfs.rs:14096:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14096 |         let r = unsafe { guestfs_part_get_name(self.g, (&c_device).as_ptr(), partnum) };
#        |                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2353]
src/guestfs.rs:14112:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14112 |         let r = unsafe { guestfs_part_get_parttype(self.g, (&c_device).as_ptr()) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2354]
src/guestfs.rs:14129:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14129 |         let r = unsafe { guestfs_part_init(self.g, (&c_device).as_ptr(), (&c_parttype).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2355]
src/guestfs.rs:14129:74: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14129 |         let r = unsafe { guestfs_part_init(self.g, (&c_device).as_ptr(), (&c_parttype).as_ptr()) };
#        |                                                                          ^^^^^^^^^^^^^ help: change this to: `c_parttype`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2356]
src/guestfs.rs:14143:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14143 |         let r = unsafe { guestfs_part_list(self.g, (&c_device).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2357]
src/guestfs.rs:14160:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14160 |         let r = unsafe { guestfs_part_resize(self.g, (&c_device).as_ptr(), partnum, endsect) };
#        |                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2358]
src/guestfs.rs:14174:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14174 |         let r = unsafe { guestfs_part_set_bootable(self.g, (&c_device).as_ptr(), partnum, bootable) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2359]
src/guestfs.rs:14188:61: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14188 |         let r = unsafe { guestfs_part_set_disk_guid(self.g, (&c_device).as_ptr(), (&c_guid).as_ptr()) };
#        |                                                             ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2360]
src/guestfs.rs:14188:83: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14188 |         let r = unsafe { guestfs_part_set_disk_guid(self.g, (&c_device).as_ptr(), (&c_guid).as_ptr()) };
#        |                                                                                   ^^^^^^^^^ help: change this to: `c_guid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2361]
src/guestfs.rs:14202:68: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14202 |         let r = unsafe { guestfs_part_set_disk_guid_random(self.g, (&c_device).as_ptr()) };
#        |                                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2362]
src/guestfs.rs:14215:66: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14215 |         let r = unsafe { guestfs_part_set_gpt_attributes(self.g, (&c_device).as_ptr(), partnum, attributes) };
#        |                                                                  ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2363]
src/guestfs.rs:14229:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14229 |         let r = unsafe { guestfs_part_set_gpt_guid(self.g, (&c_device).as_ptr(), partnum, (&c_guid).as_ptr()) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2364]
src/guestfs.rs:14229:91: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14229 |         let r = unsafe { guestfs_part_set_gpt_guid(self.g, (&c_device).as_ptr(), partnum, (&c_guid).as_ptr()) };
#        |                                                                                           ^^^^^^^^^ help: change this to: `c_guid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2365]
src/guestfs.rs:14244:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14244 |         let r = unsafe { guestfs_part_set_gpt_type(self.g, (&c_device).as_ptr(), partnum, (&c_guid).as_ptr()) };
#        |                                                            ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2366]
src/guestfs.rs:14244:91: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14244 |         let r = unsafe { guestfs_part_set_gpt_type(self.g, (&c_device).as_ptr(), partnum, (&c_guid).as_ptr()) };
#        |                                                                                           ^^^^^^^^^ help: change this to: `c_guid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2367]
src/guestfs.rs:14258:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14258 |         let r = unsafe { guestfs_part_set_mbr_id(self.g, (&c_device).as_ptr(), partnum, idbyte) };
#        |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2368]
src/guestfs.rs:14272:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14272 |         let r = unsafe { guestfs_part_set_name(self.g, (&c_device).as_ptr(), partnum, (&c_name).as_ptr()) };
#        |                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2369]
src/guestfs.rs:14272:87: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14272 |         let r = unsafe { guestfs_part_set_name(self.g, (&c_device).as_ptr(), partnum, (&c_name).as_ptr()) };
#        |                                                                                       ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2370]
src/guestfs.rs:14286:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14286 |         let r = unsafe { guestfs_part_to_dev(self.g, (&c_partition).as_ptr()) };
#        |                                                      ^^^^^^^^^^^^^^ help: change this to: `c_partition`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2371]
src/guestfs.rs:14302:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14302 |         let r = unsafe { guestfs_part_to_partnum(self.g, (&c_partition).as_ptr()) };
#        |                                                          ^^^^^^^^^^^^^^ help: change this to: `c_partition`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2372]
src/guestfs.rs:14327:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14327 |         let r = unsafe { guestfs_pread(self.g, (&c_path).as_ptr(), count, offset, &mut size as *mut usize) };
#        |                                                ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2373]
src/guestfs.rs:14345:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14345 |         let r = unsafe { guestfs_pread_device(self.g, (&c_device).as_ptr(), count, offset, &mut size as *mut usize) };
#        |                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2374]
src/guestfs.rs:14362:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14362 |         let r = unsafe { guestfs_pvchange_uuid(self.g, (&c_device).as_ptr()) };
#        |                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2375]
src/guestfs.rs:14386:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14386 |         let r = unsafe { guestfs_pvcreate(self.g, (&c_device).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2376]
src/guestfs.rs:14399:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14399 |         let r = unsafe { guestfs_pvremove(self.g, (&c_device).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2377]
src/guestfs.rs:14412:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14412 |         let r = unsafe { guestfs_pvresize(self.g, (&c_device).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2378]
src/guestfs.rs:14425:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14425 |         let r = unsafe { guestfs_pvresize_size(self.g, (&c_device).as_ptr(), size) };
#        |                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2379]
src/guestfs.rs:14468:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14468 |         let r = unsafe { guestfs_pvuuid(self.g, (&c_device).as_ptr()) };
#        |                                                 ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2380]
src/guestfs.rs:14486:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14486 |         let r = unsafe { guestfs_pwrite(self.g, (&c_path).as_ptr(), (&c_content).as_ptr(), c_content_len, offset) };
#        |                                                 ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2381]
src/guestfs.rs:14486:69: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14486 |         let r = unsafe { guestfs_pwrite(self.g, (&c_path).as_ptr(), (&c_content).as_ptr(), c_content_len, offset) };
#        |                                                                     ^^^^^^^^^^^^ help: change this to: `c_content`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2382]
src/guestfs.rs:14502:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14502 |         let r = unsafe { guestfs_pwrite_device(self.g, (&c_device).as_ptr(), (&c_content).as_ptr(), c_content_len, offset) };
#        |                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2383]
src/guestfs.rs:14502:78: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14502 |         let r = unsafe { guestfs_pwrite_device(self.g, (&c_device).as_ptr(), (&c_content).as_ptr(), c_content_len, offset) };
#        |                                                                              ^^^^^^^^^^^^ help: change this to: `c_content`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2384]
src/guestfs.rs:14517:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14517 |         let r = unsafe { guestfs_read_file(self.g, (&c_path).as_ptr(), &mut size as *mut usize) };
#        |                                                    ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2385]
src/guestfs.rs:14534:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14534 |         let r = unsafe { guestfs_read_lines(self.g, (&c_path).as_ptr()) };
#        |                                                     ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2386]
src/guestfs.rs:14551:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14551 |         let r = unsafe { guestfs_readdir(self.g, (&c_dir).as_ptr()) };
#        |                                                  ^^^^^^^^ help: change this to: `c_dir`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2387]
src/guestfs.rs:14568:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14568 |         let r = unsafe { guestfs_readlink(self.g, (&c_path).as_ptr()) };
#        |                                                   ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2388]
src/guestfs.rs:14584:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  14584 |         let mut c_names = (&c_names_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                        ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2389]
src/guestfs.rs:14587:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14587 |         let r = unsafe { guestfs_readlinklist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                       ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2390]
src/guestfs.rs:14587:75: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  14587 |         let r = unsafe { guestfs_readlinklist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_names).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2391]
src/guestfs.rs:14587:75: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14587 |         let r = unsafe { guestfs_readlinklist(self.g, (&c_path).as_ptr(), (&c_names).as_ptr() as *const *const c_char) };
#        |                                                                           ^^^^^^^^^^ help: change this to: `c_names`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2392]
src/guestfs.rs:14606:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14606 |         let r = unsafe { guestfs_realpath(self.g, (&c_path).as_ptr()) };
#        |                                                   ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2393]
src/guestfs.rs:14623:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14623 | ...   let r = unsafe { guestfs_remount_argv(self.g, (&c_mountpoint).as_ptr(), &(RawRemountOptArgs::from(&optargs_cexpr)) as *const RawRem...
#        |                                                     ^^^^^^^^^^^^^^^ help: change this to: `c_mountpoint`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2394]
src/guestfs.rs:14628:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  14628 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprRemountOptArgs`
#       --> src/guestfs.rs:14628:14
#        |
#  14628 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2395]
src/guestfs.rs:14637:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14637 |         let r = unsafe { guestfs_remove_drive(self.g, (&c_label).as_ptr()) };
#        |                                                       ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2396]
src/guestfs.rs:14651:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14651 |         let r = unsafe { guestfs_removexattr(self.g, (&c_xattr).as_ptr(), (&c_path).as_ptr()) };
#        |                                                      ^^^^^^^^^^ help: change this to: `c_xattr`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2397]
src/guestfs.rs:14651:75: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14651 |         let r = unsafe { guestfs_removexattr(self.g, (&c_xattr).as_ptr(), (&c_path).as_ptr()) };
#        |                                                                           ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2398]
src/guestfs.rs:14666:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14666 |         let r = unsafe { guestfs_rename(self.g, (&c_oldpath).as_ptr(), (&c_newpath).as_ptr()) };
#        |                                                 ^^^^^^^^^^^^ help: change this to: `c_oldpath`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2399]
src/guestfs.rs:14666:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14666 |         let r = unsafe { guestfs_rename(self.g, (&c_oldpath).as_ptr(), (&c_newpath).as_ptr()) };
#        |                                                                        ^^^^^^^^^^^^ help: change this to: `c_newpath`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2400]
src/guestfs.rs:14680:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14680 |         let r = unsafe { guestfs_resize2fs(self.g, (&c_device).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2401]
src/guestfs.rs:14693:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14693 |         let r = unsafe { guestfs_resize2fs_M(self.g, (&c_device).as_ptr()) };
#        |                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2402]
src/guestfs.rs:14706:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14706 |         let r = unsafe { guestfs_resize2fs_size(self.g, (&c_device).as_ptr(), size) };
#        |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2403]
src/guestfs.rs:14719:45: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14719 |         let r = unsafe { guestfs_rm(self.g, (&c_path).as_ptr()) };
#        |                                             ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2404]
src/guestfs.rs:14732:47: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14732 |         let r = unsafe { guestfs_rm_f(self.g, (&c_path).as_ptr()) };
#        |                                               ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2405]
src/guestfs.rs:14745:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14745 |         let r = unsafe { guestfs_rm_rf(self.g, (&c_path).as_ptr()) };
#        |                                                ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2406]
src/guestfs.rs:14758:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14758 |         let r = unsafe { guestfs_rmdir(self.g, (&c_path).as_ptr()) };
#        |                                                ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2407]
src/guestfs.rs:14771:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14771 |         let r = unsafe { guestfs_rmmountpoint(self.g, (&c_exemptpath).as_ptr()) };
#        |                                                       ^^^^^^^^^^^^^^^ help: change this to: `c_exemptpath`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2408]
src/guestfs.rs:14786:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14786 | ...   let r = unsafe { guestfs_rsync_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawRsyncOptArgs::from(&optargs_cexpr)) as *con...
#        |                                                   ^^^^^^^^ help: change this to: `c_src`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2409]
src/guestfs.rs:14786:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14786 | ...   let r = unsafe { guestfs_rsync_argv(self.g, (&c_src).as_ptr(), (&c_dest).as_ptr(), &(RawRsyncOptArgs::from(&optargs_cexpr)) as *con...
#        |                                                                      ^^^^^^^^^ help: change this to: `c_dest`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2410]
src/guestfs.rs:14792:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  14792 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprRsyncOptArgs`
#       --> src/guestfs.rs:14792:14
#        |
#  14792 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2411]
src/guestfs.rs:14803:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14803 | ...   let r = unsafe { guestfs_rsync_in_argv(self.g, (&c_remote).as_ptr(), (&c_dest).as_ptr(), &(RawRsyncInOptArgs::from(&optargs_cexpr))...
#        |                                                      ^^^^^^^^^^^ help: change this to: `c_remote`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2412]
src/guestfs.rs:14803:78: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14803 | ...   let r = unsafe { guestfs_rsync_in_argv(self.g, (&c_remote).as_ptr(), (&c_dest).as_ptr(), &(RawRsyncInOptArgs::from(&optargs_cexpr))...
#        |                                                                            ^^^^^^^^^ help: change this to: `c_dest`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2413]
src/guestfs.rs:14809:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  14809 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprRsyncInOptArgs`
#       --> src/guestfs.rs:14809:14
#        |
#  14809 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2414]
src/guestfs.rs:14820:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14820 | ...   let r = unsafe { guestfs_rsync_out_argv(self.g, (&c_src).as_ptr(), (&c_remote).as_ptr(), &(RawRsyncOutOptArgs::from(&optargs_cexpr)...
#        |                                                       ^^^^^^^^ help: change this to: `c_src`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2415]
src/guestfs.rs:14820:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14820 | ...   let r = unsafe { guestfs_rsync_out_argv(self.g, (&c_src).as_ptr(), (&c_remote).as_ptr(), &(RawRsyncOutOptArgs::from(&optargs_cexpr)...
#        |                                                                          ^^^^^^^^^^^ help: change this to: `c_remote`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2416]
src/guestfs.rs:14826:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  14826 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprRsyncOutOptArgs`
#       --> src/guestfs.rs:14826:14
#        |
#  14826 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2417]
src/guestfs.rs:14835:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14835 |         let r = unsafe { guestfs_scrub_device(self.g, (&c_device).as_ptr()) };
#        |                                                       ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2418]
src/guestfs.rs:14848:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14848 |         let r = unsafe { guestfs_scrub_file(self.g, (&c_file).as_ptr()) };
#        |                                                     ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2419]
src/guestfs.rs:14861:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14861 |         let r = unsafe { guestfs_scrub_freespace(self.g, (&c_dir).as_ptr()) };
#        |                                                          ^^^^^^^^ help: change this to: `c_dir`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2420]
src/guestfs.rs:14876:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14876 | ...   let r = unsafe { guestfs_selinux_relabel_argv(self.g, (&c_specfile).as_ptr(), (&c_path).as_ptr(), &(RawSelinuxRelabelOptArgs::from(...
#        |                                                             ^^^^^^^^^^^^^ help: change this to: `c_specfile`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2421]
src/guestfs.rs:14876:87: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14876 | ...   let r = unsafe { guestfs_selinux_relabel_argv(self.g, (&c_specfile).as_ptr(), (&c_path).as_ptr(), &(RawSelinuxRelabelOptArgs::from(...
#        |                                                                                     ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2422]
src/guestfs.rs:14882:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  14882 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprSelinuxRelabelOptArgs`
#       --> src/guestfs.rs:14882:14
#        |
#  14882 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2423]
src/guestfs.rs:14889:35: warning: redundant closure
#        |
#  14889 |         let c_append = append.map(|s| ffi::CString::new(s)).transpose()?;
#        |                                   ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def2424]
src/guestfs.rs:14905:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14905 |         let r = unsafe { guestfs_set_attach_method(self.g, (&c_backend).as_ptr()) };
#        |                                                            ^^^^^^^^^^^^ help: change this to: `c_backend`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2425]
src/guestfs.rs:14930:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14930 |         let r = unsafe { guestfs_set_backend(self.g, (&c_backend).as_ptr()) };
#        |                                                      ^^^^^^^^^^^^ help: change this to: `c_backend`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2426]
src/guestfs.rs:14944:62: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14944 |         let r = unsafe { guestfs_set_backend_setting(self.g, (&c_name).as_ptr(), (&c_val).as_ptr()) };
#        |                                                              ^^^^^^^^^ help: change this to: `c_name`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2427]
src/guestfs.rs:14944:82: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14944 |         let r = unsafe { guestfs_set_backend_setting(self.g, (&c_name).as_ptr(), (&c_val).as_ptr()) };
#        |                                                                                  ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2428]
src/guestfs.rs:14957:46: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  14957 |         let mut c_settings = (&c_settings_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                              ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2429]
src/guestfs.rs:14960:63: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  14960 |         let r = unsafe { guestfs_set_backend_settings(self.g, (&c_settings).as_ptr() as *const *const c_char) };
#        |                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_settings).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2430]
src/guestfs.rs:14960:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  14960 |         let r = unsafe { guestfs_set_backend_settings(self.g, (&c_settings).as_ptr() as *const *const c_char) };
#        |                                                               ^^^^^^^^^^^^^ help: change this to: `c_settings`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2431]
src/guestfs.rs:14972:39: warning: redundant closure
#        |
#  14972 |         let c_cachedir = cachedir.map(|s| ffi::CString::new(s)).transpose()?;
#        |                                       ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def2432]
src/guestfs.rs:15002:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15002 | ...   let r = unsafe { guestfs_set_e2attrs_argv(self.g, (&c_file).as_ptr(), (&c_attrs).as_ptr(), &(RawSetE2attrsOptArgs::from(&optargs_ce...
#        |                                                         ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2433]
src/guestfs.rs:15002:79: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15002 | ...   let r = unsafe { guestfs_set_e2attrs_argv(self.g, (&c_file).as_ptr(), (&c_attrs).as_ptr(), &(RawSetE2attrsOptArgs::from(&optargs_ce...
#        |                                                                             ^^^^^^^^^^ help: change this to: `c_attrs`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2434]
src/guestfs.rs:15008:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  15008 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprSetE2attrsOptArgs`
#       --> src/guestfs.rs:15008:14
#        |
#  15008 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2435]
src/guestfs.rs:15017:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15017 |         let r = unsafe { guestfs_set_e2generation(self.g, (&c_file).as_ptr(), generation) };
#        |                                                           ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2436]
src/guestfs.rs:15031:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15031 |         let r = unsafe { guestfs_set_e2label(self.g, (&c_device).as_ptr(), (&c_label).as_ptr()) };
#        |                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2437]
src/guestfs.rs:15031:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15031 |         let r = unsafe { guestfs_set_e2label(self.g, (&c_device).as_ptr(), (&c_label).as_ptr()) };
#        |                                                                            ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2438]
src/guestfs.rs:15046:53: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15046 |         let r = unsafe { guestfs_set_e2uuid(self.g, (&c_device).as_ptr(), (&c_uuid).as_ptr()) };
#        |                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2439]
src/guestfs.rs:15046:75: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15046 |         let r = unsafe { guestfs_set_e2uuid(self.g, (&c_device).as_ptr(), (&c_uuid).as_ptr()) };
#        |                                                                           ^^^^^^^^^ help: change this to: `c_uuid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2440]
src/guestfs.rs:15060:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15060 |         let r = unsafe { guestfs_set_hv(self.g, (&c_hv).as_ptr()) };
#        |                                                 ^^^^^^^ help: change this to: `c_hv`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2441]
src/guestfs.rs:15073:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15073 |         let r = unsafe { guestfs_set_identifier(self.g, (&c_identifier).as_ptr()) };
#        |                                                         ^^^^^^^^^^^^^^^ help: change this to: `c_identifier`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2442]
src/guestfs.rs:15087:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15087 |         let r = unsafe { guestfs_set_label(self.g, (&c_mountable).as_ptr(), (&c_label).as_ptr()) };
#        |                                                    ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2443]
src/guestfs.rs:15087:77: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15087 |         let r = unsafe { guestfs_set_label(self.g, (&c_mountable).as_ptr(), (&c_label).as_ptr()) };
#        |                                                                             ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2444]
src/guestfs.rs:15102:82: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15102 |         let r = unsafe { guestfs_set_libvirt_requested_credential(self.g, index, (&c_cred).as_ptr(), c_cred_len) };
#        |                                                                                  ^^^^^^^^^ help: change this to: `c_cred`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2445]
src/guestfs.rs:15114:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  15114 |         let mut c_creds = (&c_creds_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                        ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2446]
src/guestfs.rs:15117:76: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  15117 |         let r = unsafe { guestfs_set_libvirt_supported_credentials(self.g, (&c_creds).as_ptr() as *const *const c_char) };
#        |                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_creds).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2447]
src/guestfs.rs:15117:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15117 |         let r = unsafe { guestfs_set_libvirt_supported_credentials(self.g, (&c_creds).as_ptr() as *const *const c_char) };
#        |                                                                            ^^^^^^^^^^ help: change this to: `c_creds`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2448]
src/guestfs.rs:15152:43: warning: redundant closure
#        |
#  15152 |         let c_searchpath = searchpath.map(|s| ffi::CString::new(s)).transpose()?;
#        |                                           ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def2449]
src/guestfs.rs:15180:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15180 |         let r = unsafe { guestfs_set_program(self.g, (&c_program).as_ptr()) };
#        |                                                      ^^^^^^^^^^^^ help: change this to: `c_program`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2450]
src/guestfs.rs:15191:27: warning: redundant closure
#        |
#  15191 |         let c_hv = hv.map(|s| ffi::CString::new(s)).transpose()?;
#        |                           ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def2451]
src/guestfs.rs:15240:35: warning: redundant closure
#        |
#  15240 |         let c_tmpdir = tmpdir.map(|s| ffi::CString::new(s)).transpose()?;
#        |                                   ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ffi::CString::new`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Error: CLIPPY_WARNING: [#def2452]
src/guestfs.rs:15269:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15269 |         let r = unsafe { guestfs_set_uuid(self.g, (&c_device).as_ptr(), (&c_uuid).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2453]
src/guestfs.rs:15269:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15269 |         let r = unsafe { guestfs_set_uuid(self.g, (&c_device).as_ptr(), (&c_uuid).as_ptr()) };
#        |                                                                         ^^^^^^^^^ help: change this to: `c_uuid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2454]
src/guestfs.rs:15283:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15283 |         let r = unsafe { guestfs_set_uuid_random(self.g, (&c_device).as_ptr()) };
#        |                                                          ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2455]
src/guestfs.rs:15308:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15308 |         let r = unsafe { guestfs_setcon(self.g, (&c_context).as_ptr()) };
#        |                                                 ^^^^^^^^^^^^ help: change this to: `c_context`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2456]
src/guestfs.rs:15323:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15323 |         let r = unsafe { guestfs_setxattr(self.g, (&c_xattr).as_ptr(), (&c_val).as_ptr(), vallen, (&c_path).as_ptr()) };
#        |                                                   ^^^^^^^^^^ help: change this to: `c_xattr`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2457]
src/guestfs.rs:15323:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15323 |         let r = unsafe { guestfs_setxattr(self.g, (&c_xattr).as_ptr(), (&c_val).as_ptr(), vallen, (&c_path).as_ptr()) };
#        |                                                                        ^^^^^^^^ help: change this to: `c_val`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2458]
src/guestfs.rs:15323:99: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15323 |         let r = unsafe { guestfs_setxattr(self.g, (&c_xattr).as_ptr(), (&c_val).as_ptr(), vallen, (&c_path).as_ptr()) };
#        |                                                                                                   ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2459]
src/guestfs.rs:15338:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  15338 |         let mut c_lines = (&c_lines_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                        ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2460]
src/guestfs.rs:15341:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15341 |         let r = unsafe { guestfs_sfdisk(self.g, (&c_device).as_ptr(), cyls, heads, sectors, (&c_lines).as_ptr() as *const *const c_char) };
#        |                                                 ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2461]
src/guestfs.rs:15341:93: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  15341 |         let r = unsafe { guestfs_sfdisk(self.g, (&c_device).as_ptr(), cyls, heads, sectors, (&c_lines).as_ptr() as *const *const c_char) };
#        |                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_lines).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2462]
src/guestfs.rs:15341:93: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15341 |         let r = unsafe { guestfs_sfdisk(self.g, (&c_device).as_ptr(), cyls, heads, sectors, (&c_lines).as_ptr() as *const *const c_char) };
#        |                                                                                             ^^^^^^^^^^ help: change this to: `c_lines`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2463]
src/guestfs.rs:15356:40: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
#        |
#  15356 |         let mut c_lines = (&c_lines_v).into_iter().map(|v| v.as_ptr()).collect::<Vec<_>>();
#        |                                        ^^^^^^^^^ help: call directly: `iter`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Error: CLIPPY_WARNING: [#def2464]
src/guestfs.rs:15359:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15359 |         let r = unsafe { guestfs_sfdiskM(self.g, (&c_device).as_ptr(), (&c_lines).as_ptr() as *const *const c_char) };
#        |                                                  ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2465]
src/guestfs.rs:15359:72: warning: casting raw pointers to the same type and constness is unnecessary (`*const *const i8` -> `*const *const i8`)
#        |
#  15359 |         let r = unsafe { guestfs_sfdiskM(self.g, (&c_device).as_ptr(), (&c_lines).as_ptr() as *const *const c_char) };
#        |                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&c_lines).as_ptr()`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Error: CLIPPY_WARNING: [#def2466]
src/guestfs.rs:15359:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15359 |         let r = unsafe { guestfs_sfdiskM(self.g, (&c_device).as_ptr(), (&c_lines).as_ptr() as *const *const c_char) };
#        |                                                                        ^^^^^^^^^^ help: change this to: `c_lines`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2467]
src/guestfs.rs:15375:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15375 |         let r = unsafe { guestfs_sfdisk_N(self.g, (&c_device).as_ptr(), partnum, cyls, heads, sectors, (&c_line).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2468]
src/guestfs.rs:15375:104: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15375 |         let r = unsafe { guestfs_sfdisk_N(self.g, (&c_device).as_ptr(), partnum, cyls, heads, sectors, (&c_line).as_ptr()) };
#        |                                                                                                        ^^^^^^^^^ help: change this to: `c_line`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2469]
src/guestfs.rs:15389:63: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15389 |         let r = unsafe { guestfs_sfdisk_disk_geometry(self.g, (&c_device).as_ptr()) };
#        |                                                               ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2470]
src/guestfs.rs:15405:65: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15405 |         let r = unsafe { guestfs_sfdisk_kernel_geometry(self.g, (&c_device).as_ptr()) };
#        |                                                                 ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2471]
src/guestfs.rs:15421:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15421 |         let r = unsafe { guestfs_sfdisk_l(self.g, (&c_device).as_ptr()) };
#        |                                                   ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2472]
src/guestfs.rs:15437:45: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15437 |         let r = unsafe { guestfs_sh(self.g, (&c_command).as_ptr()) };
#        |                                             ^^^^^^^^^^^^ help: change this to: `c_command`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2473]
src/guestfs.rs:15453:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15453 |         let r = unsafe { guestfs_sh_lines(self.g, (&c_command).as_ptr()) };
#        |                                                   ^^^^^^^^^^^^ help: change this to: `c_command`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2474]
src/guestfs.rs:15471:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15471 |         let r = unsafe { guestfs_sh_out(self.g, (&c_command).as_ptr(), (&c_output).as_ptr()) };
#        |                                                 ^^^^^^^^^^^^ help: change this to: `c_command`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2475]
src/guestfs.rs:15471:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15471 |         let r = unsafe { guestfs_sh_out(self.g, (&c_command).as_ptr(), (&c_output).as_ptr()) };
#        |                                                                        ^^^^^^^^^^^ help: change this to: `c_output`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2476]
src/guestfs.rs:15507:47: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15507 |         let r = unsafe { guestfs_stat(self.g, (&c_path).as_ptr()) };
#        |                                               ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2477]
src/guestfs.rs:15524:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15524 |         let r = unsafe { guestfs_statns(self.g, (&c_path).as_ptr()) };
#        |                                                 ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2478]
src/guestfs.rs:15541:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15541 |         let r = unsafe { guestfs_statvfs(self.g, (&c_path).as_ptr()) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2479]
src/guestfs.rs:15558:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15558 |         let r = unsafe { guestfs_strings(self.g, (&c_path).as_ptr()) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2480]
src/guestfs.rs:15576:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15576 |         let r = unsafe { guestfs_strings_e(self.g, (&c_encoding).as_ptr(), (&c_path).as_ptr()) };
#        |                                                    ^^^^^^^^^^^^^ help: change this to: `c_encoding`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2481]
src/guestfs.rs:15576:76: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15576 |         let r = unsafe { guestfs_strings_e(self.g, (&c_encoding).as_ptr(), (&c_path).as_ptr()) };
#        |                                                                            ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2482]
src/guestfs.rs:15594:57: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15594 |         let r = unsafe { guestfs_swapoff_device(self.g, (&c_device).as_ptr()) };
#        |                                                         ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2483]
src/guestfs.rs:15607:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15607 |         let r = unsafe { guestfs_swapoff_file(self.g, (&c_file).as_ptr()) };
#        |                                                       ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2484]
src/guestfs.rs:15620:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15620 |         let r = unsafe { guestfs_swapoff_label(self.g, (&c_label).as_ptr()) };
#        |                                                        ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2485]
src/guestfs.rs:15633:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15633 |         let r = unsafe { guestfs_swapoff_uuid(self.g, (&c_uuid).as_ptr()) };
#        |                                                       ^^^^^^^^^ help: change this to: `c_uuid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2486]
src/guestfs.rs:15646:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15646 |         let r = unsafe { guestfs_swapon_device(self.g, (&c_device).as_ptr()) };
#        |                                                        ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2487]
src/guestfs.rs:15659:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15659 |         let r = unsafe { guestfs_swapon_file(self.g, (&c_file).as_ptr()) };
#        |                                                      ^^^^^^^^^ help: change this to: `c_file`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2488]
src/guestfs.rs:15672:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15672 |         let r = unsafe { guestfs_swapon_label(self.g, (&c_label).as_ptr()) };
#        |                                                       ^^^^^^^^^^ help: change this to: `c_label`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2489]
src/guestfs.rs:15685:54: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15685 |         let r = unsafe { guestfs_swapon_uuid(self.g, (&c_uuid).as_ptr()) };
#        |                                                      ^^^^^^^^^ help: change this to: `c_uuid`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2490]
src/guestfs.rs:15710:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15710 | ...   let r = unsafe { guestfs_syslinux_argv(self.g, (&c_device).as_ptr(), &(RawSyslinuxOptArgs::from(&optargs_cexpr)) as *const RawSysli...
#        |                                                      ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2491]
src/guestfs.rs:15724:47: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15724 |         let r = unsafe { guestfs_tail(self.g, (&c_path).as_ptr()) };
#        |                                               ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2492]
src/guestfs.rs:15741:58: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15741 |         let r = unsafe { guestfs_tail_n(self.g, nrlines, (&c_path).as_ptr()) };
#        |                                                          ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2493]
src/guestfs.rs:15760:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15760 | ...   let r = unsafe { guestfs_tar_in_opts_argv(self.g, (&c_tarfile).as_ptr(), (&c_directory).as_ptr(), &(RawTarInOptArgs::from(&optargs_...
#        |                                                         ^^^^^^^^^^^^ help: change this to: `c_tarfile`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2494]
src/guestfs.rs:15760:82: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15760 | ...   let r = unsafe { guestfs_tar_in_opts_argv(self.g, (&c_tarfile).as_ptr(), (&c_directory).as_ptr(), &(RawTarInOptArgs::from(&optargs_...
#        |                                                                                ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2495]
src/guestfs.rs:15777:60: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15777 | ...   let r = unsafe { guestfs_tar_out_opts_argv(self.g, (&c_directory).as_ptr(), (&c_tarfile).as_ptr(), &(RawTarOutOptArgs::from(&optarg...
#        |                                                          ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2496]
src/guestfs.rs:15777:85: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15777 | ...   let r = unsafe { guestfs_tar_out_opts_argv(self.g, (&c_directory).as_ptr(), (&c_tarfile).as_ptr(), &(RawTarOutOptArgs::from(&optarg...
#        |                                                                                   ^^^^^^^^^^^^ help: change this to: `c_tarfile`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2497]
src/guestfs.rs:15793:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15793 |         let r = unsafe { guestfs_tgz_in(self.g, (&c_tarball).as_ptr(), (&c_directory).as_ptr()) };
#        |                                                 ^^^^^^^^^^^^ help: change this to: `c_tarball`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2498]
src/guestfs.rs:15793:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15793 |         let r = unsafe { guestfs_tgz_in(self.g, (&c_tarball).as_ptr(), (&c_directory).as_ptr()) };
#        |                                                                        ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2499]
src/guestfs.rs:15808:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15808 |         let r = unsafe { guestfs_tgz_out(self.g, (&c_directory).as_ptr(), (&c_tarball).as_ptr()) };
#        |                                                  ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2500]
src/guestfs.rs:15808:75: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15808 |         let r = unsafe { guestfs_tgz_out(self.g, (&c_directory).as_ptr(), (&c_tarball).as_ptr()) };
#        |                                                                           ^^^^^^^^^^^^ help: change this to: `c_tarball`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2501]
src/guestfs.rs:15822:48: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15822 |         let r = unsafe { guestfs_touch(self.g, (&c_path).as_ptr()) };
#        |                                                ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2502]
src/guestfs.rs:15835:51: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15835 |         let r = unsafe { guestfs_truncate(self.g, (&c_path).as_ptr()) };
#        |                                                   ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2503]
src/guestfs.rs:15848:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15848 |         let r = unsafe { guestfs_truncate_size(self.g, (&c_path).as_ptr(), size) };
#        |                                                        ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2504]
src/guestfs.rs:15862:55: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15862 | ...   let r = unsafe { guestfs_tune2fs_argv(self.g, (&c_device).as_ptr(), &(RawTune2fsOptArgs::from(&optargs_cexpr)) as *const RawTune2fs...
#        |                                                     ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2505]
src/guestfs.rs:15876:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15876 |         let r = unsafe { guestfs_tune2fs_l(self.g, (&c_device).as_ptr()) };
#        |                                                    ^^^^^^^^^^^ help: change this to: `c_device`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2506]
src/guestfs.rs:15894:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15894 |         let r = unsafe { guestfs_txz_in(self.g, (&c_tarball).as_ptr(), (&c_directory).as_ptr()) };
#        |                                                 ^^^^^^^^^^^^ help: change this to: `c_tarball`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2507]
src/guestfs.rs:15894:72: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15894 |         let r = unsafe { guestfs_txz_in(self.g, (&c_tarball).as_ptr(), (&c_directory).as_ptr()) };
#        |                                                                        ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2508]
src/guestfs.rs:15909:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15909 |         let r = unsafe { guestfs_txz_out(self.g, (&c_directory).as_ptr(), (&c_tarball).as_ptr()) };
#        |                                                  ^^^^^^^^^^^^^^ help: change this to: `c_directory`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2509]
src/guestfs.rs:15909:75: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15909 |         let r = unsafe { guestfs_txz_out(self.g, (&c_directory).as_ptr(), (&c_tarball).as_ptr()) };
#        |                                                                           ^^^^^^^^^^^^ help: change this to: `c_tarball`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2510]
src/guestfs.rs:15935:59: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15935 | ...   let r = unsafe { guestfs_umount_opts_argv(self.g, (&c_pathordevice).as_ptr(), &(RawUmountOptArgs::from(&optargs_cexpr)) as *const R...
#        |                                                         ^^^^^^^^^^^^^^^^^ help: change this to: `c_pathordevice`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2511]
src/guestfs.rs:15940:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  15940 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprUmountOptArgs`
#       --> src/guestfs.rs:15940:14
#        |
#  15940 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2512]
src/guestfs.rs:15964:9: warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
#        |
#  15964 |         drop(optargs_cexpr);
#        |         ^^^^^^^^^^^^^^^^^^^
#        |
#  note: argument has type `guestfs::CExprUmountLocalOptArgs`
#       --> src/guestfs.rs:15964:14
#        |
#  15964 |         drop(optargs_cexpr);
#        |              ^^^^^^^^^^^^^
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop

Error: CLIPPY_WARNING: [#def2513]
src/guestfs.rs:15974:49: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15974 |         let r = unsafe { guestfs_upload(self.g, (&c_filename).as_ptr(), (&c_remotefilename).as_ptr()) };
#        |                                                 ^^^^^^^^^^^^^ help: change this to: `c_filename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2514]
src/guestfs.rs:15974:73: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15974 |         let r = unsafe { guestfs_upload(self.g, (&c_filename).as_ptr(), (&c_remotefilename).as_ptr()) };
#        |                                                                         ^^^^^^^^^^^^^^^^^^^ help: change this to: `c_remotefilename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2515]
src/guestfs.rs:15989:56: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15989 |         let r = unsafe { guestfs_upload_offset(self.g, (&c_filename).as_ptr(), (&c_remotefilename).as_ptr(), offset) };
#        |                                                        ^^^^^^^^^^^^^ help: change this to: `c_filename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2516]
src/guestfs.rs:15989:80: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  15989 |         let r = unsafe { guestfs_upload_offset(self.g, (&c_filename).as_ptr(), (&c_remotefilename).as_ptr(), offset) };
#        |                                                                                ^^^^^^^^^^^^^^^^^^^ help: change this to: `c_remotefilename`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2517]
src/guestfs.rs:16014:50: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  16014 |         let r = unsafe { guestfs_utimens(self.g, (&c_path).as_ptr(), atsecs, atnsecs, mtsecs, mtnsecs) };
#        |                                                  ^^^^^^^^^ help: change this to: `c_path`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def2518]
src/guestfs.rs:16057:52: warning: this expression borrows a value the compiler would automatically borrow
#        |
#  16057 |         let r = unsafe { guestfs_vfs_label(self.g, (&c_mountable).as_ptr()) };
#        |                                                    ^^^^^^^^^^^^^^ help: change this to: `c_mountable`
#        |
#        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-64.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibguestfs-1.55.9-1.fc43
store-results-to/tmp/tmpn6t8nl8q/libguestfs-1.55.9-1.fc43.tar.xz
time-created2025-04-25 14:09:37
time-finished2025-04-25 14:20:23
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpn6t8nl8q/libguestfs-1.55.9-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpn6t8nl8q/libguestfs-1.55.9-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9