libnbd-1.23.9-1.fc44

List of Findings

Error: SHELLCHECK_WARNING: [#def1]
/usr/bin/nbdsh:25:6: warning[SC2194]: This word is constant. Did you forget the $ on a variable?
#   23|   # this hack to Darwin only so it doesn't cause potential security
#   24|   # issues on normal platforms.
#   25|-> case "linux-gnu" in
#   26|       darwin*)
#   27|   	if test -z "$DYLD_LIBRARY_PATH" && test -n "$_DYLD_LIBRARY_PATH"; then

Error: SHELLCHECK_WARNING: [#def2]
/usr/bin/nbdsh:37:10: warning[SC3038]: In POSIX sh, exec flags are undefined.
#   35|   # and above, and not part of POSIX).
#   36|   if /bin/sh -c 'exec -a test true' 2>/dev/null; then
#   37|->     exec -a nbdsh /usr/bin/python3 -mnbd "$@"
#   38|   else
#   39|       exec          /usr/bin/python3 -mnbd "$@"

Error: CPPCHECK_WARNING (CWE-476): [#def3]
libnbd-1.23.9/common/utils/const-string-vector.h:40: error[ctunullpointer]: Null pointer dereference: key
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_VECTOR_TYPE (const_string_vector, const char *);
#   41|   
#   42|   #endif /* CONST_STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libnbd-1.23.9/common/utils/const-string-vector.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:162:1: enter_function: entry to ‘nbd_rw_create_subprocess’
libnbd-1.23.9/copy/nbd-ops.c:164:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:165:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:167:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:173:7: call_function: inlined call to ‘const_string_vector_append_array’ from ‘nbd_rw_create_subprocess’
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_VECTOR_TYPE (const_string_vector, const char *);
#   41|   
#   42|   #endif /* CONST_STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libnbd-1.23.9/common/utils/nbdkit-string.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_username(h)'
libnbd-1.23.9/lib/crypto.c:389:1: enter_function: entry to 'set_up_psk_credentials'
libnbd-1.23.9/lib/crypto.c:398:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/crypto.c:403:14: branch_false: ...to here
libnbd-1.23.9/lib/crypto.c:403:14: acquire_memory: allocated here
libnbd-1.23.9/lib/crypto.c:403:14: call_function: calling 'nbd_unlocked_get_tls_username' from 'set_up_psk_credentials'
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_VECTOR_TYPE (string, char);
#   41|   
#   42|   /* Append a formatted string to the end of string 's'.  Returns the

Error: CPPCHECK_WARNING (CWE-476): [#def6]
libnbd-1.23.9/common/utils/string-vector.h:40: error[ctunullpointer]: Null pointer dereference: key
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
libnbd-1.23.9/common/utils/string-vector.h:40:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'nbd_internal_socket(1, 1, 0, 0)'
libnbd-1.23.9/lib/lib/states.c:1778:1: enter_function: entry to 'nbd_internal_enter_STATE_CONNECT_SA_START'
libnbd-1.23.9/lib/lib/states.c:1786:7: call_function: calling 'enter_STATE_CONNECT_SA_START' from 'nbd_internal_enter_STATE_CONNECT_SA_START'
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libnbd-1.23.9/common/utils/string-vector.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
libnbd-1.23.9/lib/handle.c:462:1: enter_function: entry to 'nbd_unlocked_add_meta_context'
libnbd-1.23.9/lib/handle.c:466:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/handle.c:471:10: branch_false: ...to here
libnbd-1.23.9/lib/handle.c:471:10: acquire_memory: allocated here
libnbd-1.23.9/lib/handle.c:472:6: branch_false: following 'false' branch (when 'copy' is non-NULL)...
libnbd-1.23.9/lib/handle.c:477:7: branch_false: ...to here
libnbd-1.23.9/lib/handle.c:477:7: call_function: calling 'string_vector_append' from 'nbd_unlocked_add_meta_context'
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libnbd-1.23.9/common/utils/string-vector.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of 'get_path()'
libnbd-1.23.9/lib/utils.c:682:1: enter_function: entry to 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:695:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:702:3: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:704:6: branch_true: following 'true' branch...
libnbd-1.23.9/lib/utils.c:709:16: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:709:16: call_function: calling 'get_path' from 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:709:16: return_function: returning to 'nbd_internal_execvpe_init' from 'get_path'
libnbd-1.23.9/lib/utils.c:710:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:713:9: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:713:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:719:16: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:723:7: branch_true: following 'true' branch (when 'sys_path_element <= scan')...
libnbd-1.23.9/lib/utils.c:724:17: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:725:11: branch_true: following 'true' branch...
libnbd-1.23.9/lib/utils.c:732:12: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:732:12: branch_true: following 'true' branch (when 'sys_path_element == scan')...
libnbd-1.23.9/lib/utils.c:741:46: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:743:12: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:744:13: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:743:13: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:745:13: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:743:13: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:750:20: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:751:12: branch_false: following 'false' branch (when 'pathname' is non-NULL)...
libnbd-1.23.9/lib/utils.c:755:9: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:766:13: call_function: calling 'string_vector_append' from 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:766:13: return_function: returning to 'nbd_internal_execvpe_init' from 'string_vector_append'
libnbd-1.23.9/lib/utils.c:766:12: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:771:9: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:775:14: branch_true: following 'true' branch...
 branch_true: ...to here
libnbd-1.23.9/lib/utils.c:723:7: branch_true: following 'true' branch (when 'sys_path_element <= scan')...
libnbd-1.23.9/lib/utils.c:724:17: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:725:10: branch_true: following 'true' branch...
libnbd-1.23.9/lib/utils.c:732:12: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:732:12: branch_true: following 'true' branch (when 'sys_path_element == scan')...
libnbd-1.23.9/lib/utils.c:741:46: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:743:12: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:744:13: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:743:13: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:745:13: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:743:13: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:750:20: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:751:12: branch_false: following 'false' branch (when 'pathname' is non-NULL)...
libnbd-1.23.9/lib/utils.c:755:9: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:766:13: call_function: calling 'string_vector_append' from 'nbd_internal_execvpe_init'
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libnbd-1.23.9/common/utils/string-vector.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of 'new_var'
libnbd-1.23.9/lib/lib/states.c:1778:1: enter_function: entry to 'nbd_internal_enter_STATE_CONNECT_SA_START'
libnbd-1.23.9/lib/lib/states.c:1786:7: call_function: calling 'enter_STATE_CONNECT_SA_START' from 'nbd_internal_enter_STATE_CONNECT_SA_START'
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libnbd-1.23.9/common/utils/string-vector.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of 'pathname'
libnbd-1.23.9/lib/utils.c:682:1: enter_function: entry to 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:695:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:702:3: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:704:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:777:16: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:777:16: acquire_memory: allocated here
libnbd-1.23.9/lib/utils.c:778:8: branch_false: following 'false' branch (when 'pathname' is non-NULL)...
libnbd-1.23.9/lib/utils.c:781:9: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:781:9: call_function: calling 'string_vector_append' from 'nbd_internal_execvpe_init'
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libnbd-1.23.9/common/utils/string-vector.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of 'sys_path_element'
libnbd-1.23.9/lib/utils.c:682:1: enter_function: entry to 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:695:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:702:3: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:704:6: branch_true: following 'true' branch...
libnbd-1.23.9/lib/utils.c:709:16: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:709:16: call_function: calling 'get_path' from 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:709:16: return_function: returning to 'nbd_internal_execvpe_init' from 'get_path'
libnbd-1.23.9/lib/utils.c:710:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:713:9: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:713:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:719:16: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:723:7: branch_true: following 'true' branch (when 'sys_path_element <= scan')...
libnbd-1.23.9/lib/utils.c:724:17: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:732:12: branch_true: following 'true' branch (when 'sys_path_element == scan')...
libnbd-1.23.9/lib/utils.c:741:46: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:743:12: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:744:13: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:743:13: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:745:13: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:743:13: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:750:20: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:751:12: branch_false: following 'false' branch (when 'pathname' is non-NULL)...
libnbd-1.23.9/lib/utils.c:755:9: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:766:13: call_function: calling 'string_vector_append' from 'nbd_internal_execvpe_init'
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libnbd-1.23.9/common/utils/string-vector.h:40:1: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
libnbd-1.23.9/info/show.c:318:1: enter_function: entry to ‘collect_context’
libnbd-1.23.9/info/show.c:323:10: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:324:6: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libnbd-1.23.9/info/show.c:324:23: branch_false: ...to here
libnbd-1.23.9/info/show.c:324:23: call_function: calling ‘string_vector_append’ from ‘collect_context’
#   38|   #include "vector.h"
#   39|   
#   40|-> DEFINE_POINTER_VECTOR_TYPE (string_vector, char *);
#   41|   
#   42|   #endif /* STRING_VECTOR_H */

Error: CPPCHECK_WARNING (CWE-457): [#def14]
libnbd-1.23.9/common/utils/vector.c:70: error[uninitvar]: Uninitialized variable: newbytes
#   68|         ADD_OVERFLOW (v->cap, t/2, &newcap) ||
#   69|         MUL_OVERFLOW (newcap, itemsize, &newbytes) ||
#   70|->       newbytes < reqbytes) {
#   71|       /* If that either overflows or is less than the minimum requested,
#   72|        * fall back to the requested capacity.

Error: CPPCHECK_WARNING (CWE-457): [#def15]
libnbd-1.23.9/common/utils/vector.c:70: error[uninitvar]: Uninitialized variable: reqbytes
#   68|         ADD_OVERFLOW (v->cap, t/2, &newcap) ||
#   69|         MUL_OVERFLOW (newcap, itemsize, &newbytes) ||
#   70|->       newbytes < reqbytes) {
#   71|       /* If that either overflows or is less than the minimum requested,
#   72|        * fall back to the requested capacity.

Error: CPPCHECK_WARNING (CWE-457): [#def16]
libnbd-1.23.9/common/utils/vector.c:74: error[uninitvar]: Uninitialized variable: reqcap
#   72|        * fall back to the requested capacity.
#   73|        */
#   74|->     newcap = reqcap;
#   75|       newbytes = reqbytes;
#   76|     }

Error: CPPCHECK_WARNING (CWE-457): [#def17]
libnbd-1.23.9/common/utils/vector.c:78: warning[uninitvar]: Uninitialized variable: newcap
#   76|     }
#   77|   
#   78|->   *newcap_r = newcap;
#   79|     *newbytes_r = newbytes;
#   80|     return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libnbd-1.23.9/common/utils/version.c:52:20: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_create()'
libnbd-1.23.9/common/utils/version.c:50:9: acquire_memory: allocated here
libnbd-1.23.9/common/utils/version.c:51:6: branch_true: following 'true' branch...
libnbd-1.23.9/common/utils/version.c:52:20: branch_true: ...to here
libnbd-1.23.9/common/utils/version.c:52:20: danger: 'nbd_create()' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   50|     nbd = nbd_create ();
#   51|     if (nbd) {
#   52|->     package_name = nbd_get_package_name (nbd);
#   53|       version = nbd_get_version (nbd);
#   54|       version_extra = nbd_get_version_extra (nbd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
libnbd-1.23.9/copy/blkhash.c:72:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:394:17: return_function: returning to ‘finish_blkhash’ from ‘compute_one_block_hash’
libnbd-1.23.9/copy/blkhash.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:436:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:442:18: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:443:6: branch_false: following ‘false’ branch (when ‘final_digest’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:448:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:451:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/blkhash.c:452:10: branch_true: ...to here
libnbd-1.23.9/copy/blkhash.c:452:10: acquire_resource: opened here
libnbd-1.23.9/copy/blkhash.c:453:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:461:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:465:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:468:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:472:3: call_function: inlined call to ‘blocks_reset’ from ‘finish_blkhash’
#   70|   };
#   71|   
#   72|-> DEFINE_VECTOR_TYPE(blocks, struct block);
#   73|   static blocks block_vec;
#   74|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libnbd-1.23.9/copy/blkhash.c:72:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:394:17: return_function: returning to ‘finish_blkhash’ from ‘compute_one_block_hash’
libnbd-1.23.9/copy/blkhash.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:436:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:442:18: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:443:6: branch_false: following ‘false’ branch (when ‘final_digest’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:448:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:451:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/blkhash.c:452:10: branch_true: ...to here
libnbd-1.23.9/copy/blkhash.c:452:10: acquire_memory: allocated here
libnbd-1.23.9/copy/blkhash.c:453:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:461:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:465:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:468:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:472:3: call_function: inlined call to ‘blocks_reset’ from ‘finish_blkhash’
#   70|   };
#   71|   
#   72|-> DEFINE_VECTOR_TYPE(blocks, struct block);
#   73|   static blocks block_vec;
#   74|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libnbd-1.23.9/copy/blkhash.c:179:7: warning[-Wanalyzer-malloc-leak]: leak of ‘b.ptr’
libnbd-1.23.9/copy/blkhash.c:311:1: enter_function: entry to ‘update_blkhash’
libnbd-1.23.9/copy/blkhash.c:315:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:317:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:329:6: branch_true: following ‘true’ branch (when ‘blkoffs != 0’)...
libnbd-1.23.9/copy/blkhash.c:330:18: branch_true: ...to here
libnbd-1.23.9/copy/blkhash.c:331:5: call_function: calling ‘set_incomplete_block’ from ‘update_blkhash’
#  177|   
#  178|     /* Create the digest handle. */
#  179|->   r = gnutls_hash_init (&dig, blkhash_alg);
#  180|     if (r < 0) {
#  181|       fprintf (stderr, "nbdcopy: gnutls_hash_init: %s\n", gnutls_strerror (r));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libnbd-1.23.9/copy/blkhash.c:179:7: warning[-Wanalyzer-malloc-leak]: leak of ‘zero_block’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:389:16: acquire_memory: allocated here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
#  177|   
#  178|     /* Create the digest handle. */
#  179|->   r = gnutls_hash_init (&dig, blkhash_alg);
#  180|     if (r < 0) {
#  181|       fprintf (stderr, "nbdcopy: gnutls_hash_init: %s\n", gnutls_strerror (r));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libnbd-1.23.9/copy/blkhash.c:188:5: warning[-Wanalyzer-malloc-leak]: leak of ‘b.ptr’
libnbd-1.23.9/copy/blkhash.c:311:1: enter_function: entry to ‘update_blkhash’
libnbd-1.23.9/copy/blkhash.c:315:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:317:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:329:6: branch_true: following ‘true’ branch (when ‘blkoffs != 0’)...
libnbd-1.23.9/copy/blkhash.c:330:18: branch_true: ...to here
libnbd-1.23.9/copy/blkhash.c:331:5: call_function: calling ‘set_incomplete_block’ from ‘update_blkhash’
#  186|     digest = malloc (alg_len);
#  187|     if (digest == NULL) {
#  188|->     perror ("nbdcopy: malloc");
#  189|       exit (EXIT_FAILURE);
#  190|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libnbd-1.23.9/copy/blkhash.c:188:5: warning[-Wanalyzer-malloc-leak]: leak of ‘zero_block’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:389:16: acquire_memory: allocated here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
#  186|     digest = malloc (alg_len);
#  187|     if (digest == NULL) {
#  188|->     perror ("nbdcopy: malloc");
#  189|       exit (EXIT_FAILURE);
#  190|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libnbd-1.23.9/copy/blkhash.c:192:7: warning[-Wanalyzer-malloc-leak]: leak of ‘b.ptr’
libnbd-1.23.9/copy/blkhash.c:311:1: enter_function: entry to ‘update_blkhash’
libnbd-1.23.9/copy/blkhash.c:315:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:317:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:329:6: branch_true: following ‘true’ branch (when ‘blkoffs != 0’)...
libnbd-1.23.9/copy/blkhash.c:330:18: branch_true: ...to here
libnbd-1.23.9/copy/blkhash.c:331:5: call_function: calling ‘set_incomplete_block’ from ‘update_blkhash’
#  190|     }
#  191|   
#  192|->   r = gnutls_hash (dig, buf, len);
#  193|     if (r < 0) {
#  194|       fprintf (stderr, "nbdcopy: gnutls_hash: %s\n", gnutls_strerror (r));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libnbd-1.23.9/copy/blkhash.c:192:7: warning[-Wanalyzer-malloc-leak]: leak of ‘digest’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
#  190|     }
#  191|   
#  192|->   r = gnutls_hash (dig, buf, len);
#  193|     if (r < 0) {
#  194|       fprintf (stderr, "nbdcopy: gnutls_hash: %s\n", gnutls_strerror (r));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libnbd-1.23.9/copy/blkhash.c:192:7: warning[-Wanalyzer-malloc-leak]: leak of ‘zero_block’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:389:16: acquire_memory: allocated here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
#  190|     }
#  191|   
#  192|->   r = gnutls_hash (dig, buf, len);
#  193|     if (r < 0) {
#  194|       fprintf (stderr, "nbdcopy: gnutls_hash: %s\n", gnutls_strerror (r));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libnbd-1.23.9/copy/blkhash.c:198:3: warning[-Wanalyzer-malloc-leak]: leak of ‘digest’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
#  196|     }
#  197|   
#  198|->   gnutls_hash_deinit (dig, digest);
#  199|     return digest; /* caller must free */
#  200|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libnbd-1.23.9/copy/blkhash.c:198:3: warning[-Wanalyzer-malloc-leak]: leak of ‘zero_block’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:389:16: acquire_memory: allocated here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
#  196|     }
#  197|   
#  198|->   gnutls_hash_deinit (dig, digest);
#  199|     return digest; /* caller must free */
#  200|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libnbd-1.23.9/copy/blkhash.c:448:3: warning[-Wanalyzer-malloc-leak]: leak of ‘final_digest’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:394:17: return_function: returning to ‘finish_blkhash’ from ‘compute_one_block_hash’
libnbd-1.23.9/copy/blkhash.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:436:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:442:18: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:442:18: acquire_memory: allocated here
libnbd-1.23.9/copy/blkhash.c:443:6: branch_false: following ‘false’ branch (when ‘final_digest’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:448:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:448:3: danger: ‘final_digest’ leaks here; was allocated at [(19)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/18)
#  446|     }
#  447|   
#  448|->   gnutls_hash_deinit (dig, final_digest);
#  449|   
#  450|     /* Print the final digest. */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
libnbd-1.23.9/copy/blkhash.c:464:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:394:17: return_function: returning to ‘finish_blkhash’ from ‘compute_one_block_hash’
libnbd-1.23.9/copy/blkhash.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:436:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:442:18: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:443:6: branch_false: following ‘false’ branch (when ‘final_digest’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:448:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:451:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/blkhash.c:452:10: branch_true: ...to here
libnbd-1.23.9/copy/blkhash.c:452:10: acquire_resource: opened here
libnbd-1.23.9/copy/blkhash.c:453:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:461:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:464:3: danger: ‘fp’ leaks here; was opened at [(23)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/22)
#  462|       fprintf (fp, "%02x", final_digest[i]);
#  463|     fprintf (fp, "\n");
#  464|->   fflush (fp);
#  465|     if (blkhash_file != NULL)
#  466|       fclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libnbd-1.23.9/copy/blkhash.c:464:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
libnbd-1.23.9/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
libnbd-1.23.9/copy/blkhash.c:394:17: return_function: returning to ‘finish_blkhash’ from ‘compute_one_block_hash’
libnbd-1.23.9/copy/blkhash.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:436:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:442:18: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:443:6: branch_false: following ‘false’ branch (when ‘final_digest’ is non-NULL)...
libnbd-1.23.9/copy/blkhash.c:448:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:451:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/blkhash.c:452:10: branch_true: ...to here
libnbd-1.23.9/copy/blkhash.c:452:10: acquire_memory: allocated here
libnbd-1.23.9/copy/blkhash.c:453:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/blkhash.c:461:3: branch_false: ...to here
libnbd-1.23.9/copy/blkhash.c:464:3: danger: ‘fp’ leaks here; was allocated at [(23)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/22)
#  462|       fprintf (fp, "%02x", final_digest[i]);
#  463|     fprintf (fp, "\n");
#  464|->   fflush (fp);
#  465|     if (blkhash_file != NULL)
#  466|       fclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libnbd-1.23.9/copy/file-ops.c:227:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/file-ops.c:601:1: enter_function: entry to ‘file_allocate_space’
libnbd-1.23.9/copy/file-ops.c:621:9: acquire_memory: allocated here
libnbd-1.23.9/copy/file-ops.c:622:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
 branch_false: ...to here
libnbd-1.23.9/copy/file-ops.c:627:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/file-ops.c:628:5: branch_true: ...to here
libnbd-1.23.9/copy/file-ops.c:628:5: call_function: calling ‘file_synch_write’ from ‘file_allocate_space’
#  225|      * (asynchronously).
#  226|      */
#  227|->   if (sync_file_range (fd, offset, len, SYNC_FILE_RANGE_WRITE) == -1) {
#  228|       fprintf (stderr, "%s: sync_file_range: cache=none: "
#  229|                "starting eviction: %m", prog);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libnbd-1.23.9/copy/file-ops.c:239:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/file-ops.c:601:1: enter_function: entry to ‘file_allocate_space’
libnbd-1.23.9/copy/file-ops.c:621:9: acquire_memory: allocated here
libnbd-1.23.9/copy/file-ops.c:622:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
 branch_false: ...to here
libnbd-1.23.9/copy/file-ops.c:627:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/file-ops.c:628:5: branch_true: ...to here
libnbd-1.23.9/copy/file-ops.c:628:5: call_function: calling ‘file_synch_write’ from ‘file_allocate_space’
#  237|     /* Evict the oldest window from the page cache (synchronously). */
#  238|     if (oldest.len > 0) {
#  239|->     if (sync_file_range (fd, oldest.offset, oldest.len,
#  240|                            SYNC_FILE_RANGE_WAIT_BEFORE |
#  241|                            SYNC_FILE_RANGE_WRITE |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libnbd-1.23.9/copy/file-ops.c:501:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/file-ops.c:601:1: enter_function: entry to ‘file_allocate_space’
libnbd-1.23.9/copy/file-ops.c:621:9: acquire_memory: allocated here
libnbd-1.23.9/copy/file-ops.c:622:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
 branch_false: ...to here
libnbd-1.23.9/copy/file-ops.c:627:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/file-ops.c:628:5: branch_true: ...to here
libnbd-1.23.9/copy/file-ops.c:628:5: call_function: calling ‘file_synch_write’ from ‘file_allocate_space’
#  499|   
#  500|     while (len > 0) {
#  501|->     r = pwrite (rwf->fd, data, len, offset);
#  502|       if (r == -1) {
#  503|         perror (rw->name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libnbd-1.23.9/copy/file-ops.c:503:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/file-ops.c:601:1: enter_function: entry to ‘file_allocate_space’
libnbd-1.23.9/copy/file-ops.c:621:9: acquire_memory: allocated here
libnbd-1.23.9/copy/file-ops.c:622:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
 branch_false: ...to here
libnbd-1.23.9/copy/file-ops.c:627:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/file-ops.c:628:5: branch_true: ...to here
libnbd-1.23.9/copy/file-ops.c:628:5: call_function: calling ‘file_synch_write’ from ‘file_allocate_space’
#  501|       r = pwrite (rwf->fd, data, len, offset);
#  502|       if (r == -1) {
#  503|->       perror (rw->name);
#  504|         exit (EXIT_FAILURE);
#  505|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libnbd-1.23.9/copy/main.c:585:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/copy/main.c:580:9: acquire_memory: allocated here
libnbd-1.23.9/copy/main.c:581:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/main.c:585:7: branch_false: ...to here
libnbd-1.23.9/copy/main.c:585:7: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  583|       exit (EXIT_FAILURE);
#  584|     }
#  585|->   r = nbd_is_uri (nbd, s);
#  586|     nbd_close (nbd);
#  587|     return r > 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libnbd-1.23.9/copy/multi-thread-copying.c:431:5: warning[-Wanalyzer-malloc-leak]: leak of ‘command’
libnbd-1.23.9/copy/multi-thread-copying.c:448:1: enter_function: entry to ‘create_command’
libnbd-1.23.9/copy/multi-thread-copying.c:452:13: acquire_memory: allocated here
libnbd-1.23.9/copy/multi-thread-copying.c:453:6: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
libnbd-1.23.9/copy/multi-thread-copying.c:458:3: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:461:6: branch_false: following ‘false’ branch (when ‘zero == 0’)...
libnbd-1.23.9/copy/multi-thread-copying.c:462:29: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:462:29: call_function: calling ‘create_buffer’ from ‘create_command’
#  429|     buffer = calloc (1, sizeof *buffer);
#  430|     if (buffer == NULL) {
#  431|->     perror ("calloc");
#  432|       exit (EXIT_FAILURE);
#  433|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libnbd-1.23.9/copy/multi-thread-copying.c:437:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
libnbd-1.23.9/copy/multi-thread-copying.c:429:12: acquire_memory: allocated here
libnbd-1.23.9/copy/multi-thread-copying.c:430:6: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
libnbd-1.23.9/copy/multi-thread-copying.c:435:18: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:436:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:437:5: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:437:5: danger: ‘buffer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  435|     buffer->data = malloc (len);
#  436|     if (buffer->data == NULL) {
#  437|->     perror ("malloc");
#  438|       exit (EXIT_FAILURE);
#  439|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libnbd-1.23.9/copy/multi-thread-copying.c:437:5: warning[-Wanalyzer-malloc-leak]: leak of ‘command’
libnbd-1.23.9/copy/multi-thread-copying.c:448:1: enter_function: entry to ‘create_command’
libnbd-1.23.9/copy/multi-thread-copying.c:452:13: acquire_memory: allocated here
libnbd-1.23.9/copy/multi-thread-copying.c:453:6: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
libnbd-1.23.9/copy/multi-thread-copying.c:458:3: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:461:6: branch_false: following ‘false’ branch (when ‘zero == 0’)...
libnbd-1.23.9/copy/multi-thread-copying.c:462:29: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:462:29: call_function: calling ‘create_buffer’ from ‘create_command’
#  435|     buffer->data = malloc (len);
#  436|     if (buffer->data == NULL) {
#  437|->     perror ("malloc");
#  438|       exit (EXIT_FAILURE);
#  439|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libnbd-1.23.9/copy/multi-thread-copying.c:476:24: warning[-Wanalyzer-malloc-leak]: leak of ‘create_subcommand(vp,  last_offset,  i - last_offset, 1)’
libnbd-1.23.9/copy/multi-thread-copying.c:503:1: enter_function: entry to ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:507:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:513:3: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:516:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: call_function: inlined call to ‘is_power_of_2’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:567:12: branch_false: following ‘false’ branch (when ‘last_is_zero == 0’)...
libnbd-1.23.9/copy/multi-thread-copying.c:539:12: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:584:8: branch_true: following ‘true’ branch (when ‘last_offset != i’)...
libnbd-1.23.9/copy/multi-thread-copying.c:585:10: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:585:10: branch_true: following ‘true’ branch (when ‘last_is_zero != 0’)...
libnbd-1.23.9/copy/multi-thread-copying.c:597:54: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:596:22: call_function: calling ‘create_subcommand’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:596:22: return_function: returning to ‘finished_read’ from ‘create_subcommand’
libnbd-1.23.9/copy/multi-thread-copying.c:476:24: danger: ‘create_subcommand(vp,  last_offset,  i - last_offset, 1)’ leaks here; was allocated at [(21)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/20)
#  474|                      bool zero)
#  475|   {
#  476|->   const uint64_t end = command->offset + command->slice.len;
#  477|     struct command *newcommand;
#  478|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libnbd-1.23.9/copy/multi-thread-copying.c:551:13: warning[-Wanalyzer-malloc-leak]: leak of ‘create_subcommand(vp,  last_offset,  i - last_offset, 0)’
libnbd-1.23.9/copy/multi-thread-copying.c:503:1: enter_function: entry to ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:507:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:513:3: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:516:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: call_function: inlined call to ‘is_power_of_2’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:538:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:540:20: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:540:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:545:12: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:545:12: branch_false: following ‘false’ branch (when ‘last_is_zero == 0’)...
libnbd-1.23.9/copy/multi-thread-copying.c:547:14: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:547:14: branch_true: following ‘true’ branch (when ‘last_offset != i’)...
libnbd-1.23.9/copy/multi-thread-copying.c:549:58: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:548:26: call_function: calling ‘create_subcommand’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:548:26: return_function: returning to ‘finished_read’ from ‘create_subcommand’
libnbd-1.23.9/copy/multi-thread-copying.c:551:13: danger: ‘create_subcommand(vp,  last_offset,  i - last_offset, 0)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
#  549|                                               last_offset, i - last_offset,
#  550|                                               false);
#  551|->             dst->ops->asynch_write (dst, newcommand,
#  552|                                       (nbd_completion_callback) {
#  553|                                         .callback = finished_command,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libnbd-1.23.9/copy/multi-thread-copying.c:589:9: warning[-Wanalyzer-malloc-leak]: leak of ‘create_subcommand(vp,  last_offset,  i - last_offset, 0)’
libnbd-1.23.9/copy/multi-thread-copying.c:503:1: enter_function: entry to ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:507:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:513:3: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:516:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: call_function: inlined call to ‘is_power_of_2’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:584:8: branch_true: following ‘true’ branch (when ‘last_offset != i’)...
libnbd-1.23.9/copy/multi-thread-copying.c:585:10: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:585:10: branch_false: following ‘false’ branch (when ‘last_is_zero == 0’)...
libnbd-1.23.9/copy/multi-thread-copying.c:587:54: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:586:22: call_function: calling ‘create_subcommand’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:586:22: return_function: returning to ‘finished_read’ from ‘create_subcommand’
libnbd-1.23.9/copy/multi-thread-copying.c:589:9: danger: ‘create_subcommand(vp,  last_offset,  i - last_offset, 0)’ leaks here; was allocated at [(19)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/18)
#  587|                                           last_offset, i - last_offset,
#  588|                                           false);
#  589|->         dst->ops->asynch_write (dst, newcommand,
#  590|                                   (nbd_completion_callback) {
#  591|                                     .callback = finished_command,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
libnbd-1.23.9/copy/multi-thread-copying.c:607:7: warning[-Wanalyzer-malloc-leak]: leak of ‘create_subcommand(vp,  i,  end - i, 0)’
libnbd-1.23.9/copy/multi-thread-copying.c:503:1: enter_function: entry to ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:507:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:513:3: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:516:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: call_function: inlined call to ‘is_power_of_2’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:537:14: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:605:8: branch_true: following ‘true’ branch (when ‘i != end’)...
libnbd-1.23.9/copy/multi-thread-copying.c:606:51: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:606:20: call_function: calling ‘create_subcommand’ from ‘finished_read’
libnbd-1.23.9/copy/multi-thread-copying.c:606:20: return_function: returning to ‘finished_read’ from ‘create_subcommand’
libnbd-1.23.9/copy/multi-thread-copying.c:607:7: danger: ‘create_subcommand(vp,  i,  end - i, 0)’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
#  605|       if (end - i > 0) {
#  606|         newcommand = create_subcommand (command, i, end - i, false);
#  607|->       dst->ops->asynch_write (dst, newcommand,
#  608|                                 (nbd_completion_callback) {
#  609|                                   .callback = finished_command,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libnbd-1.23.9/copy/multi-thread-copying.c:672:5: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libnbd-1.23.9/copy/multi-thread-copying.c:645:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:649:10: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:649:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:660:15: branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:661:10: acquire_memory: allocated here
libnbd-1.23.9/copy/multi-thread-copying.c:662:6: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
 branch_false: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:666:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/multi-thread-copying.c:669:8: branch_true: ...to here
libnbd-1.23.9/copy/multi-thread-copying.c:672:5: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  670|         len = data_size;
#  671|   
#  672|->     dst->ops->synch_write (dst, data, len, command->offset);
#  673|       command->slice.len -= len;
#  674|       command->offset += len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
libnbd-1.23.9/copy/nbd-ops.c:60:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   58|     struct nbd_handle *nbd;
#   59|   
#   60|->   nbd = nbd_create ();
#   61|     if (nbd == NULL) {
#   62|       fprintf (stderr, "%s: %s\n", prog, nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libnbd-1.23.9/copy/nbd-ops.c:62:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   60|     nbd = nbd_create ();
#   61|     if (nbd == NULL) {
#   62|->     fprintf (stderr, "%s: %s\n", prog, nbd_get_error ());
#   63|       exit (EXIT_FAILURE);
#   64|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libnbd-1.23.9/copy/nbd-ops.c:66:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/copy/nbd-ops.c:60:9: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:61:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/nbd-ops.c:66:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:66:3: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   64|     }
#   65|   
#   66|->   nbd_set_debug (nbd, verbose);
#   67|   
#   68|     /* Set the handle name for debugging.  We could use rwn->rw.name

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libnbd-1.23.9/copy/nbd-ops.c:66:3: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   64|     }
#   65|   
#   66|->   nbd_set_debug (nbd, verbose);
#   67|   
#   68|     /* Set the handle name for debugging.  We could use rwn->rw.name

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libnbd-1.23.9/copy/nbd-ops.c:80:7: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   78|                     rwn->d == READING ? "src" : "dst",
#   79|                     index) == -1) {
#   80|->       perror ("asprintf");
#   81|         exit (EXIT_FAILURE);
#   82|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
libnbd-1.23.9/copy/nbd-ops.c:83:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   81|         exit (EXIT_FAILURE);
#   82|       }
#   83|->     nbd_set_handle_name (nbd, name);
#   84|       free (name);
#   85|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libnbd-1.23.9/copy/nbd-ops.c:88:7: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   86|   
#   87|     if (extents && rwn->d == READING &&
#   88|->       nbd_add_meta_context (nbd, "base:allocation") == -1) {
#   89|       fprintf (stderr, "%s: %s\n", prog, nbd_get_error ());
#   90|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libnbd-1.23.9/copy/nbd-ops.c:89:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   87|     if (extents && rwn->d == READING &&
#   88|         nbd_add_meta_context (nbd, "base:allocation") == -1) {
#   89|->     fprintf (stderr, "%s: %s\n", prog, nbd_get_error ());
#   90|       exit (EXIT_FAILURE);
#   91|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libnbd-1.23.9/copy/nbd-ops.c:95:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rwn’
libnbd-1.23.9/copy/nbd-ops.c:145:1: enter_function: entry to ‘nbd_rw_create_uri’
libnbd-1.23.9/copy/nbd-ops.c:147:24: acquire_memory: allocated here
libnbd-1.23.9/copy/nbd-ops.c:148:6: branch_false: following ‘false’ branch (when ‘rwn’ is non-NULL)...
libnbd-1.23.9/copy/nbd-ops.c:150:3: branch_false: ...to here
libnbd-1.23.9/copy/nbd-ops.c:156:3: call_function: calling ‘open_one_nbd_handle’ from ‘nbd_rw_create_uri’
#   93|     switch (rwn->create_t) {
#   94|     case CREATE_URI:
#   95|->     nbd_set_uri_allow_local_file (nbd, true); /* Allow ?tls-psk-file. */
#   96|   
#   97|       if (nbd_connect_uri (nbd, rwn->uri) == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libnbd-1.23.9/copy/null-ops.c:50:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rw’
libnbd-1.23.9/copy/null-ops.c:43:24: acquire_memory: allocated here
libnbd-1.23.9/copy/null-ops.c:44:6: branch_false: following ‘false’ branch (when ‘rw’ is non-NULL)...
libnbd-1.23.9/copy/null-ops.c:46:3: branch_false: ...to here
libnbd-1.23.9/copy/null-ops.c:50:10: danger: ‘rw’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   48|     rw->rw.size = INT64_MAX;
#   49|     rw->rw.preferred = 4096;
#   50|->   return &rw->rw;
#   51|   }
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libnbd-1.23.9/copy/pipe-ops.c:49:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rwp’
libnbd-1.23.9/copy/pipe-ops.c:40:25: acquire_memory: allocated here
libnbd-1.23.9/copy/pipe-ops.c:41:6: branch_false: following ‘false’ branch (when ‘rwp’ is non-NULL)...
libnbd-1.23.9/copy/pipe-ops.c:44:3: branch_false: ...to here
libnbd-1.23.9/copy/pipe-ops.c:49:10: danger: ‘rwp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   47|     rwp->rw.preferred = 4096;
#   48|     rwp->fd = fd;
#   49|->   return &rwp->rw;
#   50|   }
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libnbd-1.23.9/copy/synch-copying.c:53:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/synch-copying.c:68:1: enter_function: entry to ‘synch_copying’
libnbd-1.23.9/copy/synch-copying.c:73:9: acquire_memory: allocated here
libnbd-1.23.9/copy/synch-copying.c:74:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/copy/synch-copying.c:82:10: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:82:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:103:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:104:19: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:116:19: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:119:13: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:119:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:120:11: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:121:11: call_function: calling ‘fill_dst_range_with_zeroes’ from ‘synch_copying’
#   51|   
#   52|     /* Try efficient zeroing. */
#   53|->   if (dst->ops->synch_zero (dst, offset, length, allocated))
#   54|       return;
#   55|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
libnbd-1.23.9/copy/synch-copying.c:61:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/synch-copying.c:68:1: enter_function: entry to ‘synch_copying’
libnbd-1.23.9/copy/synch-copying.c:73:9: acquire_memory: allocated here
libnbd-1.23.9/copy/synch-copying.c:74:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/copy/synch-copying.c:82:10: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:82:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:103:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:104:19: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:116:19: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:119:13: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:119:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:120:11: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:121:11: call_function: calling ‘fill_dst_range_with_zeroes’ from ‘synch_copying’
#   59|       size_t len = MIN (length, request_size);
#   60|   
#   61|->     dst->ops->synch_write (dst, buf, len, offset);
#   62|       length -= len;
#   63|       offset += len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libnbd-1.23.9/copy/synch-copying.c:85:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/synch-copying.c:73:9: acquire_memory: allocated here
libnbd-1.23.9/copy/synch-copying.c:74:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/copy/synch-copying.c:82:10: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:82:6: branch_true: following ‘true’ branch...
 branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:85:17: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   83|       size_t r;
#   84|   
#   85|->     while ((r = src->ops->synch_read (src, buf, request_size, offset)) > 0) {
#   86|         update_blkhash ((const char *) buf, offset, r);
#   87|         dst->ops->synch_write (dst, buf, r, offset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
libnbd-1.23.9/copy/synch-copying.c:112:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/synch-copying.c:73:9: acquire_memory: allocated here
libnbd-1.23.9/copy/synch-copying.c:74:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/copy/synch-copying.c:82:10: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:82:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:103:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:104:19: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:111:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:112:9: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:112:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  110|   
#  111|         if (extents)
#  112|->         src->ops->get_extents (src, 0, offset, count, &exts);
#  113|         else
#  114|           default_get_extents (src, 0, offset, count, &exts);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libnbd-1.23.9/copy/synch-copying.c:114:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/synch-copying.c:73:9: acquire_memory: allocated here
libnbd-1.23.9/copy/synch-copying.c:74:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/copy/synch-copying.c:82:10: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:82:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:103:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:104:19: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:111:10: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/synch-copying.c:114:9: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:114:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  112|           src->ops->get_extents (src, 0, offset, count, &exts);
#  113|         else
#  114|->         default_get_extents (src, 0, offset, count, &exts);
#  115|   
#  116|         for (i = 0; i < exts.len; ++i) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libnbd-1.23.9/copy/synch-copying.c:120:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/synch-copying.c:73:9: acquire_memory: allocated here
libnbd-1.23.9/copy/synch-copying.c:74:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/copy/synch-copying.c:82:10: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:82:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:103:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:104:19: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:116:19: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:119:13: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:119:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:120:11: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:120:11: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  118|   
#  119|           if (exts.ptr[i].zero) {
#  120|->           update_blkhash (NULL, offset, exts.ptr[i].length);
#  121|             fill_dst_range_with_zeroes(offset, exts.ptr[i].length, buf);
#  122|             offset += exts.ptr[i].length;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libnbd-1.23.9/copy/synch-copying.c:125:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/copy/synch-copying.c:73:9: acquire_memory: allocated here
libnbd-1.23.9/copy/synch-copying.c:74:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/copy/synch-copying.c:82:10: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:82:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:103:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:104:19: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:116:19: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:117:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/copy/synch-copying.c:119:13: branch_true: ...to here
libnbd-1.23.9/copy/synch-copying.c:119:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/copy/synch-copying.c:125:18: branch_false: ...to here
libnbd-1.23.9/copy/synch-copying.c:125:15: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  123|           }
#  124|           else /* data */ {
#  125|->           r = src->ops->synch_read (src, buf, exts.ptr[i].length, offset);
#  126|   
#  127|             /* These cases should never happen unless the file is

Error: CPPCHECK_WARNING (CWE-457): [#def64]
libnbd-1.23.9/dump/dump.c:386: error[uninitvar]: Uninitialized variable: last
#  384|           offset + i > 0 && /* first line is never squashed */
#  385|           offset + i + 16 < size && /* last line is never squashed */
#  386|->         memcmp (&buffer[i], last, 16) == 0;
#  387|         if (same) {
#  388|           if (!printed_splat) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libnbd-1.23.9/examples/aio-connect-read.c:54:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("hexdump -C", "w")’
libnbd-1.23.9/examples/aio-connect-read.c:39:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/aio-connect-read.c:45:3: branch_false: ...to here
libnbd-1.23.9/examples/aio-connect-read.c:47:8: acquire_memory: allocated here
libnbd-1.23.9/examples/aio-connect-read.c:48:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/aio-connect-read.c:52:11: branch_false: ...to here
libnbd-1.23.9/examples/aio-connect-read.c:54:3: danger: ‘popen("hexdump -C", "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   52|     fwrite (data->sector, SECTOR_SIZE, 1, pp);
#   53|     pclose (pp);
#   54|->   printf ("\n");
#   55|   
#   56|     /* Returning 1 from the callback automatically retires

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
libnbd-1.23.9/examples/aio-connect-read.c:85:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/aio-connect-read.c:70:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/aio-connect-read.c:76:9: branch_false: ...to here
libnbd-1.23.9/examples/aio-connect-read.c:76:9: acquire_memory: allocated here
libnbd-1.23.9/examples/aio-connect-read.c:77:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/aio-connect-read.c:85:7: branch_false: ...to here
libnbd-1.23.9/examples/aio-connect-read.c:85:7: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   83|      * This only starts the connection.
#   84|      */
#   85|->   if (nbd_aio_connect_unix (nbd, argv[1]) == -1) {
#   86|       fprintf (stderr, "%s\n", nbd_get_error ());
#   87|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
libnbd-1.23.9/examples/connect-benchmark.c:109:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/connect-benchmark.c:101:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/connect-benchmark.c:103:11: branch_false: ...to here
libnbd-1.23.9/examples/connect-benchmark.c:103:11: acquire_memory: allocated here
libnbd-1.23.9/examples/connect-benchmark.c:104:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/connect-benchmark.c:109:9: branch_false: ...to here
libnbd-1.23.9/examples/connect-benchmark.c:109:9: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  107|       }
#  108|   
#  109|->     if (nbd_connect_uri (nbd, uri) == -1) {
#  110|         fprintf (stderr, "%s\n", nbd_get_error ());
#  111|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libnbd-1.23.9/examples/connect-command.c:49:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/connect-command.c:19:9: acquire_memory: allocated here
libnbd-1.23.9/examples/connect-command.c:20:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/connect-command.c:26:9: branch_false: ...to here
libnbd-1.23.9/examples/connect-command.c:49:7: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   47|       NULL
#   48|     };
#   49|->   if (nbd_connect_command (nbd, args) == -1) {
#   50|       fprintf (stderr, "%s\n", nbd_get_error ());
#   51|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
libnbd-1.23.9/examples/connect-uri.c:49:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/connect-uri.c:32:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/connect-uri.c:39:9: branch_false: ...to here
libnbd-1.23.9/examples/connect-uri.c:39:9: acquire_memory: allocated here
libnbd-1.23.9/examples/connect-uri.c:40:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/connect-uri.c:49:7: branch_false: ...to here
libnbd-1.23.9/examples/connect-uri.c:49:7: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   47|      */
#   48|   #if LIBNBD_HAVE_NBD_SET_FULL_INFO
#   49|->   if (nbd_set_full_info (nbd, true) == -1) {
#   50|       fprintf (stderr, "%s\n", nbd_get_error ());
#   51|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libnbd-1.23.9/examples/encryption.c:78:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/encryption.c:63:1: enter_function: entry to ‘main’
libnbd-1.23.9/examples/encryption.c:68:3: call_function: calling ‘create_keys’ from ‘main’
libnbd-1.23.9/examples/encryption.c:68:3: return_function: returning to ‘main’ from ‘create_keys’
libnbd-1.23.9/examples/encryption.c:71:9: acquire_memory: allocated here
libnbd-1.23.9/examples/encryption.c:72:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/encryption.c:78:7: branch_false: ...to here
libnbd-1.23.9/examples/encryption.c:78:7: danger: ‘nbd_create()’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   76|   
#   77|     /* Enable TLS in the client. */
#   78|->   if (nbd_set_tls (nbd, LIBNBD_TLS_REQUIRE) == -1) {
#   79|       fprintf (stderr, "%s\n", nbd_get_error ());
#   80|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
libnbd-1.23.9/examples/fetch-first-sector.c:42:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/fetch-first-sector.c:27:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/fetch-first-sector.c:33:9: branch_false: ...to here
libnbd-1.23.9/examples/fetch-first-sector.c:33:9: acquire_memory: allocated here
libnbd-1.23.9/examples/fetch-first-sector.c:34:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/fetch-first-sector.c:42:7: branch_false: ...to here
libnbd-1.23.9/examples/fetch-first-sector.c:42:7: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   40|      * Unix domain socket.
#   41|      */
#   42|->   if (nbd_connect_unix (nbd, argv[1]) == -1) {
#   43|       fprintf (stderr, "%s\n", nbd_get_error ());
#   44|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libnbd-1.23.9/examples/fetch-first-sector.c:65:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("hexdump -C", "w")’
libnbd-1.23.9/examples/fetch-first-sector.c:27:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/fetch-first-sector.c:33:9: branch_false: ...to here
libnbd-1.23.9/examples/fetch-first-sector.c:34:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/fetch-first-sector.c:42:7: branch_false: ...to here
libnbd-1.23.9/examples/fetch-first-sector.c:42:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/fetch-first-sector.c:48:7: branch_false: ...to here
libnbd-1.23.9/examples/fetch-first-sector.c:48:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/fetch-first-sector.c:54:3: branch_false: ...to here
libnbd-1.23.9/examples/fetch-first-sector.c:57:8: acquire_memory: allocated here
libnbd-1.23.9/examples/fetch-first-sector.c:58:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/fetch-first-sector.c:62:3: branch_false: ...to here
libnbd-1.23.9/examples/fetch-first-sector.c:65:3: danger: ‘popen("hexdump -C", "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   63|     pclose (pp);
#   64|   
#   65|->   exit (EXIT_SUCCESS);
#   66|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libnbd-1.23.9/examples/get-size.c:38:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/get-size.c:23:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/get-size.c:29:9: branch_false: ...to here
libnbd-1.23.9/examples/get-size.c:29:9: acquire_memory: allocated here
libnbd-1.23.9/examples/get-size.c:30:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/get-size.c:38:7: branch_false: ...to here
libnbd-1.23.9/examples/get-size.c:38:7: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   36|      * Unix domain socket.
#   37|      */
#   38|->   if (nbd_connect_unix (nbd, argv[1]) == -1) {
#   39|       fprintf (stderr, "%s\n", nbd_get_error ());
#   40|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libnbd-1.23.9/examples/glib-main-loop.c:214:25: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/glib-main-loop.c:276:1: enter_function: entry to ‘main’
libnbd-1.23.9/examples/glib-main-loop.c:285:9: acquire_memory: allocated here
libnbd-1.23.9/examples/glib-main-loop.c:286:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/glib-main-loop.c:290:10: branch_false: ...to here
libnbd-1.23.9/examples/glib-main-loop.c:291:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/glib-main-loop.c:297:11: branch_false: ...to here
libnbd-1.23.9/examples/glib-main-loop.c:297:11: call_function: calling ‘create_libnbd_gsource’ from ‘main’
#  212|   
#  213|     source =
#  214|->     (struct NBDSource *)g_source_new (&nbd_source_funcs, sizeof *source);
#  215|     source->nbd = nbd;
#  216|     source->debug = nbd_get_debug (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libnbd-1.23.9/examples/glib-main-loop.c:216:19: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/glib-main-loop.c:276:1: enter_function: entry to ‘main’
libnbd-1.23.9/examples/glib-main-loop.c:285:9: acquire_memory: allocated here
libnbd-1.23.9/examples/glib-main-loop.c:286:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/glib-main-loop.c:290:10: branch_false: ...to here
libnbd-1.23.9/examples/glib-main-loop.c:291:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/glib-main-loop.c:297:11: branch_false: ...to here
libnbd-1.23.9/examples/glib-main-loop.c:297:11: call_function: calling ‘create_libnbd_gsource’ from ‘main’
#  214|       (struct NBDSource *)g_source_new (&nbd_source_funcs, sizeof *source);
#  215|     source->nbd = nbd;
#  216|->   source->debug = nbd_get_debug (nbd);
#  217|     source->fd = -1;
#  218|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libnbd-1.23.9/examples/glib-main-loop.c:290:10: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/glib-main-loop.c:285:9: acquire_memory: allocated here
libnbd-1.23.9/examples/glib-main-loop.c:286:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/glib-main-loop.c:290:10: branch_false: ...to here
libnbd-1.23.9/examples/glib-main-loop.c:290:10: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  288|       exit (EXIT_FAILURE);
#  289|     }
#  290|->   dest = nbd_create ();
#  291|     if (!dest) {
#  292|       fprintf (stderr, "%s\n", nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libnbd-1.23.9/examples/glib-main-loop.c:291:6: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/glib-main-loop.c:285:9: acquire_memory: allocated here
libnbd-1.23.9/examples/glib-main-loop.c:286:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/glib-main-loop.c:290:10: branch_false: ...to here
libnbd-1.23.9/examples/glib-main-loop.c:291:6: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  289|     }
#  290|     dest = nbd_create ();
#  291|->   if (!dest) {
#  292|       fprintf (stderr, "%s\n", nbd_get_error ());
#  293|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libnbd-1.23.9/examples/list-exports.c:62:6: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
libnbd-1.23.9/examples/list-exports.c:57:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
libnbd-1.23.9/examples/list-exports.c:61:9: branch_false: ...to here
libnbd-1.23.9/examples/list-exports.c:61:17: acquire_memory: allocated here
libnbd-1.23.9/examples/list-exports.c:62:6: danger: ‘strdup(name)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#   60|     }
#   61|     names[l->i] = strdup (name);
#   62|->   if (!names[l->i]) {
#   63|       perror ("strdup");
#   64|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libnbd-1.23.9/examples/list-exports.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of ‘names’
libnbd-1.23.9/examples/list-exports.c:57:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
libnbd-1.23.9/examples/list-exports.c:61:9: branch_false: ...to here
libnbd-1.23.9/examples/list-exports.c:62:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/list-exports.c:63:5: branch_true: ...to here
libnbd-1.23.9/examples/list-exports.c:63:5: danger: ‘names’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   61|     names[l->i] = strdup (name);
#   62|     if (!names[l->i]) {
#   63|->     perror ("strdup");
#   64|       exit (EXIT_FAILURE);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libnbd-1.23.9/examples/list-exports.c:93:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/list-exports.c:80:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/list-exports.c:86:9: branch_false: ...to here
libnbd-1.23.9/examples/list-exports.c:86:9: acquire_memory: allocated here
libnbd-1.23.9/examples/list-exports.c:87:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/list-exports.c:93:3: branch_false: ...to here
libnbd-1.23.9/examples/list-exports.c:93:3: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   91|   
#   92|     /* Set opt mode. */
#   93|->   nbd_set_opt_mode (nbd, true);
#   94|   
#   95|     /* Connect to the NBD server over a

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libnbd-1.23.9/examples/open-qcow2.c:40:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/open-qcow2.c:19:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/open-qcow2.c:23:3: branch_false: ...to here
libnbd-1.23.9/examples/open-qcow2.c:26:9: acquire_memory: allocated here
libnbd-1.23.9/examples/open-qcow2.c:27:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/open-qcow2.c:35:9: branch_false: ...to here
libnbd-1.23.9/examples/open-qcow2.c:40:7: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   38|       NULL
#   39|     };
#   40|->   if (nbd_connect_systemd_socket_activation (nbd,
#   41|                                                args) == -1) {
#   42|       fprintf (stderr, "%s\n", nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libnbd-1.23.9/examples/open-qcow2.c:61:3: warning[-Wanalyzer-malloc-leak]: leak of ‘popen("hexdump -C", "w")’
libnbd-1.23.9/examples/open-qcow2.c:19:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/open-qcow2.c:23:3: branch_false: ...to here
libnbd-1.23.9/examples/open-qcow2.c:27:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/open-qcow2.c:35:9: branch_false: ...to here
libnbd-1.23.9/examples/open-qcow2.c:40:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/open-qcow2.c:47:7: branch_false: ...to here
libnbd-1.23.9/examples/open-qcow2.c:47:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/open-qcow2.c:52:8: branch_false: ...to here
libnbd-1.23.9/examples/open-qcow2.c:52:8: acquire_memory: allocated here
libnbd-1.23.9/examples/open-qcow2.c:53:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/open-qcow2.c:57:3: branch_false: ...to here
libnbd-1.23.9/examples/open-qcow2.c:61:3: danger: ‘popen("hexdump -C", "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   59|   
#   60|     /* Close the libnbd handle. */
#   61|->   nbd_close (nbd);
#   62|   
#   63|     exit (EXIT_SUCCESS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
libnbd-1.23.9/examples/reads-and-writes.c:47:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/reads-and-writes.c:32:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/reads-and-writes.c:38:9: branch_false: ...to here
libnbd-1.23.9/examples/reads-and-writes.c:38:9: acquire_memory: allocated here
libnbd-1.23.9/examples/reads-and-writes.c:39:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/reads-and-writes.c:47:7: branch_false: ...to here
libnbd-1.23.9/examples/reads-and-writes.c:47:7: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   45|      * Unix domain socket.
#   46|      */
#   47|->   if (nbd_connect_unix (nbd, argv[1]) == -1) {
#   48|       fprintf (stderr, "%s\n", nbd_get_error ());
#   49|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libnbd-1.23.9/examples/server-flags.c:37:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/server-flags.c:23:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/server-flags.c:29:9: branch_false: ...to here
libnbd-1.23.9/examples/server-flags.c:29:9: acquire_memory: allocated here
libnbd-1.23.9/examples/server-flags.c:30:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/server-flags.c:37:7: branch_false: ...to here
libnbd-1.23.9/examples/server-flags.c:37:7: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   35|     /* Request full information. */
#   36|   #if LIBNBD_HAVE_NBD_SET_FULL_INFO /* Added in 1.4 */
#   37|->   if (nbd_set_full_info (nbd, true) == -1) {
#   38|       fprintf (stderr, "%s\n", nbd_get_error ());
#   39|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
libnbd-1.23.9/examples/strict-structured-reads.c:195:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/strict-structured-reads.c:184:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/strict-structured-reads.c:189:9: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:189:9: acquire_memory: allocated here
libnbd-1.23.9/examples/strict-structured-reads.c:190:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:194:7: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:194:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:195:9: branch_true: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:195:9: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  193|     }
#  194|     if (strstr (argv[1], "://")) {
#  195|->     if (nbd_connect_uri (nbd, argv[1]) == -1) {
#  196|         fprintf (stderr, "%s\n", nbd_get_error ());
#  197|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libnbd-1.23.9/examples/strict-structured-reads.c:200:12: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/strict-structured-reads.c:184:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/strict-structured-reads.c:189:9: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:189:9: acquire_memory: allocated here
libnbd-1.23.9/examples/strict-structured-reads.c:190:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:194:7: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:194:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:200:12: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:200:12: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  198|       }
#  199|     }
#  200|->   else if (nbd_connect_unix (nbd, argv[1]) == -1) {
#  201|       fprintf (stderr, "%s\n", nbd_get_error ());
#  202|       exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
libnbd-1.23.9/examples/strict-structured-reads.c:239:9: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
libnbd-1.23.9/examples/strict-structured-reads.c:184:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/strict-structured-reads.c:189:9: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:190:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:194:7: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:194:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:200:12: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:200:11: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:205:16: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:206:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:210:6: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:210:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:214:6: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:221:15: branch_true: following ‘true’ branch (when ‘i != 1000’)...
libnbd-1.23.9/examples/strict-structured-reads.c:223:22: branch_true: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:223:22: acquire_memory: allocated here
libnbd-1.23.9/examples/strict-structured-reads.c:232:5: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:233:14: branch_true: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:239:9: danger: ‘d’ leaks here; was allocated at [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15)
#  237|       *d = (struct data) { .offset = offset, .count = maxsize, .flags = flags,
#  238|                            .remaining = r, };
#  239|->     if (nbd_aio_pread_structured (nbd, buf, sizeof buf, offset, chunk_callback,
#  240|                                     completion_callback, flags) == -1) {
#  241|         fprintf (stderr, "%s\n", nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
libnbd-1.23.9/examples/strict-structured-reads.c:239:9: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
libnbd-1.23.9/examples/strict-structured-reads.c:184:6: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/strict-structured-reads.c:189:9: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:190:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:194:7: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:194:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:200:12: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:200:11: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:205:16: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:206:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:210:6: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:210:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:214:6: branch_false: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:221:15: branch_true: following ‘true’ branch (when ‘i != 1000’)...
libnbd-1.23.9/examples/strict-structured-reads.c:223:22: branch_true: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:224:23: acquire_memory: allocated here
libnbd-1.23.9/examples/strict-structured-reads.c:232:5: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/strict-structured-reads.c:233:14: branch_true: ...to here
libnbd-1.23.9/examples/strict-structured-reads.c:239:9: danger: ‘r’ leaks here; was allocated at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
#  237|       *d = (struct data) { .offset = offset, .count = maxsize, .flags = flags,
#  238|                            .remaining = r, };
#  239|->     if (nbd_aio_pread_structured (nbd, buf, sizeof buf, offset, chunk_callback,
#  240|                                     completion_callback, flags) == -1) {
#  241|         fprintf (stderr, "%s\n", nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:92:11: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:78:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:83:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:83:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:84:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:90:6: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:90:6: branch_true: following ‘true’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:91:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:91:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:92:11: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:92:11: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   90|     if (argc == 2) {
#   91|       if (strstr (argv[1], "://")) {
#   92|->       if (nbd_connect_uri (nbd, argv[1]) == -1) {
#   93|           fprintf (stderr, "%s\n", nbd_get_error ());
#   94|           exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:97:14: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:78:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:83:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:83:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:84:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:90:6: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:90:6: branch_true: following ‘true’ branch (when ‘argc == 2’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:91:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:91:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:97:14: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:97:14: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   95|         }
#   96|       }
#   97|->     else if (nbd_connect_unix (nbd, argv[1]) == -1) {
#   98|         fprintf (stderr, "%s\n", nbd_get_error ());
#   99|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:78:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:83:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:83:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:84:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:90:6: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:90:6: branch_false: following ‘false’ branch (when ‘argc != 2’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:103:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:103:9: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  101|     }
#  102|     else {
#  103|->     if (nbd_connect_tcp (nbd, argv[1], argv[2]) == -1) {
#  104|         fprintf (stderr, "%s\n", nbd_get_error ());
#  105|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  204|     }
#  205|   
#  206|->   nbd = nbd_create ();
#  207|     if (nbd == NULL) {
#  208|       fprintf (stderr, "%s\n", nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:208:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:208:5: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:208:5: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  206|     nbd = nbd_create ();
#  207|     if (nbd == NULL) {
#  208|->     fprintf (stderr, "%s\n", nbd_get_error ());
#  209|       exit (EXIT_FAILURE);
#  210|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:17: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:11: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:11: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  212|     if (status->argc == 2) {
#  213|       if (strstr (status->argv[1], "://")) {
#  214|->       if (nbd_connect_uri (nbd, status->argv[1]) == -1) {
#  215|           fprintf (stderr, "%s\n", nbd_get_error ());
#  216|           exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:11: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:17: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:11: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:11: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  212|     if (status->argc == 2) {
#  213|       if (strstr (status->argv[1], "://")) {
#  214|->       if (nbd_connect_uri (nbd, status->argv[1]) == -1) {
#  215|           fprintf (stderr, "%s\n", nbd_get_error ());
#  216|           exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:215:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:17: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:11: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:214:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:215:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:215:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  213|       if (strstr (status->argv[1], "://")) {
#  214|         if (nbd_connect_uri (nbd, status->argv[1]) == -1) {
#  215|->         fprintf (stderr, "%s\n", nbd_get_error ());
#  216|           exit (EXIT_FAILURE);
#  217|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:14: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:17: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:14: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:14: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  217|         }
#  218|       }
#  219|->     else if (nbd_connect_unix (nbd, status->argv[1]) == -1) {
#  220|         fprintf (stderr, "%s\n", nbd_get_error ());
#  221|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:14: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:17: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:14: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:14: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  217|         }
#  218|       }
#  219|->     else if (nbd_connect_unix (nbd, status->argv[1]) == -1) {
#  220|         fprintf (stderr, "%s\n", nbd_get_error ());
#  221|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:220:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:17: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:213:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:14: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:219:13: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:220:7: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:220:7: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  218|       }
#  219|       else if (nbd_connect_unix (nbd, status->argv[1]) == -1) {
#  220|->       fprintf (stderr, "%s\n", nbd_get_error ());
#  221|         exit (EXIT_FAILURE);
#  222|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:48: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  223|     }
#  224|     else {
#  225|->     if (nbd_connect_tcp (nbd, status->argv[1], status->argv[2]) == -1) {
#  226|         fprintf (stderr, "%s\n", nbd_get_error ());
#  227|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:48: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:9: danger: ‘nbd_create()’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  223|     }
#  224|     else {
#  225|->     if (nbd_connect_tcp (nbd, status->argv[1], status->argv[2]) == -1) {
#  226|         fprintf (stderr, "%s\n", nbd_get_error ());
#  227|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:226:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:48: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:226:7: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:226:7: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  224|     else {
#  225|       if (nbd_connect_tcp (nbd, status->argv[1], status->argv[2]) == -1) {
#  226|->       fprintf (stderr, "%s\n", nbd_get_error ());
#  227|         exit (EXIT_FAILURE);
#  228|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  236|     i = NR_CYCLES;
#  237|     while (i > 0 || in_flight > 0) {
#  238|->     if (nbd_aio_is_dead (nbd) || nbd_aio_is_closed (nbd)) {
#  239|         fprintf (stderr, "thread %zu: connection is dead or closed\n",
#  240|                  status->i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:34: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:34: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:34: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  236|     i = NR_CYCLES;
#  237|     while (i > 0 || in_flight > 0) {
#  238|->     if (nbd_aio_is_dead (nbd) || nbd_aio_is_closed (nbd)) {
#  239|         fprintf (stderr, "thread %zu: connection is dead or closed\n",
#  240|                  status->i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:255:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:255:18: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  253|         cmd = rand () & 1;
#  254|         if (cmd == 0)
#  255|->         cookie = nbd_aio_pwrite (nbd, buf, size, offset,
#  256|                                    NBD_NULL_COMPLETION, 0);
#  257|         else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:258:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_false: following ‘false’ branch (when ‘cmd != 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:259:33: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:258:18: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  256|                                    NBD_NULL_COMPLETION, 0);
#  257|         else
#  258|->         cookie = nbd_aio_pread (nbd, buf, size, offset,
#  259|                                   NBD_NULL_COMPLETION, 0);
#  260|         if (cookie == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:261:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_true: following ‘true’ branch (when ‘cookie == -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:261:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:261:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  259|                                   NBD_NULL_COMPLETION, 0);
#  260|         if (cookie == -1) {
#  261|->         fprintf (stderr, "%s\n", nbd_get_error ());
#  262|           goto error;
#  263|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  269|       }
#  270|   
#  271|->     fds[0].fd = nbd_aio_get_fd (nbd);
#  272|       fds[0].events = 0;
#  273|       fds[0].revents = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:274:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:274:11: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  272|       fds[0].events = 0;
#  273|       fds[0].revents = 0;
#  274|->     dir = nbd_aio_get_direction (nbd);
#  275|       if ((dir & LIBNBD_AIO_DIRECTION_READ) != 0)
#  276|         fds[0].events |= POLLIN;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  278|         fds[0].events |= POLLOUT;
#  279|   
#  280|->     if (poll (fds, 1, -1) == -1) {
#  281|         perror ("poll");
#  282|         goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:281:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:281:7: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:281:7: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  279|   
#  280|       if (poll (fds, 1, -1) == -1) {
#  281|->       perror ("poll");
#  282|         goto error;
#  283|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:287:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:285:8: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:285:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:286:10: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:285:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:287:7: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:287:7: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  285|       if ((dir & LIBNBD_AIO_DIRECTION_READ) != 0 &&
#  286|           (fds[0].revents & POLLIN) != 0)
#  287|->       nbd_aio_notify_read (nbd);
#  288|       else if ((dir & LIBNBD_AIO_DIRECTION_WRITE) != 0 &&
#  289|                (fds[0].revents & POLLOUT) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:290:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:285:8: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:288:13: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:289:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:288:14: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:290:7: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:290:7: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  288|       else if ((dir & LIBNBD_AIO_DIRECTION_WRITE) != 0 &&
#  289|                (fds[0].revents & POLLOUT) != 0)
#  290|->       nbd_aio_notify_write (nbd);
#  291|   
#  292|       /* If a command is ready to retire, retire it. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:294:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:285:8: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:293:17: branch_true: following ‘true’ branch (when ‘j < in_flight’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:294:43: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:294:11: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  292|       /* If a command is ready to retire, retire it. */
#  293|       for (j = 0; j < in_flight; ++j) {
#  294|->       r = nbd_aio_command_completed (nbd, cookies[j]);
#  295|         if (r == -1) {
#  296|           fprintf (stderr, "%s\n", nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:296:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:200:9: acquire_memory: allocated here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:285:8: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:293:17: branch_true: following ‘true’ branch (when ‘j < in_flight’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:294:43: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:295:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:296:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:296:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  294|         r = nbd_aio_command_completed (nbd, cookies[j]);
#  295|         if (r == -1) {
#  296|->         fprintf (stderr, "%s\n", nbd_get_error ());
#  297|           goto error;
#  298|         }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def116]
libnbd-1.23.9/examples/threaded-reads-and-writes.c:300:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&cookies[<unknown>]’
libnbd-1.23.9/examples/threaded-reads-and-writes.c:201:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:206:9: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:207:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:212:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:225:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:231:15: branch_true: following ‘true’ branch (when ‘i != 1048576’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:232:14: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:237:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:9: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:238:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:251:15: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:254:10: branch_true: following ‘true’ branch (when ‘cmd == 0’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:256:34: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:260:10: branch_false: following ‘false’ branch (when ‘cookie != -1’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:264:7: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:250:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:271:17: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:280:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:285:8: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:293:17: branch_true: following ‘true’ branch (when ‘j < in_flight’)...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:294:43: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:295:10: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:299:10: branch_false: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:299:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/examples/threaded-reads-and-writes.c:301:41: branch_true: ...to here
libnbd-1.23.9/examples/threaded-reads-and-writes.c:300:9: danger: use of uninitialized value ‘&cookies[<unknown>]’ here
#  298|         }
#  299|         if (r) {
#  300|->         memmove (&cookies[j], &cookies[j+1],
#  301|                    sizeof (cookies[0]) * (in_flight - j - 1));
#  302|           j--;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
libnbd-1.23.9/examples/userfault-map.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/userfault-map.c:209:9: acquire_memory: allocated here
libnbd-1.23.9/examples/userfault-map.c:210:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/userfault-map.c:216:3: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:230:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  228|       pollfd[0].events = POLLIN;
#  229|   
#  230|->     r = poll (pollfd, 1, -1);
#  231|       if (r == -1) {
#  232|         perror ("poll");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
libnbd-1.23.9/examples/userfault-map.c:232:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/userfault-map.c:209:9: acquire_memory: allocated here
libnbd-1.23.9/examples/userfault-map.c:210:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/userfault-map.c:216:3: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:232:7: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  230|       r = poll (pollfd, 1, -1);
#  231|       if (r == -1) {
#  232|->       perror ("poll");
#  233|         exit (EXIT_FAILURE);
#  234|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
libnbd-1.23.9/examples/userfault-map.c:247:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/userfault-map.c:209:9: acquire_memory: allocated here
libnbd-1.23.9/examples/userfault-map.c:210:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/userfault-map.c:216:3: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:231:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/userfault-map.c:235:8: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:237:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/userfault-map.c:242:8: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:247:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  245|           if (errno == EAGAIN || errno == EWOULDBLOCK)
#  246|             continue;
#  247|->         perror ("read");
#  248|           exit (EXIT_FAILURE);
#  249|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
libnbd-1.23.9/examples/userfault-map.c:267:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libnbd-1.23.9/examples/userfault-map.c:209:9: acquire_memory: allocated here
libnbd-1.23.9/examples/userfault-map.c:210:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libnbd-1.23.9/examples/userfault-map.c:216:3: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:231:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/userfault-map.c:235:8: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:237:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/userfault-map.c:242:8: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:251:10: branch_false: following ‘false’ branch (when ‘r == 32’)...
libnbd-1.23.9/examples/userfault-map.c:256:11: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:263:12: branch_false: following ‘false’ branch...
libnbd-1.23.9/examples/userfault-map.c:267:13: branch_false: ...to here
libnbd-1.23.9/examples/userfault-map.c:267:13: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  265|             memset (buf, 0, page_size);
#  266|           }
#  267|->         if (nbd_pread (nbd, buf, len, offset, 0)
#  268|               == -1) {
#  269|             fprintf (stderr, "%s\n", nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
libnbd-1.23.9/fuse/nbdfuse.c:540:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/fuse/nbdfuse.c:535:7: acquire_memory: allocated here
libnbd-1.23.9/fuse/nbdfuse.c:536:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuse/nbdfuse.c:540:3: branch_false: ...to here
libnbd-1.23.9/fuse/nbdfuse.c:540:3: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  538|       exit (EXIT_FAILURE);
#  539|     }
#  540|->   nbd_set_debug (h, verbose);
#  541|   
#  542|     /* Allow ?tls-psk-file and ?tls-certificates */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:100:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:85:11: branch_true: following ‘true’ branch (when ‘argc == 2’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: acquire_resource: opened here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:88:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:100:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:100:5: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   98|     /* Create a connected socket. */
#   99|     if (socketpair (AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0, sv) == -1) {
#  100|->     perror ("socketpair");
#  101|       exit (EXIT_FAILURE);
#  102|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:109:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:85:11: branch_true: following ‘true’ branch (when ‘argc == 2’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: acquire_resource: opened here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:88:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:107:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:108:6: branch_true: following ‘true’ branch (when ‘pid == -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:109:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:109:5: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  107|     pid = fork ();
#  108|     if (pid == -1) {
#  109|->     perror ("fork");
#  110|       exit (EXIT_FAILURE);
#  111|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:115:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:85:11: branch_true: following ‘true’ branch (when ‘argc == 2’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: acquire_resource: opened here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:88:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:107:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:108:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:113:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:113:6: branch_true: following ‘true’ branch (when ‘pid > 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:115:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:115:5: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  113|     if (pid > 0) {
#  114|       /* Parent: libnbd client. */
#  115|->     close (sv[1]);
#  116|       close (fd);
#  117|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:116:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:85:11: branch_true: following ‘true’ branch (when ‘argc == 2’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: acquire_resource: opened here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:88:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:107:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:108:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:113:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:113:6: branch_true: following ‘true’ branch (when ‘pid > 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:115:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:116:5: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  114|       /* Parent: libnbd client. */
#  115|       close (sv[1]);
#  116|->     close (fd);
#  117|   
#  118|       client (sv[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def126]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:134:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:85:11: branch_true: following ‘true’ branch (when ‘argc == 2’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:87:10: acquire_resource: opened here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:88:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:99:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:107:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:108:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:113:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:113:6: branch_false: following ‘false’ branch (when ‘pid <= 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:134:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:134:3: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  132|   
#  133|     /* Child: NBD server. */
#  134|->   close (sv[0]);
#  135|   
#  136|     if (!write_testcase)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:200:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:189:9: acquire_memory: allocated here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:190:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:200:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:200:3: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  198|      * because client side strictness sees a problem.
#  199|      */
#  200|->   nbd_set_strict_mode (nbd, 0);
#  201|   
#  202|     /* Enable a metadata context, for block status below. */

Error: CPPCHECK_WARNING (CWE-768): [#def128]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:225: error[unknownEvaluationOrder]: Expression 'nbd,prbuf,sizeof(prbuf),8192,(struct nbd_chunk_callback){.callback=chunk_callback,},(struct nbd_completion_callback){.callback=NULL}' depends on order of evaluation of side effects
#  223|                               (nbd_chunk_callback) {
#  224|                                 .callback = chunk_callback,
#  225|->                             },
#  226|                               NBD_NULL_COMPLETION,
#  227|                               0);

Error: CPPCHECK_WARNING (CWE-768): [#def129]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:233: error[unknownEvaluationOrder]: Expression 'nbd,length,0,(struct nbd_extent_callback){.callback=extent_callback,},(struct nbd_completion_callback){.callback=NULL}' depends on order of evaluation of side effects
#  231|                           (nbd_extent_callback) {
#  232|                             .callback = extent_callback,
#  233|->                         },
#  234|                           NBD_NULL_COMPLETION,
#  235|                           0);

Error: CPPCHECK_WARNING (CWE-768): [#def130]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:239: error[unknownEvaluationOrder]: Expression 'nbd,length,0,(struct nbd_extent64_callback){.callback=extent64_callback,},(struct nbd_completion_callback){.callback=NULL}' depends on order of evaluation of side effects
#  237|                              (nbd_extent64_callback) {
#  238|                                .callback = extent64_callback,
#  239|->                            },
#  240|                              NBD_NULL_COMPLETION,
#  241|                              0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:345:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:345:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:345:5: danger: ‘rfd[0]’ leaks here
#  343|   
#  344|     if (pipe (wfd) == -1) {       /* Will be our output, nbdkit's stdin */
#  345|->     perror ("pipe");
#  346|       _exit (EXIT_FAILURE);
#  347|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def132]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:345:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:345:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:345:5: danger: ‘rfd[1]’ leaks here
#  343|   
#  344|     if (pipe (wfd) == -1) {       /* Will be our output, nbdkit's stdin */
#  345|->     perror ("pipe");
#  346|       _exit (EXIT_FAILURE);
#  347|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_true: following ‘true’ branch (when ‘pid == -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: danger: ‘rfd[0]’ leaks here
#  350|     pid = fork ();
#  351|     if (pid == -1) {
#  352|->     perror ("fork");
#  353|       _exit (EXIT_FAILURE);
#  354|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_true: following ‘true’ branch (when ‘pid == -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: danger: ‘rfd[1]’ leaks here
#  350|     pid = fork ();
#  351|     if (pid == -1) {
#  352|->     perror ("fork");
#  353|       _exit (EXIT_FAILURE);
#  354|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_true: following ‘true’ branch (when ‘pid == -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: danger: ‘wfd[0]’ leaks here
#  350|     pid = fork ();
#  351|     if (pid == -1) {
#  352|->     perror ("fork");
#  353|       _exit (EXIT_FAILURE);
#  354|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_true: following ‘true’ branch (when ‘pid == -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:352:5: danger: ‘wfd[1]’ leaks here
#  350|     pid = fork ();
#  351|     if (pid == -1) {
#  352|->     perror ("fork");
#  353|       _exit (EXIT_FAILURE);
#  354|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: danger: ‘rfd[0]’ leaks here
#  355|   
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|->     close (fd);
#  358|       close (sock);
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: danger: ‘rfd[1]’ leaks here
#  355|   
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|->     close (fd);
#  358|       close (sock);
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: danger: ‘wfd[0]’ leaks here
#  355|   
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|->     close (fd);
#  358|       close (sock);
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: danger: ‘wfd[1]’ leaks here
#  355|   
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|->     close (fd);
#  358|       close (sock);
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: danger: ‘rfd[0]’ leaks here
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|       close (fd);
#  358|->     close (sock);
#  359|   
#  360|       close (rfd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def142]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: danger: ‘rfd[1]’ leaks here
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|       close (fd);
#  358|->     close (sock);
#  359|   
#  360|       close (rfd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def143]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: danger: ‘wfd[0]’ leaks here
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|       close (fd);
#  358|->     close (sock);
#  359|   
#  360|       close (rfd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def144]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:358:5: danger: ‘wfd[1]’ leaks here
#  356|     if (pid == 0) {               /* Child - nbdkit */
#  357|       close (fd);
#  358|->     close (sock);
#  359|   
#  360|       close (rfd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def145]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: danger: ‘rfd[0]’ leaks here
#  358|       close (sock);
#  359|   
#  360|->     close (rfd[0]);
#  361|       dup2 (rfd[1], STDOUT_FILENO);
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def146]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: danger: ‘rfd[1]’ leaks here
#  358|       close (sock);
#  359|   
#  360|->     close (rfd[0]);
#  361|       dup2 (rfd[1], STDOUT_FILENO);
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: danger: ‘wfd[0]’ leaks here
#  358|       close (sock);
#  359|   
#  360|->     close (rfd[0]);
#  361|       dup2 (rfd[1], STDOUT_FILENO);
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def148]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:360:5: danger: ‘wfd[1]’ leaks here
#  358|       close (sock);
#  359|   
#  360|->     close (rfd[0]);
#  361|       dup2 (rfd[1], STDOUT_FILENO);
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def149]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:363:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:363:5: danger: ‘rfd[1]’ leaks here
#  361|       dup2 (rfd[1], STDOUT_FILENO);
#  362|   
#  363|->     close (wfd[1]);
#  364|       dup2 (wfd[0], STDIN_FILENO);
#  365|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def150]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:363:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:363:5: danger: ‘wfd[0]’ leaks here
#  361|       dup2 (rfd[1], STDOUT_FILENO);
#  362|   
#  363|->     close (wfd[1]);
#  364|       dup2 (wfd[0], STDIN_FILENO);
#  365|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:363:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:363:5: danger: ‘wfd[1]’ leaks here
#  361|       dup2 (rfd[1], STDOUT_FILENO);
#  362|   
#  363|->     close (wfd[1]);
#  364|       dup2 (wfd[0], STDIN_FILENO);
#  365|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def152]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:373:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:373:5: danger: ‘rfd[1]’ leaks here
#  371|               "runlength=8192", "percent=50", "random-content=true",
#  372|               NULL);
#  373|->     perror ("execlp");
#  374|       _exit (EXIT_FAILURE);
#  375|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def153]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:373:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:357:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:373:5: danger: ‘wfd[0]’ leaks here
#  371|               "runlength=8192", "percent=50", "random-content=true",
#  372|               NULL);
#  373|->     perror ("execlp");
#  374|       _exit (EXIT_FAILURE);
#  375|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def154]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: danger: ‘rfd[0]’ leaks here
#  389|      * doesn't matter since we're only capturing a test case.
#  390|      */
#  391|->   close (rfd[1]);
#  392|     close (wfd[0]);
#  393|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def155]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: danger: ‘rfd[1]’ leaks here
#  389|      * doesn't matter since we're only capturing a test case.
#  390|      */
#  391|->   close (rfd[1]);
#  392|     close (wfd[0]);
#  393|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def156]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: danger: ‘wfd[0]’ leaks here
#  389|      * doesn't matter since we're only capturing a test case.
#  390|      */
#  391|->   close (rfd[1]);
#  392|     close (wfd[0]);
#  393|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: danger: ‘wfd[1]’ leaks here
#  389|      * doesn't matter since we're only capturing a test case.
#  390|      */
#  391|->   close (rfd[1]);
#  392|     close (wfd[0]);
#  393|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:392:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:392:3: danger: ‘rfd[0]’ leaks here
#  390|      */
#  391|     close (rfd[1]);
#  392|->   close (wfd[0]);
#  393|   
#  394|     while (!parent_dead || rfd[0] >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:392:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:392:3: danger: ‘wfd[0]’ leaks here
#  390|      */
#  391|     close (rfd[1]);
#  392|->   close (wfd[0]);
#  393|   
#  394|     while (!parent_dead || rfd[0] >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:392:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:392:3: danger: ‘wfd[1]’ leaks here
#  390|      */
#  391|     close (rfd[1]);
#  392|->   close (wfd[0]);
#  393|   
#  394|     while (!parent_dead || rfd[0] >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd[0]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:9: danger: ‘rfd[0]’ leaks here
#  401|       pfds[1].revents = 0;
#  402|   
#  403|->     if (poll (pfds, 2, -1) == -1) {
#  404|         if (errno == EINTR)
#  405|           continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:9: danger: ‘wfd[1]’ leaks here
#  401|       pfds[1].revents = 0;
#  402|   
#  403|->     if (poll (pfds, 2, -1) == -1) {
#  404|         if (errno == EINTR)
#  405|           continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:406:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:11: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:10: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:406:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:406:7: danger: ‘wfd[1]’ leaks here
#  404|         if (errno == EINTR)
#  405|           continue;
#  406|->       perror ("poll");
#  407|         _exit (EXIT_FAILURE);
#  408|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def164]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:413:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:26: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:411:11: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:412:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:413:9: danger: ‘wfd[1]’ leaks here
#  411|         r = read (sock, buf, sizeof buf);
#  412|         if (r == -1 && errno != EINTR) {
#  413|->         perror ("read (libnbd)");
#  414|           _exit (EXIT_FAILURE);
#  415|         }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def165]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:427:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:26: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:424:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:426:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:427:9: danger: ‘wfd[1]’ leaks here
#  425|         r = read (rfd[0], buf, sizeof buf);
#  426|         if (r == -1 && errno == EINTR) {
#  427|->         perror ("read (nbdkit)");
#  428|           _exit (EXIT_FAILURE);
#  429|         }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def166]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:431:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:26: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:424:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:430:15: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:431:9: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:431:9: danger: ‘wfd[1]’ leaks here
#  429|         }
#  430|         else if (r == 0) {
#  431|->         close (rfd[0]);
#  432|           rfd[0] = -1;
#  433|           continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def167]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:442:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:442:7: danger: ‘wfd[1]’ leaks here
#  440|     }
#  441|   
#  442|->   if (close (fd) == -1) {
#  443|       perror ("close");
#  444|       _exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def168]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:443:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:442:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:443:5: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:443:5: danger: ‘wfd[1]’ leaks here
#  441|   
#  442|     if (close (fd) == -1) {
#  443|->     perror ("close");
#  444|       _exit (EXIT_FAILURE);
#  445|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:446:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:10: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:404:10: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:442:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:446:1: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:446:1: danger: ‘wfd[1]’ leaks here
#  444|       _exit (EXIT_FAILURE);
#  445|     }
#  446|-> }
#  447|   
#  448|   static void

Error: GCC_ANALYZER_WARNING (CWE-775): [#def170]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:454:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:330:1: enter_function: entry to ‘nbdkit’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:26: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:411:11: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:416:15: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:420:15: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:420:15: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:421:9: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:421:9: call_function: calling ‘xwrite’ from ‘nbdkit’
#  452|   
#  453|     while (n > 0) {
#  454|->     r = write (fd, buf, n);
#  455|       if (r == -1) {
#  456|         perror ("write");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:456:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:330:1: enter_function: entry to ‘nbdkit’
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:339:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:7: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:344:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:350:9: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:351:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:356:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:391:3: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:394:10: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:395:5: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:403:8: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:8: branch_false: following ‘false’ branch (when ‘parent_dead == 0’)...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:26: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:410:9: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:411:11: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:416:15: branch_false: following ‘false’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:420:15: branch_false: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:420:15: branch_true: following ‘true’ branch...
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:421:9: branch_true: ...to here
libnbd-1.23.9/fuzzing/libnbd-fuzz-wrapper.c:421:9: call_function: calling ‘xwrite’ from ‘nbdkit’
#  454|       r = write (fd, buf, n);
#  455|       if (r == -1) {
#  456|->       perror ("write");
#  457|         _exit (EXIT_FAILURE);
#  458|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
libnbd-1.23.9/info/list.c:38:1: warning[-Wanalyzer-malloc-leak]: leak of ‘e.desc’
libnbd-1.23.9/info/list.c:42:1: enter_function: entry to ‘collect_export’
libnbd-1.23.9/info/list.c:47:12: acquire_memory: allocated here
libnbd-1.23.9/info/list.c:48:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:48:7: branch_false: ...to here
libnbd-1.23.9/info/list.c:48:7: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:49:7: branch_false: ...to here
libnbd-1.23.9/info/list.c:49:7: call_function: calling ‘exports_append’ from ‘collect_export’
#   36|     char *desc;
#   37|   };
#   38|-> DEFINE_VECTOR_TYPE (exports, struct export);
#   39|   static exports export_list = empty_vector;
#   40|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
libnbd-1.23.9/info/list.c:38:1: warning[-Wanalyzer-malloc-leak]: leak of ‘e.name’
libnbd-1.23.9/info/list.c:42:1: enter_function: entry to ‘collect_export’
libnbd-1.23.9/info/list.c:46:12: acquire_memory: allocated here
libnbd-1.23.9/info/list.c:48:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:49:7: call_function: calling ‘exports_append’ from ‘collect_export’
#   36|     char *desc;
#   37|   };
#   38|-> DEFINE_VECTOR_TYPE (exports, struct export);
#   39|   static exports export_list = empty_vector;
#   40|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libnbd-1.23.9/info/list.c:48:6: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(desc)’
libnbd-1.23.9/info/list.c:47:12: acquire_memory: allocated here
libnbd-1.23.9/info/list.c:48:6: danger: ‘strdup(desc)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   46|     e.name = strdup (name);
#   47|     e.desc = strdup (desc);
#   48|->   if (e.name == NULL || e.desc == NULL ||
#   49|         exports_append (&export_list, e) == -1) {
#   50|       perror ("malloc");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
libnbd-1.23.9/info/list.c:48:7: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
libnbd-1.23.9/info/list.c:46:12: acquire_memory: allocated here
libnbd-1.23.9/info/list.c:48:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:48:7: branch_false: ...to here
libnbd-1.23.9/info/list.c:48:7: danger: ‘strdup(name)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   46|     e.name = strdup (name);
#   47|     e.desc = strdup (desc);
#   48|->   if (e.name == NULL || e.desc == NULL ||
#   49|         exports_append (&export_list, e) == -1) {
#   50|       perror ("malloc");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
libnbd-1.23.9/info/list.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of ‘e.desc’
libnbd-1.23.9/info/list.c:42:1: enter_function: entry to ‘collect_export’
libnbd-1.23.9/info/list.c:47:12: acquire_memory: allocated here
libnbd-1.23.9/info/list.c:48:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:48:7: branch_false: ...to here
libnbd-1.23.9/info/list.c:48:7: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:49:7: branch_false: ...to here
libnbd-1.23.9/info/list.c:49:7: call_function: calling ‘exports_append’ from ‘collect_export’
libnbd-1.23.9/info/list.c:49:7: return_function: returning to ‘collect_export’ from ‘exports_append’
libnbd-1.23.9/info/list.c:48:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
 call_function: calling ‘collect_export’ from ‘collect_export’
#   48|     if (e.name == NULL || e.desc == NULL ||
#   49|         exports_append (&export_list, e) == -1) {
#   50|->     perror ("malloc");
#   51|       exit (EXIT_FAILURE);
#   52|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
libnbd-1.23.9/info/list.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of ‘e.name’
libnbd-1.23.9/info/list.c:42:1: enter_function: entry to ‘collect_export’
libnbd-1.23.9/info/list.c:46:12: acquire_memory: allocated here
libnbd-1.23.9/info/list.c:48:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:49:7: call_function: calling ‘exports_append’ from ‘collect_export’
libnbd-1.23.9/info/list.c:49:7: return_function: returning to ‘collect_export’ from ‘exports_append’
libnbd-1.23.9/info/list.c:48:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
 call_function: calling ‘collect_export’ from ‘collect_export’
#   48|     if (e.name == NULL || e.desc == NULL ||
#   49|         exports_append (&export_list, e) == -1) {
#   50|->     perror ("malloc");
#   51|       exit (EXIT_FAILURE);
#   52|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
libnbd-1.23.9/info/list.c:99:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/info/list.c:88:15: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/list.c:89:24: branch_true: ...to here
libnbd-1.23.9/info/list.c:92:8: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/list.c:94:14: branch_true: ...to here
libnbd-1.23.9/info/list.c:94:14: acquire_memory: allocated here
libnbd-1.23.9/info/list.c:95:10: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/list.c:99:7: branch_false: ...to here
libnbd-1.23.9/info/list.c:99:7: danger: ‘nbd_create()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#   97|           exit (EXIT_FAILURE);
#   98|         }
#   99|->       nbd_set_uri_allow_local_file (nbd2, true); /* Allow ?tls-psk-file. */
#  100|         nbd_set_opt_mode (nbd2, true);
#  101|         nbd_set_request_meta_context (nbd2, false);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
libnbd-1.23.9/info/show.c:100:17: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
libnbd-1.23.9/info/show.c:96:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:97:11: branch_true: ...to here
libnbd-1.23.9/info/show.c:97:11: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:100:17: danger: ‘uri’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   98|   
#   99|     /* Prefer the server's version of the name, if available */
#  100|->   export_name = nbd_get_canonical_export_name (nbd);
#  101|     if (export_name == NULL)
#  102|       export_name = nbd_get_export_name (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
libnbd-1.23.9/info/show.c:102:19: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
libnbd-1.23.9/info/show.c:96:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:97:11: branch_true: ...to here
libnbd-1.23.9/info/show.c:97:11: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:102:19: branch_true: ...to here
libnbd-1.23.9/info/show.c:102:19: danger: ‘uri’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  100|     export_name = nbd_get_canonical_export_name (nbd);
#  101|     if (export_name == NULL)
#  102|->     export_name = nbd_get_export_name (nbd);
#  103|     if (export_name == NULL) {
#  104|       fprintf (stderr, "%s: %s\n", progname, nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
libnbd-1.23.9/info/show.c:104:5: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
libnbd-1.23.9/info/show.c:96:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:97:11: branch_true: ...to here
libnbd-1.23.9/info/show.c:97:11: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:102:19: branch_true: ...to here
libnbd-1.23.9/info/show.c:103:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:104:5: branch_true: ...to here
libnbd-1.23.9/info/show.c:104:5: danger: ‘uri’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  102|       export_name = nbd_get_export_name (nbd);
#  103|     if (export_name == NULL) {
#  104|->     fprintf (stderr, "%s: %s\n", progname, nbd_get_error ());
#  105|       exit (EXIT_FAILURE);
#  106|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
libnbd-1.23.9/info/show.c:109:26: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_true: following ‘true’ branch (when ‘desc’ is NULL)...
libnbd-1.23.9/info/show.c:109:26: branch_true: ...to here
libnbd-1.23.9/info/show.c:109:26: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  107|     /* Get description if list didn't already give us one */
#  108|     if (!desc)
#  109|->     desc = export_desc = nbd_get_export_description (nbd);
#  110|     is_rotational = nbd_is_rotational (nbd);
#  111|     is_read_only = nbd_is_read_only (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
libnbd-1.23.9/info/show.c:110:19: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:110:19: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  108|     if (!desc)
#  109|       desc = export_desc = nbd_get_export_description (nbd);
#  110|->   is_rotational = nbd_is_rotational (nbd);
#  111|     is_read_only = nbd_is_read_only (nbd);
#  112|     can_cache = nbd_can_cache (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
libnbd-1.23.9/info/show.c:111:18: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:111:18: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  109|       desc = export_desc = nbd_get_export_description (nbd);
#  110|     is_rotational = nbd_is_rotational (nbd);
#  111|->   is_read_only = nbd_is_read_only (nbd);
#  112|     can_cache = nbd_can_cache (nbd);
#  113|     can_df = nbd_can_df (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libnbd-1.23.9/info/show.c:112:15: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:112:15: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  110|     is_rotational = nbd_is_rotational (nbd);
#  111|     is_read_only = nbd_is_read_only (nbd);
#  112|->   can_cache = nbd_can_cache (nbd);
#  113|     can_df = nbd_can_df (nbd);
#  114|     can_fast_zero = nbd_can_fast_zero (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libnbd-1.23.9/info/show.c:113:12: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:113:12: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  111|     is_read_only = nbd_is_read_only (nbd);
#  112|     can_cache = nbd_can_cache (nbd);
#  113|->   can_df = nbd_can_df (nbd);
#  114|     can_fast_zero = nbd_can_fast_zero (nbd);
#  115|     can_flush = nbd_can_flush (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libnbd-1.23.9/info/show.c:114:19: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:114:19: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  112|     can_cache = nbd_can_cache (nbd);
#  113|     can_df = nbd_can_df (nbd);
#  114|->   can_fast_zero = nbd_can_fast_zero (nbd);
#  115|     can_flush = nbd_can_flush (nbd);
#  116|     can_fua = nbd_can_fua (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
libnbd-1.23.9/info/show.c:115:15: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:115:15: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  113|     can_df = nbd_can_df (nbd);
#  114|     can_fast_zero = nbd_can_fast_zero (nbd);
#  115|->   can_flush = nbd_can_flush (nbd);
#  116|     can_fua = nbd_can_fua (nbd);
#  117|     can_multi_conn = nbd_can_multi_conn (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
libnbd-1.23.9/info/show.c:116:13: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:116:13: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  114|     can_fast_zero = nbd_can_fast_zero (nbd);
#  115|     can_flush = nbd_can_flush (nbd);
#  116|->   can_fua = nbd_can_fua (nbd);
#  117|     can_multi_conn = nbd_can_multi_conn (nbd);
#  118|     can_trim = nbd_can_trim (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
libnbd-1.23.9/info/show.c:117:20: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:117:20: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  115|     can_flush = nbd_can_flush (nbd);
#  116|     can_fua = nbd_can_fua (nbd);
#  117|->   can_multi_conn = nbd_can_multi_conn (nbd);
#  118|     can_trim = nbd_can_trim (nbd);
#  119|     can_zero = nbd_can_zero (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
libnbd-1.23.9/info/show.c:118:14: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:118:14: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  116|     can_fua = nbd_can_fua (nbd);
#  117|     can_multi_conn = nbd_can_multi_conn (nbd);
#  118|->   can_trim = nbd_can_trim (nbd);
#  119|     can_zero = nbd_can_zero (nbd);
#  120|     can_block_status_payload = nbd_can_block_status_payload (nbd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
libnbd-1.23.9/info/show.c:119:14: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:119:14: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  117|     can_multi_conn = nbd_can_multi_conn (nbd);
#  118|     can_trim = nbd_can_trim (nbd);
#  119|->   can_zero = nbd_can_zero (nbd);
#  120|     can_block_status_payload = nbd_can_block_status_payload (nbd);
#  121|     block_minimum = nbd_get_block_size (nbd, LIBNBD_SIZE_MINIMUM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
libnbd-1.23.9/info/show.c:120:30: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:120:30: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  118|     can_trim = nbd_can_trim (nbd);
#  119|     can_zero = nbd_can_zero (nbd);
#  120|->   can_block_status_payload = nbd_can_block_status_payload (nbd);
#  121|     block_minimum = nbd_get_block_size (nbd, LIBNBD_SIZE_MINIMUM);
#  122|     block_preferred = nbd_get_block_size (nbd, LIBNBD_SIZE_PREFERRED);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
libnbd-1.23.9/info/show.c:121:19: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:121:19: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  119|     can_zero = nbd_can_zero (nbd);
#  120|     can_block_status_payload = nbd_can_block_status_payload (nbd);
#  121|->   block_minimum = nbd_get_block_size (nbd, LIBNBD_SIZE_MINIMUM);
#  122|     block_preferred = nbd_get_block_size (nbd, LIBNBD_SIZE_PREFERRED);
#  123|     block_maximum = nbd_get_block_size (nbd, LIBNBD_SIZE_MAXIMUM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
libnbd-1.23.9/info/show.c:122:21: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:122:21: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  120|     can_block_status_payload = nbd_can_block_status_payload (nbd);
#  121|     block_minimum = nbd_get_block_size (nbd, LIBNBD_SIZE_MINIMUM);
#  122|->   block_preferred = nbd_get_block_size (nbd, LIBNBD_SIZE_PREFERRED);
#  123|     block_maximum = nbd_get_block_size (nbd, LIBNBD_SIZE_MAXIMUM);
#  124|     if (nbd_opt_list_meta_context (nbd,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
libnbd-1.23.9/info/show.c:123:19: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:123:19: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  121|     block_minimum = nbd_get_block_size (nbd, LIBNBD_SIZE_MINIMUM);
#  122|     block_preferred = nbd_get_block_size (nbd, LIBNBD_SIZE_PREFERRED);
#  123|->   block_maximum = nbd_get_block_size (nbd, LIBNBD_SIZE_MAXIMUM);
#  124|     if (nbd_opt_list_meta_context (nbd,
#  125|                (nbd_context_callback) {.callback = collect_context,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
libnbd-1.23.9/info/show.c:124:7: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:124:7: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  122|     block_preferred = nbd_get_block_size (nbd, LIBNBD_SIZE_PREFERRED);
#  123|     block_maximum = nbd_get_block_size (nbd, LIBNBD_SIZE_MAXIMUM);
#  124|->   if (nbd_opt_list_meta_context (nbd,
#  125|                (nbd_context_callback) {.callback = collect_context,
#  126|                                          .user_data = &contexts}) != -1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
libnbd-1.23.9/info/show.c:137:5: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:130:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:133:7: branch_false: ...to here
libnbd-1.23.9/info/show.c:133:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:134:5: branch_false: ...to here
libnbd-1.23.9/info/show.c:137:5: danger: ‘export_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  135|       fprintf (fp, "export=");
#  136|       /* Might as well use the JSON function to get an escaped string here ... */
#  137|->     print_json_string (export_name);
#  138|       fprintf (fp, ":\n");
#  139|       if (desc && *desc)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
libnbd-1.23.9/info/show.c:325:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
libnbd-1.23.9/info/show.c:318:1: enter_function: entry to ‘collect_context’
libnbd-1.23.9/info/show.c:323:10: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:324:6: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libnbd-1.23.9/info/show.c:324:23: branch_false: ...to here
libnbd-1.23.9/info/show.c:324:23: call_function: calling ‘string_vector_append’ from ‘collect_context’
libnbd-1.23.9/info/show.c:324:23: return_function: returning to ‘collect_context’ from ‘string_vector_append’
libnbd-1.23.9/info/show.c:324:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
 call_function: calling ‘collect_context’ from ‘collect_context’
#  323|     copy = strdup (name);
#  324|     if (copy == NULL || string_vector_append (contexts, copy) == -1) {
#  325|->     perror ("malloc");
#  326|       exit (EXIT_FAILURE);
#  327|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
libnbd-1.23.9/info/show.c:356:7: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:46:1: enter_function: entry to ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: call_function: calling ‘human_size’ from ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: return_function: returning to ‘show_one_export’ from ‘human_size’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:130:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:131:15: branch_true: ...to here
libnbd-1.23.9/info/show.c:131:15: call_function: calling ‘get_content’ from ‘show_one_export’
#  354|       return NULL;
#  355|   
#  356|->   if (nbd_aio_is_negotiating (nbd)) {
#  357|       if (nbd_opt_go (nbd) == -1) {
#  358|         fprintf (stderr, "%s: %s\n", progname, nbd_get_error ());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
libnbd-1.23.9/info/show.c:357:9: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:46:1: enter_function: entry to ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: call_function: calling ‘human_size’ from ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: return_function: returning to ‘show_one_export’ from ‘human_size’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:130:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:131:15: branch_true: ...to here
libnbd-1.23.9/info/show.c:131:15: call_function: calling ‘get_content’ from ‘show_one_export’
#  355|   
#  356|     if (nbd_aio_is_negotiating (nbd)) {
#  357|->     if (nbd_opt_go (nbd) == -1) {
#  358|         fprintf (stderr, "%s: %s\n", progname, nbd_get_error ());
#  359|         exit (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
libnbd-1.23.9/info/show.c:358:7: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:46:1: enter_function: entry to ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: call_function: calling ‘human_size’ from ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: return_function: returning to ‘show_one_export’ from ‘human_size’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:130:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:131:15: branch_true: ...to here
libnbd-1.23.9/info/show.c:131:15: call_function: calling ‘get_content’ from ‘show_one_export’
#  356|     if (nbd_aio_is_negotiating (nbd)) {
#  357|       if (nbd_opt_go (nbd) == -1) {
#  358|->       fprintf (stderr, "%s: %s\n", progname, nbd_get_error ());
#  359|         exit (EXIT_FAILURE);
#  360|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
libnbd-1.23.9/info/show.c:366:14: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:46:1: enter_function: entry to ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: call_function: calling ‘human_size’ from ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: return_function: returning to ‘show_one_export’ from ‘human_size’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:130:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:131:15: branch_true: ...to here
libnbd-1.23.9/info/show.c:131:15: call_function: calling ‘get_content’ from ‘show_one_export’
#  364|        */
#  365|       if (size == 0) {
#  366|->       size = nbd_get_size (nbd);
#  367|         if (size == -1)
#  368|           size = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
libnbd-1.23.9/info/show.c:373:8: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:46:1: enter_function: entry to ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: call_function: calling ‘human_size’ from ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: return_function: returning to ‘show_one_export’ from ‘human_size’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:130:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:131:15: branch_true: ...to here
libnbd-1.23.9/info/show.c:131:15: call_function: calling ‘get_content’ from ‘show_one_export’
#  371|   
#  372|     /* Write the first part of the NBD export to a temporary file. */
#  373|->   fd = mkstemp (template);
#  374|     if (fd == -1) {
#  375|       perror ("mkstemp");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
libnbd-1.23.9/info/show.c:375:5: warning[-Wanalyzer-malloc-leak]: leak of ‘export_name’
libnbd-1.23.9/info/show.c:46:1: enter_function: entry to ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: call_function: calling ‘human_size’ from ‘show_one_export’
libnbd-1.23.9/info/show.c:94:5: return_function: returning to ‘show_one_export’ from ‘human_size’
libnbd-1.23.9/info/show.c:96:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:100:17: branch_false: ...to here
libnbd-1.23.9/info/show.c:100:17: acquire_memory: allocated here
libnbd-1.23.9/info/show.c:101:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/show.c:108:6: branch_false: ...to here
libnbd-1.23.9/info/show.c:108:6: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
libnbd-1.23.9/info/show.c:110:19: branch_false: ...to here
libnbd-1.23.9/info/show.c:130:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/show.c:131:15: branch_true: ...to here
libnbd-1.23.9/info/show.c:131:15: call_function: calling ‘get_content’ from ‘show_one_export’
#  373|     fd = mkstemp (template);
#  374|     if (fd == -1) {
#  375|->     perror ("mkstemp");
#  376|       exit (EXIT_FAILURE);
#  377|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
libnbd-1.23.9/info/uri.c:43:5: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_uri(nbd)’
libnbd-1.23.9/info/uri.c:34:9: acquire_memory: allocated here
libnbd-1.23.9/info/uri.c:35:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/info/uri.c:40:7: branch_false: ...to here
libnbd-1.23.9/info/uri.c:40:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/info/uri.c:43:5: branch_true: ...to here
libnbd-1.23.9/info/uri.c:43:5: danger: ‘nbd_get_uri(nbd)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   41|       fputs (uri, fp);
#   42|     else
#   43|->     print_json_string (uri);
#   44|     fputc ('\n', fp);
#   45|     free (uri);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
libnbd-1.23.9/lib/api.c:298:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:291:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:292:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:295:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:297:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:297:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:298:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:298:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:298:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:298:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:298:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  296|       char *handle_name_printable =
#  297|           nbd_internal_printable_string (handle_name);
#  298|->     debug (h,
#  299|              "enter: handle_name=%s",
#  300|              handle_name_printable ? handle_name_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
libnbd-1.23.9/lib/api.c:349:11: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_handle_name(h)'
libnbd-1.23.9/lib/api.c:333:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:334:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:342:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:344:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:345:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:345:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:349:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:349:11: danger: 'nbd_unlocked_get_handle_name(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  347|       else {
#  348|         char *ret_printable =
#  349|->           nbd_internal_printable_string (ret);
#  350|         debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
#  351|         free (ret_printable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
libnbd-1.23.9/lib/api.c:350:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:333:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:334:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:344:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:345:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:345:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:349:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:349:11: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:350:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:350:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:350:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:350:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:350:7: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  348|         char *ret_printable =
#  349|             nbd_internal_printable_string (ret);
#  350|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
#  351|         free (ret_printable);
#  352|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
libnbd-1.23.9/lib/api.c:350:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_handle_name(h)'
libnbd-1.23.9/lib/api.c:333:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:334:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:342:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:344:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:345:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:345:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:349:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:350:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:350:7: danger: 'nbd_unlocked_get_handle_name(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  348|         char *ret_printable =
#  349|             nbd_internal_printable_string (ret);
#  350|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
#  351|         free (ret_printable);
#  352|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
libnbd-1.23.9/lib/api.c:471:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:464:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:465:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:468:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:470:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:470:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:471:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:471:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:471:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:471:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:471:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  469|       char *export_name_printable =
#  470|           nbd_internal_printable_string (export_name);
#  471|->     debug (h,
#  472|              "enter: export_name=%s",
#  473|              export_name_printable ? export_name_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
libnbd-1.23.9/lib/api.c:527:11: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_export_name(h)'
libnbd-1.23.9/lib/api.c:511:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:512:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:520:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:522:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:523:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:523:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:527:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:527:11: danger: 'nbd_unlocked_get_export_name(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  525|       else {
#  526|         char *ret_printable =
#  527|->           nbd_internal_printable_string (ret);
#  528|         debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
#  529|         free (ret_printable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
libnbd-1.23.9/lib/api.c:528:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:511:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:512:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:522:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:523:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:523:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:527:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:527:11: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:528:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:528:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:528:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:528:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:528:7: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  526|         char *ret_printable =
#  527|             nbd_internal_printable_string (ret);
#  528|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
#  529|         free (ret_printable);
#  530|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
libnbd-1.23.9/lib/api.c:528:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_export_name(h)'
libnbd-1.23.9/lib/api.c:511:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:512:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:520:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:522:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:523:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:523:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:527:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:528:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:528:7: danger: 'nbd_unlocked_get_export_name(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  526|         char *ret_printable =
#  527|             nbd_internal_printable_string (ret);
#  528|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
#  529|         free (ret_printable);
#  530|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
libnbd-1.23.9/lib/api.c:1015:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:1008:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1009:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1012:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1014:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1014:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1015:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1015:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1015:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1015:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1015:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 1013|       char *dir_printable =
# 1014|           nbd_internal_printable_string (dir);
# 1015|->     debug (h,
# 1016|              "enter: dir=%s",
# 1017|              dir_printable ? dir_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
libnbd-1.23.9/lib/api.c:1160:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:1153:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1154:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1157:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1159:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1159:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1160:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1160:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1160:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1160:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1160:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1158|       char *username_printable =
# 1159|           nbd_internal_printable_string (username);
# 1160|->     debug (h,
# 1161|              "enter: username=%s",
# 1162|              username_printable ? username_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
libnbd-1.23.9/lib/api.c:1216:11: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_username(h)'
libnbd-1.23.9/lib/api.c:1200:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1201:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1209:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1211:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1212:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1212:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:1216:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:1216:11: danger: 'nbd_unlocked_get_tls_username(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 1214|       else {
# 1215|         char *ret_printable =
# 1216|->           nbd_internal_printable_string (ret);
# 1217|         debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 1218|         free (ret_printable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
libnbd-1.23.9/lib/api.c:1217:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:1200:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1201:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1211:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1212:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1212:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:1216:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:1216:11: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1217:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1217:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1217:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1217:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1217:7: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
# 1215|         char *ret_printable =
# 1216|             nbd_internal_printable_string (ret);
# 1217|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 1218|         free (ret_printable);
# 1219|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
libnbd-1.23.9/lib/api.c:1217:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_username(h)'
libnbd-1.23.9/lib/api.c:1200:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1201:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1209:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1211:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1212:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1212:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:1216:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:1217:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1217:7: danger: 'nbd_unlocked_get_tls_username(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
# 1215|         char *ret_printable =
# 1216|             nbd_internal_printable_string (ret);
# 1217|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 1218|         free (ret_printable);
# 1219|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
libnbd-1.23.9/lib/api.c:1258:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:1251:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1252:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1255:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1257:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1257:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1258:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1258:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1258:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1258:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1258:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 1256|       char *hostname_printable =
# 1257|           nbd_internal_printable_string (hostname);
# 1258|->     debug (h,
# 1259|              "enter: hostname=%s",
# 1260|              hostname_printable ? hostname_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
libnbd-1.23.9/lib/api.c:1314:11: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_hostname(h)'
libnbd-1.23.9/lib/api.c:1298:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1299:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1307:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1309:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1310:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1310:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:1314:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:1314:11: danger: 'nbd_unlocked_get_tls_hostname(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
# 1312|       else {
# 1313|         char *ret_printable =
# 1314|->           nbd_internal_printable_string (ret);
# 1315|         debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 1316|         free (ret_printable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
libnbd-1.23.9/lib/api.c:1315:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:1298:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1299:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1309:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1310:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1310:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:1314:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:1314:11: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1315:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1315:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1315:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1315:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1315:7: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
# 1313|         char *ret_printable =
# 1314|             nbd_internal_printable_string (ret);
# 1315|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 1316|         free (ret_printable);
# 1317|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
libnbd-1.23.9/lib/api.c:1315:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_hostname(h)'
libnbd-1.23.9/lib/api.c:1298:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1299:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1307:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1309:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1310:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1310:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:1314:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:1315:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1315:7: danger: 'nbd_unlocked_get_tls_hostname(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 1313|         char *ret_printable =
# 1314|             nbd_internal_printable_string (ret);
# 1315|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 1316|         free (ret_printable);
# 1317|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
libnbd-1.23.9/lib/api.c:1356:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:1349:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1350:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1353:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1355:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1355:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:1356:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1356:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1356:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:1356:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:1356:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
# 1354|       char *filename_printable =
# 1355|           nbd_internal_printable_string (filename);
# 1356|->     debug (h,
# 1357|              "enter: filename=%s",
# 1358|              filename_printable ? filename_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
libnbd-1.23.9/lib/api.c:2531:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:2524:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2525:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2528:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2530:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2530:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:2531:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2531:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2531:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2531:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2531:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 2529|       char *queries_printable =
# 2530|           nbd_internal_printable_string_list (queries);
# 2531|->     debug (h,
# 2532|              "enter: queries=%s context=%s",
# 2533|              queries_printable ? queries_printable : "", "<fun>");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
libnbd-1.23.9/lib/api.c:2663:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:2656:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2657:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2660:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2662:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2662:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:2663:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2663:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2663:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2663:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2663:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 2661|       char *queries_printable =
# 2662|           nbd_internal_printable_string_list (queries);
# 2663|->     debug (h,
# 2664|              "enter: queries=%s context=%s",
# 2665|              queries_printable ? queries_printable : "", "<fun>");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
libnbd-1.23.9/lib/api.c:2734:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:2727:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2728:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2731:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2733:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2733:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:2734:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2734:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2734:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2734:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2734:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
# 2732|       char *name_printable =
# 2733|           nbd_internal_printable_string (name);
# 2734|->     debug (h,
# 2735|              "enter: name=%s",
# 2736|              name_printable ? name_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
libnbd-1.23.9/lib/api.c:2823:11: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_meta_context(h,  i)'
libnbd-1.23.9/lib/api.c:2806:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2807:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2816:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:2818:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2819:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2819:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:2823:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:2823:11: danger: 'nbd_unlocked_get_meta_context(h,  i)' leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
# 2821|       else {
# 2822|         char *ret_printable =
# 2823|->           nbd_internal_printable_string (ret);
# 2824|         debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 2825|         free (ret_printable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
libnbd-1.23.9/lib/api.c:2824:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:2806:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2807:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2818:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2819:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2819:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:2823:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:2823:11: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:2824:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2824:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2824:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2824:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2824:7: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
# 2822|         char *ret_printable =
# 2823|             nbd_internal_printable_string (ret);
# 2824|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 2825|         free (ret_printable);
# 2826|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
libnbd-1.23.9/lib/api.c:2824:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_meta_context(h,  i)'
libnbd-1.23.9/lib/api.c:2806:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2807:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2816:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:2818:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2819:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:2819:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:2823:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:2824:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:2824:7: danger: 'nbd_unlocked_get_meta_context(h,  i)' leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 2822|         char *ret_printable =
# 2823|             nbd_internal_printable_string (ret);
# 2824|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 2825|         free (ret_printable);
# 2826|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
libnbd-1.23.9/lib/api.c:3102:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:3095:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3096:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3099:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3101:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3101:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3102:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3102:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3102:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3102:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3102:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
# 3100|       char *uri_printable =
# 3101|           nbd_internal_printable_string (uri);
# 3102|->     debug (h,
# 3103|              "enter: uri=%s",
# 3104|              uri_printable ? uri_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
libnbd-1.23.9/lib/api.c:3165:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:3158:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3159:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3162:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3164:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3164:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3165:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3165:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3165:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3165:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3165:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
# 3163|       char *unixsocket_printable =
# 3164|           nbd_internal_printable_string (unixsocket);
# 3165|->     debug (h,
# 3166|              "enter: unixsocket=%s",
# 3167|              unixsocket_printable ? unixsocket_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
libnbd-1.23.9/lib/api.c:3284:9: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_internal_printable_string(hostname)'
libnbd-1.23.9/lib/api.c:3276:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3277:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3280:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3282:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3282:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3284:9: danger: 'nbd_internal_printable_string(hostname)' leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
# 3282|           nbd_internal_printable_string (hostname);
# 3283|       char *port_printable =
# 3284|->         nbd_internal_printable_string (port);
# 3285|       debug (h,
# 3286|              "enter: hostname=%s port=%s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
libnbd-1.23.9/lib/api.c:3285:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:3276:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3277:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3280:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3282:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3284:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3285:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3285:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3285:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3285:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
# 3283|       char *port_printable =
# 3284|           nbd_internal_printable_string (port);
# 3285|->     debug (h,
# 3286|              "enter: hostname=%s port=%s",
# 3287|              hostname_printable ? hostname_printable : "",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
libnbd-1.23.9/lib/api.c:3410:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:3403:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3404:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3407:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3409:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3409:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3410:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3410:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3410:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3410:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3410:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
# 3408|       char *argv_printable =
# 3409|           nbd_internal_printable_string_list (argv);
# 3410|->     debug (h,
# 3411|              "enter: argv=%s",
# 3412|              argv_printable ? argv_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
libnbd-1.23.9/lib/api.c:3473:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:3466:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3467:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3470:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3472:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3472:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3473:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3473:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3473:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3473:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3473:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
# 3471|       char *argv_printable =
# 3472|           nbd_internal_printable_string_list (argv);
# 3473|->     debug (h,
# 3474|              "enter: argv=%s",
# 3475|              argv_printable ? argv_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
libnbd-1.23.9/lib/api.c:3536:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:3529:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3530:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3533:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3535:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3535:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3536:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3536:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3536:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3536:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3536:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
# 3534|       char *socket_name_printable =
# 3535|           nbd_internal_printable_string (socket_name);
# 3536|->     debug (h,
# 3537|              "enter: socket_name=%s",
# 3538|              socket_name_printable ? socket_name_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
libnbd-1.23.9/lib/api.c:3592:11: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_socket_activation_name(h)'
libnbd-1.23.9/lib/api.c:3576:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3577:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3585:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3587:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3588:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3588:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:3592:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:3592:11: danger: 'nbd_unlocked_get_socket_activation_name(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
# 3590|       else {
# 3591|         char *ret_printable =
# 3592|->           nbd_internal_printable_string (ret);
# 3593|         debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 3594|         free (ret_printable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
libnbd-1.23.9/lib/api.c:3593:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:3576:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3577:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3587:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3588:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3588:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:3592:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:3592:11: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3593:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3593:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3593:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3593:7: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3593:7: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/6)
# 3591|         char *ret_printable =
# 3592|             nbd_internal_printable_string (ret);
# 3593|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 3594|         free (ret_printable);
# 3595|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
libnbd-1.23.9/lib/api.c:3593:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_socket_activation_name(h)'
libnbd-1.23.9/lib/api.c:3576:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3577:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3585:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:3587:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3588:8: branch_true: ...to here
libnbd-1.23.9/lib/api.c:3588:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/api.c:3592:11: branch_false: ...to here
libnbd-1.23.9/lib/api.c:3593:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:3593:7: danger: 'nbd_unlocked_get_socket_activation_name(h)' leaks here; was allocated at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
# 3591|         char *ret_printable =
# 3592|             nbd_internal_printable_string (ret);
# 3593|->       debug (h, "leave: ret=%s", ret_printable ? ret_printable : "");
# 3594|         free (ret_printable);
# 3595|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
libnbd-1.23.9/lib/api.c:4264:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:4257:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:4258:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:4261:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:4263:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:4263:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:4264:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:4264:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:4264:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:4264:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:4264:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
# 4262|       char *metacontext_printable =
# 4263|           nbd_internal_printable_string (metacontext);
# 4264|->     debug (h,
# 4265|              "enter: metacontext=%s",
# 4266|              metacontext_printable ? metacontext_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
libnbd-1.23.9/lib/api.c:5191:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:5184:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5185:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5188:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5190:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5190:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:5191:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5191:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5191:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5191:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5191:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
# 5189|       char *contexts_printable =
# 5190|           nbd_internal_printable_string_list (contexts);
# 5191|->     debug (h,
# 5192|              "enter: count=%"PRIu64" offset=%"PRIu64" contexts=%s "
# 5193|              "extent64=%s flags=0x%x",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
libnbd-1.23.9/lib/api.c:5396:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:5389:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5390:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5393:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5395:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5395:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:5396:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5396:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5396:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5396:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5396:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
# 5394|       char *uri_printable =
# 5395|           nbd_internal_printable_string (uri);
# 5396|->     debug (h,
# 5397|              "enter: uri=%s",
# 5398|              uri_printable ? uri_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
libnbd-1.23.9/lib/api.c:5459:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:5452:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5453:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5456:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5458:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5458:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:5459:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5459:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5459:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5459:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5459:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/4)
# 5457|       char *unixsocket_printable =
# 5458|           nbd_internal_printable_string (unixsocket);
# 5459|->     debug (h,
# 5460|              "enter: unixsocket=%s",
# 5461|              unixsocket_printable ? unixsocket_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
libnbd-1.23.9/lib/api.c:5578:9: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_internal_printable_string(hostname)'
libnbd-1.23.9/lib/api.c:5570:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5571:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5574:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5576:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5576:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:5578:9: danger: 'nbd_internal_printable_string(hostname)' leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
# 5576|           nbd_internal_printable_string (hostname);
# 5577|       char *port_printable =
# 5578|->         nbd_internal_printable_string (port);
# 5579|       debug (h,
# 5580|              "enter: hostname=%s port=%s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
libnbd-1.23.9/lib/api.c:5579:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:5570:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5571:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5574:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5576:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5576:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:5579:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5579:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5579:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5579:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
# 5577|       char *port_printable =
# 5578|           nbd_internal_printable_string (port);
# 5579|->     debug (h,
# 5580|              "enter: hostname=%s port=%s",
# 5581|              hostname_printable ? hostname_printable : "",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
libnbd-1.23.9/lib/api.c:5704:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:5697:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5698:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5701:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5703:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5703:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:5704:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5704:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5704:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5704:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5704:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
# 5702|       char *argv_printable =
# 5703|           nbd_internal_printable_string_list (argv);
# 5704|->     debug (h,
# 5705|              "enter: argv=%s",
# 5706|              argv_printable ? argv_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
libnbd-1.23.9/lib/api.c:5767:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:5760:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5761:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5764:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5766:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5766:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:5767:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5767:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5767:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:5767:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:5767:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
# 5765|       char *argv_printable =
# 5766|           nbd_internal_printable_string_list (argv);
# 5767|->     debug (h,
# 5768|              "enter: argv=%s",
# 5769|              argv_printable ? argv_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
libnbd-1.23.9/lib/api.c:6295:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:6288:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6289:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6292:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6294:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6294:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:6295:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6295:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6295:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6295:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6295:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
# 6293|       char *queries_printable =
# 6294|           nbd_internal_printable_string_list (queries);
# 6295|->     debug (h,
# 6296|              "enter: queries=%s context=%s completion=%s",
# 6297|              queries_printable ? queries_printable : "", "<fun>",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
libnbd-1.23.9/lib/api.c:6435:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:6428:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6429:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6432:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6434:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6434:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:6435:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6435:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6435:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:6435:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:6435:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/4)
# 6433|       char *queries_printable =
# 6434|           nbd_internal_printable_string_list (queries);
# 6435|->     debug (h,
# 6436|              "enter: queries=%s context=%s completion=%s",
# 6437|              queries_printable ? queries_printable : "", "<fun>",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
libnbd-1.23.9/lib/api.c:7228:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:7221:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7222:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7225:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7227:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7227:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:7228:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7228:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7228:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7228:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7228:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/4)
# 7226|       char *contexts_printable =
# 7227|           nbd_internal_printable_string_list (contexts);
# 7228|->     debug (h,
# 7229|              "enter: count=%"PRIu64" offset=%"PRIu64" contexts=%s "
# 7230|              "extent64=%s completion=%s flags=0x%x",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
libnbd-1.23.9/lib/api.c:7994:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libnbd-1.23.9/lib/api.c:7987:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7988:3: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7991:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7993:9: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7993:9: acquire_memory: allocated here
libnbd-1.23.9/lib/api.c:7994:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7994:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7994:5: branch_true: following 'true' branch...
libnbd-1.23.9/lib/api.c:7994:5: branch_true: ...to here
libnbd-1.23.9/lib/api.c:7994:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/4)
# 7992|       char *uri_printable =
# 7993|           nbd_internal_printable_string (uri);
# 7994|->     debug (h,
# 7995|              "enter: uri=%s",
# 7996|              uri_printable ? uri_printable : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
libnbd-1.23.9/lib/crypto.c:125:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_username(h)'
libnbd-1.23.9/lib/crypto.c:389:1: enter_function: entry to 'set_up_psk_credentials'
libnbd-1.23.9/lib/crypto.c:398:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/crypto.c:403:14: branch_false: ...to here
libnbd-1.23.9/lib/crypto.c:403:14: acquire_memory: allocated here
libnbd-1.23.9/lib/crypto.c:403:14: call_function: calling 'nbd_unlocked_get_tls_username' from 'set_up_psk_credentials'
#  123|       ret = strdup (h->tls_username);
#  124|       if (ret == NULL) {
#  125|->       set_error (errno, "strdup");
#  126|         return NULL;
#  127|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
libnbd-1.23.9/lib/crypto.c:140:7: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_username(h)'
libnbd-1.23.9/lib/crypto.c:389:1: enter_function: entry to 'set_up_psk_credentials'
libnbd-1.23.9/lib/crypto.c:398:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/crypto.c:403:14: branch_false: ...to here
libnbd-1.23.9/lib/crypto.c:403:14: acquire_memory: allocated here
libnbd-1.23.9/lib/crypto.c:403:14: call_function: calling 'nbd_unlocked_get_tls_username' from 'set_up_psk_credentials'
#  138|       ret = strdup (s);
#  139|       if (ret == NULL) {
#  140|->       set_error (errno, "strdup");
#  141|         return NULL;
#  142|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
libnbd-1.23.9/lib/crypto.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_username(h)'
libnbd-1.23.9/lib/crypto.c:389:1: enter_function: entry to 'set_up_psk_credentials'
libnbd-1.23.9/lib/crypto.c:398:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/crypto.c:403:14: branch_false: ...to here
libnbd-1.23.9/lib/crypto.c:403:14: acquire_memory: allocated here
libnbd-1.23.9/lib/crypto.c:403:14: call_function: calling 'nbd_unlocked_get_tls_username' from 'set_up_psk_credentials'
#  152|       }
#  153|   
#  154|->     if (getlogin_r (str.ptr, str.cap) == 0) {
#  155|         return str.ptr;
#  156|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
libnbd-1.23.9/lib/errors.c:94:35: warning[-Wanalyzer-malloc-leak]: leak of 'allocate_last_error_on_demand()'
libnbd-1.23.9/lib/errors.c:143:1: enter_function: entry to 'nbd_internal_get_error_context'
libnbd-1.23.9/lib/errors.c:145:35: call_function: calling 'allocate_last_error_on_demand' from 'nbd_internal_get_error_context'
libnbd-1.23.9/lib/errors.c:145:35: return_function: returning to 'nbd_internal_get_error_context' from 'allocate_last_error_on_demand'
libnbd-1.23.9/lib/errors.c:147:10: branch_true: following 'true' branch...
libnbd-1.23.9/lib/errors.c:147:10: branch_true: ...to here
libnbd-1.23.9/lib/errors.c:94:35: danger: 'allocate_last_error_on_demand()' leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#   92|   allocate_last_error_on_demand (void)
#   93|   {
#   94|->   struct last_error *last_error = pthread_getspecific (errors_key);
#   95|   
#   96|     if (!last_error) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def257]
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:233:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'nbd_internal_socket(1, 1, 0, 0)'
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:193:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:194:3: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:194:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:195:3: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:195:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:203:12: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:204:6: branch_false: following 'false' branch (when 'tmpdir' is non-NULL)...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:209:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:209:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:214:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:214:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:219:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:220:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:225:3: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:227:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:232:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:232:6: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:233:5: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:233:5: danger: 'nbd_internal_socket(1, 1, 0, 0)' leaks here

Error: GCC_ANALYZER_WARNING (CWE-775): [#def258]
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:237:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'nbd_internal_socket(1, 1, 0, 0)'
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:193:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:194:3: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:194:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:195:3: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:195:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:203:12: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:204:6: branch_false: following 'false' branch (when 'tmpdir' is non-NULL)...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:209:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:209:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:214:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:214:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:219:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:220:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:225:3: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:227:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:232:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:232:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:237:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:237:7: danger: 'nbd_internal_socket(1, 1, 0, 0)' leaks here

Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:239:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'nbd_internal_socket(1, 1, 0, 0)'
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:193:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:194:3: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:194:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:195:3: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:195:3: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:203:12: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:204:6: branch_false: following 'false' branch (when 'tmpdir' is non-NULL)...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:209:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:209:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:214:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:214:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:219:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:220:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:225:3: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:227:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:232:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:232:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:237:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:237:6: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:239:5: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:239:5: danger: 'nbd_internal_socket(1, 1, 0, 0)' leaks here

Error: GCC_ANALYZER_WARNING (CWE-775): [#def260]
libnbd-1.23.9/lib/generator/states-connect-socket-activation.c:339:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'nbd_internal_socket(1, 1, 0, 0)'
libnbd-1.23.9/lib/lib/states.c:1778:1: enter_function: entry to 'nbd_internal_enter_STATE_CONNECT_SA_START'
libnbd-1.23.9/lib/lib/states.c:1786:7: call_function: calling 'enter_STATE_CONNECT_SA_START' from 'nbd_internal_enter_STATE_CONNECT_SA_START'

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:110:7: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:79:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:87:37: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:89:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:95:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:101:15: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:101:15: acquire_memory: allocated here
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:102:12: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:108:9: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:110:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:110:7: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-list.c:110:7: danger: 'tmp' leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: warning[-Wanalyzer-malloc-leak]: leak of 'strndup(&*h.sbuf.or.payload.context.str, (long unsigned int)__builtin_bswap32(*h.sbuf.or.option_reply.replylen) + 18446744073709551612)'
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:234:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:239:9: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:241:27: acquire_memory: allocated here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:243:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: danger: 'strndup(&*h.sbuf.or.payload.context.str, (long unsigned int)__builtin_bswap32(*h.sbuf.or.option_reply.replylen) + 18446744073709551612)' leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:251:9: warning[-Wanalyzer-malloc-leak]: leak of 'strndup(&*h.sbuf.or.payload.context.str, (long unsigned int)__builtin_bswap32(*h.sbuf.or.option_reply.replylen) + 18446744073709551612)'
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:234:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:239:9: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:241:27: acquire_memory: allocated here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:243:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:250:11: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:251:9: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:251:9: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:251:9: danger: 'strndup(&*h.sbuf.or.payload.context.str, (long unsigned int)__builtin_bswap32(*h.sbuf.or.option_reply.replylen) + 18446744073709551612)' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of 'meta_context.name'
libnbd-1.23.9/lib/lib/states.c:3865:1: enter_function: entry to 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY'
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:234:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:239:9: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:241:27: acquire_memory: allocated here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:243:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:250:11: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:252:10: branch_false: following 'false' branch (when 'opt != 9')...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:254:16: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:254:16: call_function: calling 'meta_vector_append' from 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY'
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:254:16: return_function: returning to 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY' from 'meta_vector_append'
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:254:15: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:255:9: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:255:9: danger: 'meta_context.name' leaks here; was allocated at [(8)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
libnbd-1.23.9/lib/internal.h:75:1: warning[-Wanalyzer-malloc-leak]: leak of 'meta_context.name'
libnbd-1.23.9/lib/lib/states.c:3865:1: enter_function: entry to 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY'
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:234:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:237:7: branch_true: following 'true' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:239:9: branch_true: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:241:27: acquire_memory: allocated here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:243:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:248:7: branch_false: following 'false' branch...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:250:11: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:252:10: branch_false: following 'false' branch (when 'opt != 9')...
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:254:16: branch_false: ...to here
libnbd-1.23.9/lib/generator/states-newstyle-opt-meta-context.c:254:16: call_function: calling 'meta_vector_append' from 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY'
#   73|     uint32_t context_id;          /* Context ID negotiated with the server. */
#   74|   };
#   75|-> DEFINE_VECTOR_TYPE (meta_vector, struct meta_context);
#   76|   
#   77|   DEFINE_VECTOR_TYPE(uint32_vector, uint32_t);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
libnbd-1.23.9/lib/internal.h:77:1: warning[-Wanalyzer-malloc-leak]: leak of 'ids'
libnbd-1.23.9/lib/rw.c:611:1: enter_function: entry to 'nbd_unlocked_aio_block_status_filter'
libnbd-1.23.9/lib/rw.c:624:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/rw.c:627:7: branch_false: ...to here
libnbd-1.23.9/lib/rw.c:652:9: acquire_memory: allocated here
libnbd-1.23.9/lib/rw.c:653:6: branch_false: following 'false' branch (when 'ids' is non-NULL)...
libnbd-1.23.9/lib/rw.c:657:34: branch_false: ...to here
libnbd-1.23.9/lib/rw.c:657:7: call_function: calling 'uint32_vector_append' from 'nbd_unlocked_aio_block_status_filter'
#   75|   DEFINE_VECTOR_TYPE (meta_vector, struct meta_context);
#   76|   
#   77|-> DEFINE_VECTOR_TYPE(uint32_vector, uint32_t);
#   78|   
#   79|   struct export {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
libnbd-1.23.9/lib/rw.c:333:5: warning[-Wanalyzer-malloc-leak]: leak of 'cmd'
libnbd-1.23.9/lib/rw.c:220:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/rw.c:224:7: branch_false: ...to here
libnbd-1.23.9/lib/rw.c:224:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/rw.c:229:6: branch_false: ...to here
libnbd-1.23.9/lib/rw.c:293:9: acquire_memory: allocated here
libnbd-1.23.9/lib/rw.c:294:6: branch_false: following 'false' branch (when 'cmd' is non-NULL)...
libnbd-1.23.9/lib/rw.c:298:3: branch_false: ...to here
libnbd-1.23.9/lib/rw.c:305:6: branch_false: following 'false' branch (when 'cb' is NULL)...
libnbd-1.23.9/lib/rw.c:319:22: branch_false: ...to here
libnbd-1.23.9/lib/rw.c:332:6: branch_true: following 'true' branch...
libnbd-1.23.9/lib/rw.c:333:5: branch_true: ...to here
libnbd-1.23.9/lib/rw.c:333:5: danger: 'cmd' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  331|     h->in_flight++;
#  332|     if (h->cmds_to_issue != NULL) {
#  333|->     assert (nbd_internal_is_state_processing (get_next_state (h)));
#  334|       h->cmds_to_issue_tail = h->cmds_to_issue_tail->next = cmd;
#  335|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
libnbd-1.23.9/lib/uri.c:66:1: warning[-Wanalyzer-malloc-leak]: leak of 'q.value'
libnbd-1.23.9/lib/uri.c:79:1: enter_function: entry to 'parse_uri_queries'
libnbd-1.23.9/lib/uri.c:86:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/uri.c:89:10: branch_true: following 'true' branch...
libnbd-1.23.9/lib/uri.c:93:11: branch_true: ...to here
libnbd-1.23.9/lib/uri.c:94:8: branch_false: following 'false' branch (when 'end' is non-NULL)...
libnbd-1.23.9/lib/uri.c:100:10: branch_false: ...to here
libnbd-1.23.9/lib/uri.c:101:8: branch_false: following 'false' branch...
libnbd-1.23.9/lib/uri.c:103:8: branch_false: ...to here
libnbd-1.23.9/lib/uri.c:106:15: branch_true: following 'true' branch (when 'eq' is NULL)...
libnbd-1.23.9/lib/uri.c:110:45: branch_true: ...to here
libnbd-1.23.9/lib/uri.c:111:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/uri.c:134:8: branch_false: ...to here
libnbd-1.23.9/lib/uri.c:134:8: branch_true: following 'true' branch (when '<unknown>' is NULL)...
libnbd-1.23.9/lib/uri.c:135:17: branch_true: ...to here
libnbd-1.23.9/lib/uri.c:135:17: acquire_memory: allocated here
libnbd-1.23.9/lib/uri.c:136:10: branch_false: following 'false' branch...
libnbd-1.23.9/lib/uri.c:143:9: branch_false: ...to here
libnbd-1.23.9/lib/uri.c:143:9: call_function: calling 'uri_query_list_append' from 'parse_uri_queries'
#   64|   };
#   65|   
#   66|-> DEFINE_VECTOR_TYPE (uri_query_list, struct uri_query);
#   67|   
#   68|   static void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
libnbd-1.23.9/lib/utils.c:530:12: warning[-Wanalyzer-malloc-leak]: leak of 'get_path()'
libnbd-1.23.9/lib/utils.c:682:1: enter_function: entry to 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:695:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:702:3: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:704:6: branch_true: following 'true' branch...
libnbd-1.23.9/lib/utils.c:709:16: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:709:16: acquire_memory: allocated here
libnbd-1.23.9/lib/utils.c:709:16: call_function: calling 'get_path' from 'nbd_internal_execvpe_init'
#  528|     path = getenv ("PATH");
#  529|     if ((env_path_found = (path != NULL)))
#  530|->     path = strdup (path);
#  531|     /* This is where we'd unlock the environment. */
#  532|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
libnbd-1.23.9/lib/utils.c:551:6: warning[-Wanalyzer-malloc-leak]: leak of 'get_path()'
libnbd-1.23.9/lib/utils.c:682:1: enter_function: entry to 'nbd_internal_execvpe_init'
libnbd-1.23.9/lib/utils.c:695:6: branch_false: following 'false' branch...
libnbd-1.23.9/lib/utils.c:702:3: branch_false: ...to here
libnbd-1.23.9/lib/utils.c:704:6: branch_true: following 'true' branch...
libnbd-1.23.9/lib/utils.c:709:16: branch_true: ...to here
libnbd-1.23.9/lib/utils.c:709:16: acquire_memory: allocated here
libnbd-1.23.9/lib/utils.c:709:16: call_function: calling 'get_path' from 'nbd_internal_execvpe_init'
#  549|   
#  550|     path = malloc (path_size);
#  551|->   if (path == NULL)
#  552|       return NULL;
#  553|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
libnbd-1.23.9/ocaml/handle.c:47:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/ocaml/handle.c:36:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_create’
libnbd-1.23.9/ocaml/handle.c:38:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/handle.c:38:3: branch_false: ...to here
libnbd-1.23.9/ocaml/handle.c:42:7: acquire_memory: allocated here
libnbd-1.23.9/ocaml/handle.c:43:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/handle.c:46:8: branch_false: ...to here
libnbd-1.23.9/ocaml/handle.c:46:8: call_function: calling ‘Val_nbd’ from ‘nbd_internal_ocaml_nbd_create’
#   45|   
#   46|     rv = Val_nbd (h);
#   47|->   CAMLreturn (rv);
#   48|   }
#   49|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
libnbd-1.23.9/ocaml/nbd-c.c:58:5: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4003:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4010:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4015:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4017:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4025:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
#   56|     struct user_data *data = calloc (1, sizeof *data);
#   57|     if (data == NULL)
#   58|->     caml_raise_out_of_memory ();
#   59|     return data;
#   60|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
libnbd-1.23.9/ocaml/nbd-c.c:473:9: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4450:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4457:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4462:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_trim’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4464:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4472:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4475:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4476:27: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4476:13: call_function: calling ‘CMD_FLAG_val’ from ‘nbd_internal_ocaml_nbd_aio_trim’
#  471|         bit = Int_val (Field (i, 0)); /* UNKNOWN of int */
#  472|         if (bit > 31)
#  473|->         caml_invalid_argument ("bitmask value out of range");
#  474|         else
#  475|           r |= 1u << bit;

Error: CPPCHECK_WARNING (CWE-758): [#def274]
libnbd-1.23.9/ocaml/nbd-c.c:529: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  527|     rv = Val_emptylist;
#  528|     for (i = 31; i >= 0; i--) {
#  529|->     if (flags & (1 << i)) {
#  530|         switch (1 << i) {
#  531|         case LIBNBD_HANDSHAKE_FLAG_FIXED_NEWSTYLE: v = Val_int (0); break;

Error: CPPCHECK_WARNING (CWE-758): [#def275]
libnbd-1.23.9/ocaml/nbd-c.c:600: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  598|     rv = Val_emptylist;
#  599|     for (i = 31; i >= 0; i--) {
#  600|->     if (flags & (1 << i)) {
#  601|         switch (1 << i) {
#  602|         case LIBNBD_STRICT_COMMANDS: v = Val_int (0); break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
libnbd-1.23.9/ocaml/nbd-c.c:768:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:751:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_set_debug_callback’
libnbd-1.23.9/ocaml/nbd-c.c:753:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:753:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:757:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:763:39: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:763:39: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_set_debug_callback’
libnbd-1.23.9/ocaml/nbd-c.c:763:39: return_function: returning to ‘nbd_internal_ocaml_nbd_set_debug_callback’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:768:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/7)
#  766|      */
#  767|     debug_user_data->fnv = debugv;
#  768|->   caml_register_generational_global_root (&debug_user_data->fnv);
#  769|     debug_callback.callback = debug_wrapper;
#  770|     debug_callback.user_data = debug_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
libnbd-1.23.9/ocaml/nbd-c.c:940:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_handle_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:927:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:927:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:931:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:938:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:939:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:940:3: danger: ‘nbd_get_handle_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
#  938|     caml_enter_blocking_section ();
#  939|     r =  nbd_get_handle_name (h);
#  940|->   caml_leave_blocking_section ();
#  941|   
#  942|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
libnbd-1.23.9/ocaml/nbd-c.c:945:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_handle_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:927:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:927:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:931:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:938:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:939:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:942:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:945:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:945:8: danger: ‘nbd_get_handle_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
#  943|       nbd_internal_ocaml_raise_error ();
#  944|   
#  945|->   rv = caml_copy_string (r);
#  946|     free (r);
#  947|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
libnbd-1.23.9/ocaml/nbd-c.c:1062:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_export_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1049:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1049:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1053:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1060:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1061:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1062:3: danger: ‘nbd_get_export_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
# 1060|     caml_enter_blocking_section ();
# 1061|     r =  nbd_get_export_name (h);
# 1062|->   caml_leave_blocking_section ();
# 1063|   
# 1064|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
libnbd-1.23.9/ocaml/nbd-c.c:1067:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_export_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1049:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1049:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1053:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1060:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1061:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1064:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1067:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1067:8: danger: ‘nbd_get_export_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
# 1065|       nbd_internal_ocaml_raise_error ();
# 1066|   
# 1067|->   rv = caml_copy_string (r);
# 1068|     free (r);
# 1069|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
libnbd-1.23.9/ocaml/nbd-c.c:1190:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_canonical_export_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1177:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1177:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1181:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1188:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1189:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1190:3: danger: ‘nbd_get_canonical_export_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
# 1188|     caml_enter_blocking_section ();
# 1189|     r =  nbd_get_canonical_export_name (h);
# 1190|->   caml_leave_blocking_section ();
# 1191|   
# 1192|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
libnbd-1.23.9/ocaml/nbd-c.c:1195:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_canonical_export_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1177:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1177:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1181:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1188:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1189:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1192:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1195:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1195:8: danger: ‘nbd_get_canonical_export_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
# 1193|       nbd_internal_ocaml_raise_error ();
# 1194|   
# 1195|->   rv = caml_copy_string (r);
# 1196|     free (r);
# 1197|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
libnbd-1.23.9/ocaml/nbd-c.c:1216:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_export_description(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1203:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1203:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1207:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1214:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1215:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1216:3: danger: ‘nbd_get_export_description(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
# 1214|     caml_enter_blocking_section ();
# 1215|     r =  nbd_get_export_description (h);
# 1216|->   caml_leave_blocking_section ();
# 1217|   
# 1218|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
libnbd-1.23.9/ocaml/nbd-c.c:1221:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_export_description(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1203:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1203:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1207:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1214:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1215:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1218:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1221:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1221:8: danger: ‘nbd_get_export_description(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
# 1219|       nbd_internal_ocaml_raise_error ();
# 1220|   
# 1221|->   rv = caml_copy_string (r);
# 1222|     free (r);
# 1223|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
libnbd-1.23.9/ocaml/nbd-c.c:1418:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_tls_username(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1405:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1405:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1409:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1416:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1417:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1418:3: danger: ‘nbd_get_tls_username(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
# 1416|     caml_enter_blocking_section ();
# 1417|     r =  nbd_get_tls_username (h);
# 1418|->   caml_leave_blocking_section ();
# 1419|   
# 1420|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
libnbd-1.23.9/ocaml/nbd-c.c:1423:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_tls_username(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1405:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1405:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1409:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1416:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1417:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1420:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1423:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1423:8: danger: ‘nbd_get_tls_username(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
# 1421|       nbd_internal_ocaml_raise_error ();
# 1422|   
# 1423|->   rv = caml_copy_string (r);
# 1424|     free (r);
# 1425|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
libnbd-1.23.9/ocaml/nbd-c.c:1470:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_tls_hostname(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1457:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1457:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1461:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1468:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1469:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1470:3: danger: ‘nbd_get_tls_hostname(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
# 1468|     caml_enter_blocking_section ();
# 1469|     r =  nbd_get_tls_hostname (h);
# 1470|->   caml_leave_blocking_section ();
# 1471|   
# 1472|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
libnbd-1.23.9/ocaml/nbd-c.c:1475:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_tls_hostname(h)’
libnbd-1.23.9/ocaml/nbd-c.c:1457:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1457:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1461:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:1468:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1469:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:1472:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:1475:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:1475:8: danger: ‘nbd_get_tls_hostname(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
# 1473|       nbd_internal_ocaml_raise_error ();
# 1474|   
# 1475|->   rv = caml_copy_string (r);
# 1476|     free (r);
# 1477|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
libnbd-1.23.9/ocaml/nbd-c.c:2052:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:2035:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:2037:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2037:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2041:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2047:38: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2047:38: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:2047:38: return_function: returning to ‘nbd_internal_ocaml_nbd_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:2052:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/7)
# 2050|      */
# 2051|     list_user_data->fnv = listv;
# 2052|->   caml_register_generational_global_root (&list_user_data->fnv);
# 2053|     list_callback.callback = list_wrapper;
# 2054|     list_callback.user_data = list_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
libnbd-1.23.9/ocaml/nbd-c.c:2112:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:2095:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:2097:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2097:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2101:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2107:41: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2107:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:2107:41: return_function: returning to ‘nbd_internal_ocaml_nbd_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:2112:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/7)
# 2110|      */
# 2111|     context_user_data->fnv = contextv;
# 2112|->   caml_register_generational_global_root (&context_user_data->fnv);
# 2113|     context_callback.callback = context_wrapper;
# 2114|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
libnbd-1.23.9/ocaml/nbd-c.c:2150:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:2130:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:2134:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2134:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2138:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2143:29: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2145:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:2145:41: return_function: returning to ‘nbd_internal_ocaml_nbd_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:2150:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/7)
# 2148|      */
# 2149|     context_user_data->fnv = contextv;
# 2150|->   caml_register_generational_global_root (&context_user_data->fnv);
# 2151|     context_callback.callback = context_wrapper;
# 2152|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
libnbd-1.23.9/ocaml/nbd-c.c:2186:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:2169:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:2171:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2171:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2175:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2181:41: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2181:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:2181:41: return_function: returning to ‘nbd_internal_ocaml_nbd_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:2186:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/7)
# 2184|      */
# 2185|     context_user_data->fnv = contextv;
# 2186|->   caml_register_generational_global_root (&context_user_data->fnv);
# 2187|     context_callback.callback = context_wrapper;
# 2188|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
libnbd-1.23.9/ocaml/nbd-c.c:2224:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:2204:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:2208:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2208:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2212:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2217:29: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2219:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:2219:41: return_function: returning to ‘nbd_internal_ocaml_nbd_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:2224:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/7)
# 2222|      */
# 2223|     context_user_data->fnv = contextv;
# 2224|->   caml_register_generational_global_root (&context_user_data->fnv);
# 2225|     context_callback.callback = context_wrapper;
# 2226|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
libnbd-1.23.9/ocaml/nbd-c.c:2310:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_meta_context(h,  i)’
libnbd-1.23.9/ocaml/nbd-c.c:2296:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2296:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2300:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2305:14: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2309:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:2310:3: danger: ‘nbd_get_meta_context(h,  i)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
# 2308|     caml_enter_blocking_section ();
# 2309|     r =  nbd_get_meta_context (h, i);
# 2310|->   caml_leave_blocking_section ();
# 2311|   
# 2312|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
libnbd-1.23.9/ocaml/nbd-c.c:2315:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_meta_context(h,  i)’
libnbd-1.23.9/ocaml/nbd-c.c:2296:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2296:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2300:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2305:14: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2309:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:2312:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2315:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2315:8: danger: ‘nbd_get_meta_context(h,  i)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/4)
# 2313|       nbd_internal_ocaml_raise_error ();
# 2314|   
# 2315|->   rv = caml_copy_string (r);
# 2316|     free (r);
# 2317|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
libnbd-1.23.9/ocaml/nbd-c.c:2660:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_socket_activation_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:2647:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2647:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2651:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2658:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2659:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:2660:3: danger: ‘nbd_get_socket_activation_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
# 2658|     caml_enter_blocking_section ();
# 2659|     r =  nbd_get_socket_activation_name (h);
# 2660|->   caml_leave_blocking_section ();
# 2661|   
# 2662|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
libnbd-1.23.9/ocaml/nbd-c.c:2665:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_socket_activation_name(h)’
libnbd-1.23.9/ocaml/nbd-c.c:2647:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2647:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2651:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:2658:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2659:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:2662:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:2665:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:2665:8: danger: ‘nbd_get_socket_activation_name(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
# 2663|       nbd_internal_ocaml_raise_error ();
# 2664|   
# 2665|->   rv = caml_copy_string (r);
# 2666|     free (r);
# 2667|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
libnbd-1.23.9/ocaml/nbd-c.c:3108:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3082:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:3085:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3085:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3089:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3095:7: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3103:39: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:3103:39: return_function: returning to ‘nbd_internal_ocaml_nbd_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3108:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/7)
# 3106|      */
# 3107|     chunk_user_data->fnv = chunkv;
# 3108|->   caml_register_generational_global_root (&chunk_user_data->fnv);
# 3109|     chunk_callback.callback = chunk_wrapper;
# 3110|     chunk_callback.user_data = chunk_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
libnbd-1.23.9/ocaml/nbd-c.c:3344:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3319:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:3322:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3322:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3326:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3332:7: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3339:40: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:3339:40: return_function: returning to ‘nbd_internal_ocaml_nbd_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3344:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/7)
# 3342|      */
# 3343|     extent_user_data->fnv = extentv;
# 3344|->   caml_register_generational_global_root (&extent_user_data->fnv);
# 3345|     extent_callback.callback = extent_wrapper;
# 3346|     extent_callback.user_data = extent_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
libnbd-1.23.9/ocaml/nbd-c.c:3388:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3362:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:3366:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3366:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3370:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3376:7: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3383:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:3383:42: return_function: returning to ‘nbd_internal_ocaml_nbd_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3388:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/7)
# 3386|      */
# 3387|     extent64_user_data->fnv = extent64v;
# 3388|->   caml_register_generational_global_root (&extent64_user_data->fnv);
# 3389|     extent64_callback.callback = extent64_wrapper;
# 3390|     extent64_callback.user_data = extent64_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
libnbd-1.23.9/ocaml/nbd-c.c:3435:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3406:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:3411:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3411:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3416:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3422:7: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3430:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:3430:42: return_function: returning to ‘nbd_internal_ocaml_nbd_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3435:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/7)
# 3433|      */
# 3434|     extent64_user_data->fnv = extent64v;
# 3435|->   caml_register_generational_global_root (&extent64_user_data->fnv);
# 3436|     extent64_callback.callback = extent64_wrapper;
# 3437|     extent64_callback.user_data = extent64_user_data;

Error: CPPCHECK_WARNING (CWE-457): [#def302]
libnbd-1.23.9/ocaml/nbd-c.c:3537: error[uninitvar]: Uninitialized variable: addr
# 3535|   
# 3536|     caml_enter_blocking_section ();
# 3537|->   r =  nbd_aio_connect (h, addr, addrlen);
# 3538|     caml_leave_blocking_section ();
# 3539|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
libnbd-1.23.9/ocaml/nbd-c.c:3761:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3743:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_go’
libnbd-1.23.9/ocaml/nbd-c.c:3745:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3745:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3749:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3754:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3755:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_go’
libnbd-1.23.9/ocaml/nbd-c.c:3755:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_go’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3756:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3760:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3761:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/7)
# 3759|        */
# 3760|       completion_user_data->fnv = Field (completionv, 0);
# 3761|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 3762|       completion_callback.callback = completion_wrapper;
# 3763|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
libnbd-1.23.9/ocaml/nbd-c.c:3768:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3743:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_go’
libnbd-1.23.9/ocaml/nbd-c.c:3745:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3745:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3749:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3754:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3755:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_go’
libnbd-1.23.9/ocaml/nbd-c.c:3755:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_go’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3756:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3764:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3768:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/7)
# 3766|     int r;
# 3767|   
# 3768|->   caml_enter_blocking_section ();
# 3769|     r =  nbd_aio_opt_go (h, completion_callback);
# 3770|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
libnbd-1.23.9/ocaml/nbd-c.c:3769:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3743:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_go’
libnbd-1.23.9/ocaml/nbd-c.c:3745:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3745:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3749:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3754:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3755:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_go’
libnbd-1.23.9/ocaml/nbd-c.c:3755:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_go’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3756:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3764:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3769:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/7)
# 3767|   
# 3768|     caml_enter_blocking_section ();
# 3769|->   r =  nbd_aio_opt_go (h, completion_callback);
# 3770|     caml_leave_blocking_section ();
# 3771|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
libnbd-1.23.9/ocaml/nbd-c.c:3823:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3805:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_starttls’
libnbd-1.23.9/ocaml/nbd-c.c:3807:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3807:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3811:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3816:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3817:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_starttls’
libnbd-1.23.9/ocaml/nbd-c.c:3817:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_starttls’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3818:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3822:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3823:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/7)
# 3821|        */
# 3822|       completion_user_data->fnv = Field (completionv, 0);
# 3823|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 3824|       completion_callback.callback = completion_wrapper;
# 3825|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
libnbd-1.23.9/ocaml/nbd-c.c:3830:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3805:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_starttls’
libnbd-1.23.9/ocaml/nbd-c.c:3807:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3807:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3811:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3816:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3817:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_starttls’
libnbd-1.23.9/ocaml/nbd-c.c:3817:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_starttls’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3818:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3826:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3830:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/7)
# 3828|     int r;
# 3829|   
# 3830|->   caml_enter_blocking_section ();
# 3831|     r =  nbd_aio_opt_starttls (h, completion_callback);
# 3832|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
libnbd-1.23.9/ocaml/nbd-c.c:3831:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3805:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_starttls’
libnbd-1.23.9/ocaml/nbd-c.c:3807:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3807:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3811:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3816:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3817:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_starttls’
libnbd-1.23.9/ocaml/nbd-c.c:3817:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_starttls’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3818:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3826:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3831:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/7)
# 3829|   
# 3830|     caml_enter_blocking_section ();
# 3831|->   r =  nbd_aio_opt_starttls (h, completion_callback);
# 3832|     caml_leave_blocking_section ();
# 3833|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
libnbd-1.23.9/ocaml/nbd-c.c:3861:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3842:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’
libnbd-1.23.9/ocaml/nbd-c.c:3845:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3845:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3849:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3854:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3855:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’
libnbd-1.23.9/ocaml/nbd-c.c:3855:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3856:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3860:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3861:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/7)
# 3859|        */
# 3860|       completion_user_data->fnv = Field (completionv, 0);
# 3861|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 3862|       completion_callback.callback = completion_wrapper;
# 3863|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
libnbd-1.23.9/ocaml/nbd-c.c:3868:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3842:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’
libnbd-1.23.9/ocaml/nbd-c.c:3845:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3845:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3849:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3854:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3855:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’
libnbd-1.23.9/ocaml/nbd-c.c:3855:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3856:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3864:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3868:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/7)
# 3866|     int r;
# 3867|   
# 3868|->   caml_enter_blocking_section ();
# 3869|     r =  nbd_aio_opt_extended_headers (h, completion_callback);
# 3870|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
libnbd-1.23.9/ocaml/nbd-c.c:3869:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3842:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’
libnbd-1.23.9/ocaml/nbd-c.c:3845:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3845:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3849:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3854:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3855:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’
libnbd-1.23.9/ocaml/nbd-c.c:3855:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_extended_headers’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3856:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3864:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3869:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/7)
# 3867|   
# 3868|     caml_enter_blocking_section ();
# 3869|->   r =  nbd_aio_opt_extended_headers (h, completion_callback);
# 3870|     caml_leave_blocking_section ();
# 3871|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
libnbd-1.23.9/ocaml/nbd-c.c:3899:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3880:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’
libnbd-1.23.9/ocaml/nbd-c.c:3883:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3883:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3887:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3892:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3893:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’
libnbd-1.23.9/ocaml/nbd-c.c:3893:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3894:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3898:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3899:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/7)
# 3897|        */
# 3898|       completion_user_data->fnv = Field (completionv, 0);
# 3899|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 3900|       completion_callback.callback = completion_wrapper;
# 3901|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
libnbd-1.23.9/ocaml/nbd-c.c:3906:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3880:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’
libnbd-1.23.9/ocaml/nbd-c.c:3883:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3883:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3887:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3892:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3893:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’
libnbd-1.23.9/ocaml/nbd-c.c:3893:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3894:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3902:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3906:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/7)
# 3904|     int r;
# 3905|   
# 3906|->   caml_enter_blocking_section ();
# 3907|     r =  nbd_aio_opt_structured_reply (h, completion_callback);
# 3908|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
libnbd-1.23.9/ocaml/nbd-c.c:3907:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3880:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’
libnbd-1.23.9/ocaml/nbd-c.c:3883:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3883:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3887:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3892:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3893:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’
libnbd-1.23.9/ocaml/nbd-c.c:3893:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_structured_reply’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3894:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3902:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3907:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/7)
# 3905|   
# 3906|     caml_enter_blocking_section ();
# 3907|->   r =  nbd_aio_opt_structured_reply (h, completion_callback);
# 3908|     caml_leave_blocking_section ();
# 3909|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
libnbd-1.23.9/ocaml/nbd-c.c:3937:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3918:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3925:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3930:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3932:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3936:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3937:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/7)
# 3935|        */
# 3936|       completion_user_data->fnv = Field (completionv, 0);
# 3937|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 3938|       completion_callback.callback = completion_wrapper;
# 3939|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
libnbd-1.23.9/ocaml/nbd-c.c:3948:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3918:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3925:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3930:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3932:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3940:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3948:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/14)
# 3946|      */
# 3947|     list_user_data->fnv = listv;
# 3948|->   caml_register_generational_global_root (&list_user_data->fnv);
# 3949|     list_callback.callback = list_wrapper;
# 3950|     list_callback.user_data = list_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
libnbd-1.23.9/ocaml/nbd-c.c:3948:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3918:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3925:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3930:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3932:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3940:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3948:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/7)
# 3946|      */
# 3947|     list_user_data->fnv = listv;
# 3948|->   caml_register_generational_global_root (&list_user_data->fnv);
# 3949|     list_callback.callback = list_wrapper;
# 3950|     list_callback.user_data = list_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
libnbd-1.23.9/ocaml/nbd-c.c:3954:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3918:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3925:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3930:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3932:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3940:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3954:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/7)
# 3952|     int r;
# 3953|   
# 3954|->   caml_enter_blocking_section ();
# 3955|     r =  nbd_aio_opt_list (h, list_callback, completion_callback);
# 3956|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
libnbd-1.23.9/ocaml/nbd-c.c:3955:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3918:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3921:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3925:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3930:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3931:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3932:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3940:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list’
libnbd-1.23.9/ocaml/nbd-c.c:3943:38: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3955:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/7)
# 3953|   
# 3954|     caml_enter_blocking_section ();
# 3955|->   r =  nbd_aio_opt_list (h, list_callback, completion_callback);
# 3956|     caml_leave_blocking_section ();
# 3957|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
libnbd-1.23.9/ocaml/nbd-c.c:3984:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:3966:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_info’
libnbd-1.23.9/ocaml/nbd-c.c:3968:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3968:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3972:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3977:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3978:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_info’
libnbd-1.23.9/ocaml/nbd-c.c:3978:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_info’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3979:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3983:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3984:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/7)
# 3982|        */
# 3983|       completion_user_data->fnv = Field (completionv, 0);
# 3984|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 3985|       completion_callback.callback = completion_wrapper;
# 3986|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
libnbd-1.23.9/ocaml/nbd-c.c:3991:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3966:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_info’
libnbd-1.23.9/ocaml/nbd-c.c:3968:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3968:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3972:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3977:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3978:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_info’
libnbd-1.23.9/ocaml/nbd-c.c:3978:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_info’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3979:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3987:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3991:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/7)
# 3989|     int r;
# 3990|   
# 3991|->   caml_enter_blocking_section ();
# 3992|     r =  nbd_aio_opt_info (h, completion_callback);
# 3993|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
libnbd-1.23.9/ocaml/nbd-c.c:3992:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3966:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_info’
libnbd-1.23.9/ocaml/nbd-c.c:3968:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3968:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3972:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:3977:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3978:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_info’
libnbd-1.23.9/ocaml/nbd-c.c:3978:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_info’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:3979:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:3987:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:3992:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/7)
# 3990|   
# 3991|     caml_enter_blocking_section ();
# 3992|->   r =  nbd_aio_opt_info (h, completion_callback);
# 3993|     caml_leave_blocking_section ();
# 3994|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
libnbd-1.23.9/ocaml/nbd-c.c:4022:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4003:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4010:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4015:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4017:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4021:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4022:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/7)
# 4020|        */
# 4021|       completion_user_data->fnv = Field (completionv, 0);
# 4022|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4023|       completion_callback.callback = completion_wrapper;
# 4024|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
libnbd-1.23.9/ocaml/nbd-c.c:4033:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4003:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4010:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4015:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4017:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4025:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4033:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/14)
# 4031|      */
# 4032|     context_user_data->fnv = contextv;
# 4033|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4034|     context_callback.callback = context_wrapper;
# 4035|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
libnbd-1.23.9/ocaml/nbd-c.c:4033:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4003:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4010:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4015:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4017:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4025:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4033:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/7)
# 4031|      */
# 4032|     context_user_data->fnv = contextv;
# 4033|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4034|     context_callback.callback = context_wrapper;
# 4035|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
libnbd-1.23.9/ocaml/nbd-c.c:4039:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4003:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4010:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4015:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4017:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4025:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4039:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/7)
# 4037|     int r;
# 4038|   
# 4039|->   caml_enter_blocking_section ();
# 4040|     r =  nbd_aio_opt_list_meta_context (h, context_callback,
# 4041|                                         completion_callback);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
libnbd-1.23.9/ocaml/nbd-c.c:4040:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4003:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4006:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4010:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4015:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4016:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4017:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4025:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4028:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4040:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/7)
# 4038|   
# 4039|     caml_enter_blocking_section ();
# 4040|->   r =  nbd_aio_opt_list_meta_context (h, context_callback,
# 4041|                                         completion_callback);
# 4042|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
libnbd-1.23.9/ocaml/nbd-c.c:4073:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4052:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4061:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4066:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4068:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4072:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4073:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/7)
# 4071|        */
# 4072|       completion_user_data->fnv = Field (completionv, 0);
# 4073|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4074|       completion_callback.callback = completion_wrapper;
# 4075|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
libnbd-1.23.9/ocaml/nbd-c.c:4078:29: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4052:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4061:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4066:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4068:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4076:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4078:29: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/7)
# 4076|     completion_callback.user_data = completion_user_data;
# 4077|     completion_callback.free = free_user_data;
# 4078|->   char **queries = (char **)nbd_internal_ocaml_string_list (queriesv);
# 4079|     nbd_context_callback context_callback;
# 4080|     struct user_data *context_user_data = alloc_user_data ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
libnbd-1.23.9/ocaml/nbd-c.c:4085:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4052:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4061:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4066:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4068:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4076:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4085:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/14)
# 4083|      */
# 4084|     context_user_data->fnv = contextv;
# 4085|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4086|     context_callback.callback = context_wrapper;
# 4087|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
libnbd-1.23.9/ocaml/nbd-c.c:4085:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4052:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4061:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4066:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4068:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4076:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4085:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/7)
# 4083|      */
# 4084|     context_user_data->fnv = contextv;
# 4085|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4086|     context_callback.callback = context_wrapper;
# 4087|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
libnbd-1.23.9/ocaml/nbd-c.c:4091:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4052:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4061:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4066:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4068:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4076:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4091:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/7)
# 4089|     int r;
# 4090|   
# 4091|->   caml_enter_blocking_section ();
# 4092|     r =  nbd_aio_opt_list_meta_context_queries (h, queries, context_callback,
# 4093|                                                 completion_callback);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
libnbd-1.23.9/ocaml/nbd-c.c:4092:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4052:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4057:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4061:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4066:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4067:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4068:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4076:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4080:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_list_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4092:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/7)
# 4090|   
# 4091|     caml_enter_blocking_section ();
# 4092|->   r =  nbd_aio_opt_list_meta_context_queries (h, queries, context_callback,
# 4093|                                                 completion_callback);
# 4094|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
libnbd-1.23.9/ocaml/nbd-c.c:4124:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4105:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4112:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4117:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4119:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4123:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4124:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/7)
# 4122|        */
# 4123|       completion_user_data->fnv = Field (completionv, 0);
# 4124|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4125|       completion_callback.callback = completion_wrapper;
# 4126|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
libnbd-1.23.9/ocaml/nbd-c.c:4135:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4105:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4112:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4117:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4119:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4127:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4135:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/14)
# 4133|      */
# 4134|     context_user_data->fnv = contextv;
# 4135|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4136|     context_callback.callback = context_wrapper;
# 4137|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
libnbd-1.23.9/ocaml/nbd-c.c:4135:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4105:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4112:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4117:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4119:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4127:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4135:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/7)
# 4133|      */
# 4134|     context_user_data->fnv = contextv;
# 4135|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4136|     context_callback.callback = context_wrapper;
# 4137|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
libnbd-1.23.9/ocaml/nbd-c.c:4141:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4105:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4112:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4117:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4119:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4127:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4141:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/7)
# 4139|     int r;
# 4140|   
# 4141|->   caml_enter_blocking_section ();
# 4142|     r =  nbd_aio_opt_set_meta_context (h, context_callback,
# 4143|                                        completion_callback);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
libnbd-1.23.9/ocaml/nbd-c.c:4142:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4105:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4108:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4112:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4117:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4118:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4119:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4127:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’
libnbd-1.23.9/ocaml/nbd-c.c:4130:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4142:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/7)
# 4140|   
# 4141|     caml_enter_blocking_section ();
# 4142|->   r =  nbd_aio_opt_set_meta_context (h, context_callback,
# 4143|                                        completion_callback);
# 4144|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
libnbd-1.23.9/ocaml/nbd-c.c:4175:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4154:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4163:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4168:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4170:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4174:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4175:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/7)
# 4173|        */
# 4174|       completion_user_data->fnv = Field (completionv, 0);
# 4175|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4176|       completion_callback.callback = completion_wrapper;
# 4177|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
libnbd-1.23.9/ocaml/nbd-c.c:4180:29: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4154:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4163:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4168:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4170:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4178:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4180:29: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/7)
# 4178|     completion_callback.user_data = completion_user_data;
# 4179|     completion_callback.free = free_user_data;
# 4180|->   char **queries = (char **)nbd_internal_ocaml_string_list (queriesv);
# 4181|     nbd_context_callback context_callback;
# 4182|     struct user_data *context_user_data = alloc_user_data ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
libnbd-1.23.9/ocaml/nbd-c.c:4187:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4154:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4163:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4168:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4170:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4178:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4187:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/14)
# 4185|      */
# 4186|     context_user_data->fnv = contextv;
# 4187|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4188|     context_callback.callback = context_wrapper;
# 4189|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
libnbd-1.23.9/ocaml/nbd-c.c:4187:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4154:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4163:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4168:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4170:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4178:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4187:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/7)
# 4185|      */
# 4186|     context_user_data->fnv = contextv;
# 4187|->   caml_register_generational_global_root (&context_user_data->fnv);
# 4188|     context_callback.callback = context_wrapper;
# 4189|     context_callback.user_data = context_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
libnbd-1.23.9/ocaml/nbd-c.c:4193:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4154:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4163:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4168:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4170:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4178:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4193:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/7)
# 4191|     int r;
# 4192|   
# 4193|->   caml_enter_blocking_section ();
# 4194|     r =  nbd_aio_opt_set_meta_context_queries (h, queries, context_callback,
# 4195|                                                completion_callback);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
libnbd-1.23.9/ocaml/nbd-c.c:4194:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4154:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4159:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4163:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4168:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4169:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4170:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4178:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’
libnbd-1.23.9/ocaml/nbd-c.c:4182:41: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_opt_set_meta_context_queries’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4194:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/7)
# 4192|   
# 4193|     caml_enter_blocking_section ();
# 4194|->   r =  nbd_aio_opt_set_meta_context_queries (h, queries, context_callback,
# 4195|                                                completion_callback);
# 4196|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
libnbd-1.23.9/ocaml/nbd-c.c:4226:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4207:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pread’
libnbd-1.23.9/ocaml/nbd-c.c:4210:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4210:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4214:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4219:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4220:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread’
libnbd-1.23.9/ocaml/nbd-c.c:4220:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4221:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4225:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4226:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/7)
# 4224|        */
# 4225|       completion_user_data->fnv = Field (completionv, 0);
# 4226|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4227|       completion_callback.callback = completion_wrapper;
# 4228|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
libnbd-1.23.9/ocaml/nbd-c.c:4241:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4207:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pread’
libnbd-1.23.9/ocaml/nbd-c.c:4210:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4210:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4214:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4219:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4220:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread’
libnbd-1.23.9/ocaml/nbd-c.c:4220:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4221:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4229:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4241:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/7)
# 4239|     uint64_t offset = Int64_val (offsetv);
# 4240|     completion_user_data->bufv = bufv;
# 4241|->   caml_register_generational_global_root (&completion_user_data->bufv);
# 4242|     int64_t r;
# 4243|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
libnbd-1.23.9/ocaml/nbd-c.c:4278:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4256:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4266:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4271:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4273:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4277:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4278:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/89/codeFlows/0/threadFlows/0/locations/7)
# 4276|        */
# 4277|       completion_user_data->fnv = Field (completionv, 0);
# 4278|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4279|       completion_callback.callback = completion_wrapper;
# 4280|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
libnbd-1.23.9/ocaml/nbd-c.c:4298:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4256:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4266:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4271:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4273:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4281:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4293:39: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4293:39: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4298:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/91/codeFlows/0/threadFlows/0/locations/14)
# 4296|      */
# 4297|     chunk_user_data->fnv = chunkv;
# 4298|->   caml_register_generational_global_root (&chunk_user_data->fnv);
# 4299|     chunk_callback.callback = chunk_wrapper;
# 4300|     chunk_callback.user_data = chunk_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
libnbd-1.23.9/ocaml/nbd-c.c:4298:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4256:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4266:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4271:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4273:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4281:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4293:39: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4293:39: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4298:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/7)
# 4296|      */
# 4297|     chunk_user_data->fnv = chunkv;
# 4298|->   caml_register_generational_global_root (&chunk_user_data->fnv);
# 4299|     chunk_callback.callback = chunk_wrapper;
# 4300|     chunk_callback.user_data = chunk_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
libnbd-1.23.9/ocaml/nbd-c.c:4303:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4256:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4261:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4266:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4271:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4272:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4273:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4281:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4293:39: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pread_structured’
libnbd-1.23.9/ocaml/nbd-c.c:4293:39: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pread_structured’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4303:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/92/codeFlows/0/threadFlows/0/locations/7)
# 4301|     chunk_callback.free = free_user_data;
# 4302|     completion_user_data->bufv = bufv;
# 4303|->   caml_register_generational_global_root (&completion_user_data->bufv);
# 4304|     int64_t r;
# 4305|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
libnbd-1.23.9/ocaml/nbd-c.c:4348:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4329:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pwrite’
libnbd-1.23.9/ocaml/nbd-c.c:4332:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4332:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4336:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4341:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4342:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pwrite’
libnbd-1.23.9/ocaml/nbd-c.c:4342:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pwrite’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4343:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4347:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4348:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/93/codeFlows/0/threadFlows/0/locations/7)
# 4346|        */
# 4347|       completion_user_data->fnv = Field (completionv, 0);
# 4348|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4349|       completion_callback.callback = completion_wrapper;
# 4350|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
libnbd-1.23.9/ocaml/nbd-c.c:4363:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4329:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_pwrite’
libnbd-1.23.9/ocaml/nbd-c.c:4332:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4332:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4336:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4341:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4342:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_pwrite’
libnbd-1.23.9/ocaml/nbd-c.c:4342:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_pwrite’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4343:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4351:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4363:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/94/codeFlows/0/threadFlows/0/locations/7)
# 4361|     uint64_t offset = Int64_val (offsetv);
# 4362|     completion_user_data->bufv = bufv;
# 4363|->   caml_register_generational_global_root (&completion_user_data->bufv);
# 4364|     int64_t r;
# 4365|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
libnbd-1.23.9/ocaml/nbd-c.c:4426:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4408:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_flush’
libnbd-1.23.9/ocaml/nbd-c.c:4410:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4410:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4414:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4419:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4420:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_flush’
libnbd-1.23.9/ocaml/nbd-c.c:4420:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_flush’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4421:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4425:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4426:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/95/codeFlows/0/threadFlows/0/locations/7)
# 4424|        */
# 4425|       completion_user_data->fnv = Field (completionv, 0);
# 4426|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4427|       completion_callback.callback = completion_wrapper;
# 4428|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
libnbd-1.23.9/ocaml/nbd-c.c:4438:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4408:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_flush’
libnbd-1.23.9/ocaml/nbd-c.c:4410:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4410:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4414:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4419:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4420:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_flush’
libnbd-1.23.9/ocaml/nbd-c.c:4420:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_flush’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4421:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4429:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4438:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/96/codeFlows/0/threadFlows/0/locations/7)
# 4436|     int64_t r;
# 4437|   
# 4438|->   caml_enter_blocking_section ();
# 4439|     r =  nbd_aio_flush (h, completion_callback, flags);
# 4440|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
libnbd-1.23.9/ocaml/nbd-c.c:4439:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4408:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_flush’
libnbd-1.23.9/ocaml/nbd-c.c:4410:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4410:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4414:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4419:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4420:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_flush’
libnbd-1.23.9/ocaml/nbd-c.c:4420:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_flush’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4421:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4429:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4439:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/97/codeFlows/0/threadFlows/0/locations/7)
# 4437|   
# 4438|     caml_enter_blocking_section ();
# 4439|->   r =  nbd_aio_flush (h, completion_callback, flags);
# 4440|     caml_leave_blocking_section ();
# 4441|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
libnbd-1.23.9/ocaml/nbd-c.c:4469:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4450:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4457:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4462:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_trim’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4464:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4468:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4469:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/98/codeFlows/0/threadFlows/0/locations/7)
# 4467|        */
# 4468|       completion_user_data->fnv = Field (completionv, 0);
# 4469|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4470|       completion_callback.callback = completion_wrapper;
# 4471|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
libnbd-1.23.9/ocaml/nbd-c.c:4483:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4450:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4457:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4462:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_trim’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4464:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4472:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4483:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/99/codeFlows/0/threadFlows/0/locations/7)
# 4481|     int64_t r;
# 4482|   
# 4483|->   caml_enter_blocking_section ();
# 4484|     r =  nbd_aio_trim (h, count, offset, completion_callback, flags);
# 4485|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
libnbd-1.23.9/ocaml/nbd-c.c:4484:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4450:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4453:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4457:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4462:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_trim’
libnbd-1.23.9/ocaml/nbd-c.c:4463:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_trim’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4464:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4472:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4484:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/7)
# 4482|   
# 4483|     caml_enter_blocking_section ();
# 4484|->   r =  nbd_aio_trim (h, count, offset, completion_callback, flags);
# 4485|     caml_leave_blocking_section ();
# 4486|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
libnbd-1.23.9/ocaml/nbd-c.c:4514:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4495:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_cache’
libnbd-1.23.9/ocaml/nbd-c.c:4498:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4498:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4502:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4507:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4508:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_cache’
libnbd-1.23.9/ocaml/nbd-c.c:4508:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_cache’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4509:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4513:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4514:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/7)
# 4512|        */
# 4513|       completion_user_data->fnv = Field (completionv, 0);
# 4514|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4515|       completion_callback.callback = completion_wrapper;
# 4516|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
libnbd-1.23.9/ocaml/nbd-c.c:4528:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4495:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_cache’
libnbd-1.23.9/ocaml/nbd-c.c:4498:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4498:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4502:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4507:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4508:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_cache’
libnbd-1.23.9/ocaml/nbd-c.c:4508:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_cache’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4509:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4517:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4528:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/7)
# 4526|     int64_t r;
# 4527|   
# 4528|->   caml_enter_blocking_section ();
# 4529|     r =  nbd_aio_cache (h, count, offset, completion_callback, flags);
# 4530|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
libnbd-1.23.9/ocaml/nbd-c.c:4529:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4495:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_cache’
libnbd-1.23.9/ocaml/nbd-c.c:4498:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4498:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4502:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4507:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4508:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_cache’
libnbd-1.23.9/ocaml/nbd-c.c:4508:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_cache’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4509:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4517:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4529:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/103/codeFlows/0/threadFlows/0/locations/7)
# 4527|   
# 4528|     caml_enter_blocking_section ();
# 4529|->   r =  nbd_aio_cache (h, count, offset, completion_callback, flags);
# 4530|     caml_leave_blocking_section ();
# 4531|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
libnbd-1.23.9/ocaml/nbd-c.c:4559:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4540:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_zero’
libnbd-1.23.9/ocaml/nbd-c.c:4543:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4543:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4547:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4552:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4553:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_zero’
libnbd-1.23.9/ocaml/nbd-c.c:4553:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_zero’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4554:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4558:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4559:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/7)
# 4557|        */
# 4558|       completion_user_data->fnv = Field (completionv, 0);
# 4559|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4560|       completion_callback.callback = completion_wrapper;
# 4561|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
libnbd-1.23.9/ocaml/nbd-c.c:4573:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4540:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_zero’
libnbd-1.23.9/ocaml/nbd-c.c:4543:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4543:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4547:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4552:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4553:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_zero’
libnbd-1.23.9/ocaml/nbd-c.c:4553:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_zero’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4554:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4562:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4573:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/7)
# 4571|     int64_t r;
# 4572|   
# 4573|->   caml_enter_blocking_section ();
# 4574|     r =  nbd_aio_zero (h, count, offset, completion_callback, flags);
# 4575|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
libnbd-1.23.9/ocaml/nbd-c.c:4574:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4540:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_zero’
libnbd-1.23.9/ocaml/nbd-c.c:4543:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4543:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4547:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4552:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4553:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_zero’
libnbd-1.23.9/ocaml/nbd-c.c:4553:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_zero’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4554:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4562:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4574:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/106/codeFlows/0/threadFlows/0/locations/7)
# 4572|   
# 4573|     caml_enter_blocking_section ();
# 4574|->   r =  nbd_aio_zero (h, count, offset, completion_callback, flags);
# 4575|     caml_leave_blocking_section ();
# 4576|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
libnbd-1.23.9/ocaml/nbd-c.c:4606:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4585:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4594:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4599:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4601:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4605:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4606:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/107/codeFlows/0/threadFlows/0/locations/7)
# 4604|        */
# 4605|       completion_user_data->fnv = Field (completionv, 0);
# 4606|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4607|       completion_callback.callback = completion_wrapper;
# 4608|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
libnbd-1.23.9/ocaml/nbd-c.c:4624:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4585:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4594:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4599:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4601:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4609:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4624:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/109/codeFlows/0/threadFlows/0/locations/14)
# 4622|      */
# 4623|     extent_user_data->fnv = extentv;
# 4624|->   caml_register_generational_global_root (&extent_user_data->fnv);
# 4625|     extent_callback.callback = extent_wrapper;
# 4626|     extent_callback.user_data = extent_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
libnbd-1.23.9/ocaml/nbd-c.c:4624:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4585:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4594:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4599:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4601:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4609:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4624:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/108/codeFlows/0/threadFlows/0/locations/7)
# 4622|      */
# 4623|     extent_user_data->fnv = extentv;
# 4624|->   caml_register_generational_global_root (&extent_user_data->fnv);
# 4625|     extent_callback.callback = extent_wrapper;
# 4626|     extent_callback.user_data = extent_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
libnbd-1.23.9/ocaml/nbd-c.c:4630:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4585:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4594:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4599:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4601:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4609:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4630:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/110/codeFlows/0/threadFlows/0/locations/7)
# 4628|     int64_t r;
# 4629|   
# 4630|->   caml_enter_blocking_section ();
# 4631|     r =  nbd_aio_block_status (h, count, offset, extent_callback,
# 4632|                                completion_callback, flags);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
libnbd-1.23.9/ocaml/nbd-c.c:4631:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4585:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4589:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4594:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4599:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4600:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4601:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4609:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status’
libnbd-1.23.9/ocaml/nbd-c.c:4619:40: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4631:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/111/codeFlows/0/threadFlows/0/locations/7)
# 4629|   
# 4630|     caml_enter_blocking_section ();
# 4631|->   r =  nbd_aio_block_status (h, count, offset, extent_callback,
# 4632|                                completion_callback, flags);
# 4633|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
libnbd-1.23.9/ocaml/nbd-c.c:4673:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4652:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4661:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4666:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4668:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4672:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4673:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/112/codeFlows/0/threadFlows/0/locations/7)
# 4671|        */
# 4672|       completion_user_data->fnv = Field (completionv, 0);
# 4673|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4674|       completion_callback.callback = completion_wrapper;
# 4675|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
libnbd-1.23.9/ocaml/nbd-c.c:4691:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4652:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4661:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4666:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4668:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4676:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4691:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/113/codeFlows/0/threadFlows/0/locations/14)
# 4689|      */
# 4690|     extent64_user_data->fnv = extent64v;
# 4691|->   caml_register_generational_global_root (&extent64_user_data->fnv);
# 4692|     extent64_callback.callback = extent64_wrapper;
# 4693|     extent64_callback.user_data = extent64_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
libnbd-1.23.9/ocaml/nbd-c.c:4691:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4652:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4661:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4666:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4668:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4676:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4691:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/114/codeFlows/0/threadFlows/0/locations/7)
# 4689|      */
# 4690|     extent64_user_data->fnv = extent64v;
# 4691|->   caml_register_generational_global_root (&extent64_user_data->fnv);
# 4692|     extent64_callback.callback = extent64_wrapper;
# 4693|     extent64_callback.user_data = extent64_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
libnbd-1.23.9/ocaml/nbd-c.c:4697:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4652:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4661:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4666:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4668:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4676:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4697:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/115/codeFlows/0/threadFlows/0/locations/7)
# 4695|     int64_t r;
# 4696|   
# 4697|->   caml_enter_blocking_section ();
# 4698|     r =  nbd_aio_block_status_64 (h, count, offset, extent64_callback,
# 4699|                                   completion_callback, flags);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
libnbd-1.23.9/ocaml/nbd-c.c:4698:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4652:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4656:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4661:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4666:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4667:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4668:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4676:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_64’
libnbd-1.23.9/ocaml/nbd-c.c:4686:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_64’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4698:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/116/codeFlows/0/threadFlows/0/locations/7)
# 4696|   
# 4697|     caml_enter_blocking_section ();
# 4698|->   r =  nbd_aio_block_status_64 (h, count, offset, extent64_callback,
# 4699|                                   completion_callback, flags);
# 4700|     caml_leave_blocking_section ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
libnbd-1.23.9/ocaml/nbd-c.c:4743:5: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4720:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4731:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4736:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4738:6: branch_true: following ‘true’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4742:33: branch_true: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4743:5: danger: ‘alloc_user_data()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/117/codeFlows/0/threadFlows/0/locations/7)
# 4741|        */
# 4742|       completion_user_data->fnv = Field (completionv, 0);
# 4743|->     caml_register_generational_global_root (&completion_user_data->fnv);
# 4744|       completion_callback.callback = completion_wrapper;
# 4745|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
libnbd-1.23.9/ocaml/nbd-c.c:4755:30: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4720:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4731:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4736:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4738:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4746:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4755:30: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/118/codeFlows/0/threadFlows/0/locations/7)
# 4753|     uint64_t count = Int64_val (countv);
# 4754|     uint64_t offset = Int64_val (offsetv);
# 4755|->   char **contexts = (char **)nbd_internal_ocaml_string_list (contextsv);
# 4756|     nbd_extent64_callback extent64_callback;
# 4757|     struct user_data *extent64_user_data = alloc_user_data ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
libnbd-1.23.9/ocaml/nbd-c.c:4762:3: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_user_data()’
libnbd-1.23.9/ocaml/nbd-c.c:4720:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4731:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4736:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4738:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4746:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4762:3: danger: ‘alloc_user_data()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/120/codeFlows/0/threadFlows/0/locations/14)
# 4760|      */
# 4761|     extent64_user_data->fnv = extent64v;
# 4762|->   caml_register_generational_global_root (&extent64_user_data->fnv);
# 4763|     extent64_callback.callback = extent64_wrapper;
# 4764|     extent64_callback.user_data = extent64_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
libnbd-1.23.9/ocaml/nbd-c.c:4762:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4720:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4731:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4736:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4738:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4746:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4762:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/119/codeFlows/0/threadFlows/0/locations/7)
# 4760|      */
# 4761|     extent64_user_data->fnv = extent64v;
# 4762|->   caml_register_generational_global_root (&extent64_user_data->fnv);
# 4763|     extent64_callback.callback = extent64_wrapper;
# 4764|     extent64_callback.user_data = extent64_user_data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
libnbd-1.23.9/ocaml/nbd-c.c:4768:3: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4720:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4731:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4736:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4738:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4746:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4768:3: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/121/codeFlows/0/threadFlows/0/locations/7)
# 4766|     int64_t r;
# 4767|   
# 4768|->   caml_enter_blocking_section ();
# 4769|     r =  nbd_aio_block_status_filter (h, count, offset, contexts,
# 4770|                                       extent64_callback, completion_callback,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
libnbd-1.23.9/ocaml/nbd-c.c:4769:8: warning[-Wanalyzer-malloc-leak]: leak of ‘completion_callback.user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4720:1: enter_function: entry to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4726:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4731:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:4736:27: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4737:44: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4738:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:4746:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: call_function: calling ‘alloc_user_data’ from ‘nbd_internal_ocaml_nbd_aio_block_status_filter’
libnbd-1.23.9/ocaml/nbd-c.c:4757:42: return_function: returning to ‘nbd_internal_ocaml_nbd_aio_block_status_filter’ from ‘alloc_user_data’
libnbd-1.23.9/ocaml/nbd-c.c:4769:8: danger: ‘completion_callback.user_data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/122/codeFlows/0/threadFlows/0/locations/7)
# 4767|   
# 4768|     caml_enter_blocking_section ();
# 4769|->   r =  nbd_aio_block_status_filter (h, count, offset, contexts,
# 4770|                                       extent64_callback, completion_callback,
# 4771|                                       flags);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
libnbd-1.23.9/ocaml/nbd-c.c:5383:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_uri(h)’
libnbd-1.23.9/ocaml/nbd-c.c:5370:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:5370:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:5374:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:5381:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:5382:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:5383:3: danger: ‘nbd_get_uri(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/123/codeFlows/0/threadFlows/0/locations/4)
# 5381|     caml_enter_blocking_section ();
# 5382|     r =  nbd_get_uri (h);
# 5383|->   caml_leave_blocking_section ();
# 5384|   
# 5385|     if (r == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
libnbd-1.23.9/ocaml/nbd-c.c:5388:8: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_get_uri(h)’
libnbd-1.23.9/ocaml/nbd-c.c:5370:3: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:5370:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:5374:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
libnbd-1.23.9/ocaml/nbd-c.c:5381:3: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:5382:8: acquire_memory: allocated here
libnbd-1.23.9/ocaml/nbd-c.c:5385:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ocaml/nbd-c.c:5388:8: branch_false: ...to here
libnbd-1.23.9/ocaml/nbd-c.c:5388:8: danger: ‘nbd_get_uri(h)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/124/codeFlows/0/threadFlows/0/locations/4)
# 5386|       nbd_internal_ocaml_raise_error ();
# 5387|   
# 5388|->   rv = caml_copy_string (r);
# 5389|     free (r);
# 5390|     CAMLreturn (rv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
libnbd-1.23.9/python/handle.c:49:10: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_create()'
libnbd-1.23.9/python/handle.c:53:1: enter_function: entry to 'nbd_internal_py_create'
libnbd-1.23.9/python/handle.c:57:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/handle.c:59:7: branch_false: ...to here
libnbd-1.23.9/python/handle.c:59:7: acquire_memory: allocated here
libnbd-1.23.9/python/handle.c:60:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/handle.c:65:10: branch_false: ...to here
libnbd-1.23.9/python/handle.c:65:10: call_function: calling 'put_handle' from 'nbd_internal_py_create'
#   47|   {
#   48|     assert (h);
#   49|->   return PyCapsule_New (h, "nbd_handle", NULL);
#   50|   }
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
libnbd-1.23.9/python/methods.c:48:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
#   46|     struct user_data *data = calloc (1, sizeof *data);
#   47|     if (data == NULL) {
#   48|->     PyErr_NoMemory ();
#   49|       return NULL;
#   50|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4464:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4488:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_pread_structured'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3875:1: enter_function: entry to 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3886:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3889:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3889:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3889:7: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'get_handle'
libnbd-1.23.9/python/methods.c:3890:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3891:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3891:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3891:49: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3892:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3893:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3893:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3894:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3894:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3895:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3918:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_opt_extended_headers'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'completion_user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4906:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4906:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4907:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4945:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_block_status_64'
 branch_true: ...to here
libnbd-1.23.9/python/methods.c:4945:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_block_status_64'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2004:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2015:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2018:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2018:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2018:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:2019:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2020:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2020:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2020:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2021:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2022:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2022:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:2023:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:2042:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_opt_set_meta_context'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'debug.user_data'
libnbd-1.23.9/python/methods.c:466:1: enter_function: entry to 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:477:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:480:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:480:7: call_function: calling 'get_handle' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:480:7: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'get_handle'
libnbd-1.23.9/python/methods.c:481:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:482:39: branch_false: ...to here
libnbd-1.23.9/python/methods.c:482:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:482:39: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:483:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:484:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:484:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:485:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:505:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_set_debug_callback'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:3278:1: enter_function: entry to 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3295:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3298:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3298:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3298:7: return_function: returning to 'nbd_internal_py_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:3299:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3300:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3303:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3303:41: return_function: returning to 'nbd_internal_py_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3304:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3305:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3305:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3306:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3326:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_block_status'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3331:1: enter_function: entry to 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3348:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3351:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3351:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3351:7: return_function: returning to 'nbd_internal_py_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:3352:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3353:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3356:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3356:45: return_function: returning to 'nbd_internal_py_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3357:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3358:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3358:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3359:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3379:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_block_status_64'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
libnbd-1.23.9/python/methods.c:60:32: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:1843:1: enter_function: entry to 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1854:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1856:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1856:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1856:7: return_function: returning to 'nbd_internal_py_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:1857:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1858:37: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1858:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1858:37: return_function: returning to 'nbd_internal_py_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1859:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1860:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1860:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:1861:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1880:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_opt_list'
#   58|   
#   59|     if (data) {
#   60|->     PyGILState_STATE py_save = PyGILState_Ensure ();
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4464:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4488:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_pread_structured'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4585:1: enter_function: entry to 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4598:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4601:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4601:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4601:7: return_function: returning to 'nbd_internal_py_aio_flush' from 'get_handle'
libnbd-1.23.9/python/methods.c:4602:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4603:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4603:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4603:49: return_function: returning to 'nbd_internal_py_aio_flush' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4604:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4605:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4605:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4606:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4606:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4607:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4630:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_flush'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion_user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4106:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4106:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4107:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4141:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
 branch_true: ...to here
libnbd-1.23.9/python/methods.c:4141:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1912:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1923:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1926:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1926:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1926:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:1927:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1928:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1928:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1928:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1929:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1930:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1930:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:1931:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1950:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_opt_list_meta_context'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'debug.user_data'
libnbd-1.23.9/python/methods.c:466:1: enter_function: entry to 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:477:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:480:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:480:7: call_function: calling 'get_handle' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:480:7: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'get_handle'
libnbd-1.23.9/python/methods.c:481:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:482:39: branch_false: ...to here
libnbd-1.23.9/python/methods.c:482:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:482:39: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:483:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:484:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:484:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:485:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:505:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_set_debug_callback'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:3278:1: enter_function: entry to 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3295:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3298:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3298:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3298:7: return_function: returning to 'nbd_internal_py_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:3299:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3300:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3303:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3303:41: return_function: returning to 'nbd_internal_py_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3304:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3305:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3305:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3306:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3326:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_block_status'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3331:1: enter_function: entry to 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3348:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3351:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3351:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3351:7: return_function: returning to 'nbd_internal_py_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:3352:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3353:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3356:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3356:45: return_function: returning to 'nbd_internal_py_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3357:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3358:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3358:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3359:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3379:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_block_status_64'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
libnbd-1.23.9/python/methods.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:1843:1: enter_function: entry to 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1854:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1856:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1856:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1856:7: return_function: returning to 'nbd_internal_py_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:1857:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1858:37: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1858:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1858:37: return_function: returning to 'nbd_internal_py_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1859:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1860:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1860:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:1861:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1880:3: call_function: inlined call to 'free_user_data' from 'nbd_internal_py_opt_list'
#   61|       Py_XDECREF (data->fn);
#   62|       Py_XDECREF (data->view);
#   63|->     PyGILState_Release (py_save);
#   64|       free (data);
#   65|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
libnbd-1.23.9/python/methods.c:484:8: warning[-Wanalyzer-malloc-leak]: leak of 'debug.user_data'
libnbd-1.23.9/python/methods.c:466:1: enter_function: entry to 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:477:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:480:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:480:7: call_function: calling 'get_handle' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:480:7: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'get_handle'
libnbd-1.23.9/python/methods.c:481:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:482:39: branch_false: ...to here
libnbd-1.23.9/python/methods.c:482:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:482:39: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:483:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:484:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:484:8: danger: 'debug.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/14)
#  482|     debug.user_data = debug_user_data = alloc_user_data ();
#  483|     if (debug_user_data == NULL) goto out;
#  484|->   if (!PyCallable_Check (py_debug_fn)) {
#  485|       PyErr_SetString (PyExc_TypeError,
#  486|                        "callback parameter debug is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
libnbd-1.23.9/python/methods.c:485:5: warning[-Wanalyzer-malloc-leak]: leak of 'debug.user_data'
libnbd-1.23.9/python/methods.c:466:1: enter_function: entry to 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:477:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:480:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:480:7: call_function: calling 'get_handle' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:480:7: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'get_handle'
libnbd-1.23.9/python/methods.c:481:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:482:39: branch_false: ...to here
libnbd-1.23.9/python/methods.c:482:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:482:39: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:483:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:484:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:484:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:485:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:485:5: danger: 'debug.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/14)
#  483|     if (debug_user_data == NULL) goto out;
#  484|     if (!PyCallable_Check (py_debug_fn)) {
#  485|->     PyErr_SetString (PyExc_TypeError,
#  486|                        "callback parameter debug is not callable");
#  487|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
libnbd-1.23.9/python/methods.c:493:3: warning[-Wanalyzer-malloc-leak]: leak of 'debug.user_data'
libnbd-1.23.9/python/methods.c:466:1: enter_function: entry to 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:477:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:480:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:480:7: call_function: calling 'get_handle' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:480:7: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'get_handle'
libnbd-1.23.9/python/methods.c:481:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:482:39: branch_false: ...to here
libnbd-1.23.9/python/methods.c:482:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:482:39: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:483:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:484:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:484:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:490:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:490:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:491:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:493:3: danger: 'debug.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/14)
#  491|     debug_user_data->fn = py_debug_fn;
#  492|   
#  493|->   Py_BEGIN_ALLOW_THREADS;
#  494|     ret = nbd_set_debug_callback (h, debug);
#  495|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
libnbd-1.23.9/python/methods.c:494:9: warning[-Wanalyzer-malloc-leak]: leak of 'debug.user_data'
libnbd-1.23.9/python/methods.c:466:1: enter_function: entry to 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:477:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:480:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:480:7: call_function: calling 'get_handle' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:480:7: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'get_handle'
libnbd-1.23.9/python/methods.c:481:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:482:39: branch_false: ...to here
libnbd-1.23.9/python/methods.c:482:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:482:39: return_function: returning to 'nbd_internal_py_set_debug_callback' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:483:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:484:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:484:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:490:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:490:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_set_debug_callback'
libnbd-1.23.9/python/methods.c:491:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:494:9: danger: 'debug.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/103/codeFlows/0/threadFlows/0/locations/14)
#  492|   
#  493|     Py_BEGIN_ALLOW_THREADS;
#  494|->   ret = nbd_set_debug_callback (h, debug);
#  495|     Py_END_ALLOW_THREADS;
#  496|     debug_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
libnbd-1.23.9/python/methods.c:668:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_handle_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:654:1: enter_function: entry to 'nbd_internal_py_get_handle_name'
libnbd-1.23.9/python/methods.c:661:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:663:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:663:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_handle_name'
libnbd-1.23.9/python/methods.c:663:7: return_function: returning to 'nbd_internal_py_get_handle_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:664:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:666:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:667:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:668:3: danger: 'nbd_get_handle_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/12)
#  666|     Py_BEGIN_ALLOW_THREADS;
#  667|     ret = nbd_get_handle_name (h);
#  668|->   Py_END_ALLOW_THREADS;
#  669|     if (ret == NULL) {
#  670|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
libnbd-1.23.9/python/methods.c:673:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_handle_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:654:1: enter_function: entry to 'nbd_internal_py_get_handle_name'
libnbd-1.23.9/python/methods.c:661:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:663:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:663:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_handle_name'
libnbd-1.23.9/python/methods.c:663:7: return_function: returning to 'nbd_internal_py_get_handle_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:664:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:666:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:667:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:669:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:673:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:673:12: danger: 'nbd_get_handle_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/12)
#  671|       goto out;
#  672|     }
#  673|->   py_ret = PyUnicode_FromString (ret);
#  674|     free (ret);
#  675|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
libnbd-1.23.9/python/methods.c:796:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_export_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:782:1: enter_function: entry to 'nbd_internal_py_get_export_name'
libnbd-1.23.9/python/methods.c:789:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:791:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:791:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_export_name'
libnbd-1.23.9/python/methods.c:791:7: return_function: returning to 'nbd_internal_py_get_export_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:792:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:794:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:795:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:796:3: danger: 'nbd_get_export_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/106/codeFlows/0/threadFlows/0/locations/12)
#  794|     Py_BEGIN_ALLOW_THREADS;
#  795|     ret = nbd_get_export_name (h);
#  796|->   Py_END_ALLOW_THREADS;
#  797|     if (ret == NULL) {
#  798|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
libnbd-1.23.9/python/methods.c:801:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_export_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:782:1: enter_function: entry to 'nbd_internal_py_get_export_name'
libnbd-1.23.9/python/methods.c:789:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:791:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:791:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_export_name'
libnbd-1.23.9/python/methods.c:791:7: return_function: returning to 'nbd_internal_py_get_export_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:792:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:794:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:795:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:797:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:801:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:801:12: danger: 'nbd_get_export_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/107/codeFlows/0/threadFlows/0/locations/12)
#  799|       goto out;
#  800|     }
#  801|->   py_ret = PyUnicode_FromString (ret);
#  802|     free (ret);
#  803|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
libnbd-1.23.9/python/methods.c:934:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_canonical_export_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:920:1: enter_function: entry to 'nbd_internal_py_get_canonical_export_name'
libnbd-1.23.9/python/methods.c:927:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:929:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:929:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_canonical_export_name'
libnbd-1.23.9/python/methods.c:929:7: return_function: returning to 'nbd_internal_py_get_canonical_export_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:930:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:932:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:933:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:934:3: danger: 'nbd_get_canonical_export_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/108/codeFlows/0/threadFlows/0/locations/12)
#  932|     Py_BEGIN_ALLOW_THREADS;
#  933|     ret = nbd_get_canonical_export_name (h);
#  934|->   Py_END_ALLOW_THREADS;
#  935|     if (ret == NULL) {
#  936|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
libnbd-1.23.9/python/methods.c:939:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_canonical_export_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:920:1: enter_function: entry to 'nbd_internal_py_get_canonical_export_name'
libnbd-1.23.9/python/methods.c:927:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:929:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:929:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_canonical_export_name'
libnbd-1.23.9/python/methods.c:929:7: return_function: returning to 'nbd_internal_py_get_canonical_export_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:930:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:932:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:933:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:935:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:939:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:939:12: danger: 'nbd_get_canonical_export_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/109/codeFlows/0/threadFlows/0/locations/12)
#  937|       goto out;
#  938|     }
#  939|->   py_ret = PyUnicode_FromString (ret);
#  940|     free (ret);
#  941|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
libnbd-1.23.9/python/methods.c:961:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_export_description(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:947:1: enter_function: entry to 'nbd_internal_py_get_export_description'
libnbd-1.23.9/python/methods.c:954:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:956:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:956:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_export_description'
libnbd-1.23.9/python/methods.c:956:7: return_function: returning to 'nbd_internal_py_get_export_description' from 'get_handle'
libnbd-1.23.9/python/methods.c:957:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:959:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:960:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:961:3: danger: 'nbd_get_export_description(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/110/codeFlows/0/threadFlows/0/locations/12)
#  959|     Py_BEGIN_ALLOW_THREADS;
#  960|     ret = nbd_get_export_description (h);
#  961|->   Py_END_ALLOW_THREADS;
#  962|     if (ret == NULL) {
#  963|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
libnbd-1.23.9/python/methods.c:966:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_export_description(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:947:1: enter_function: entry to 'nbd_internal_py_get_export_description'
libnbd-1.23.9/python/methods.c:954:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:956:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:956:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_export_description'
libnbd-1.23.9/python/methods.c:956:7: return_function: returning to 'nbd_internal_py_get_export_description' from 'get_handle'
libnbd-1.23.9/python/methods.c:957:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:959:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:960:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:962:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:966:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:966:12: danger: 'nbd_get_export_description(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/111/codeFlows/0/threadFlows/0/locations/12)
#  964|       goto out;
#  965|     }
#  966|->   py_ret = PyUnicode_FromString (ret);
#  967|     free (ret);
#  968|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
libnbd-1.23.9/python/methods.c:1177:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_tls_username(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:1163:1: enter_function: entry to 'nbd_internal_py_get_tls_username'
libnbd-1.23.9/python/methods.c:1170:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1172:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_tls_username'
libnbd-1.23.9/python/methods.c:1172:7: return_function: returning to 'nbd_internal_py_get_tls_username' from 'get_handle'
libnbd-1.23.9/python/methods.c:1173:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1175:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1176:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:1177:3: danger: 'nbd_get_tls_username(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/112/codeFlows/0/threadFlows/0/locations/12)
# 1175|     Py_BEGIN_ALLOW_THREADS;
# 1176|     ret = nbd_get_tls_username (h);
# 1177|->   Py_END_ALLOW_THREADS;
# 1178|     if (ret == NULL) {
# 1179|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
libnbd-1.23.9/python/methods.c:1182:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_tls_username(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:1163:1: enter_function: entry to 'nbd_internal_py_get_tls_username'
libnbd-1.23.9/python/methods.c:1170:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1172:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_tls_username'
libnbd-1.23.9/python/methods.c:1172:7: return_function: returning to 'nbd_internal_py_get_tls_username' from 'get_handle'
libnbd-1.23.9/python/methods.c:1173:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1175:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1176:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:1178:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1182:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1182:12: danger: 'nbd_get_tls_username(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/113/codeFlows/0/threadFlows/0/locations/12)
# 1180|       goto out;
# 1181|     }
# 1182|->   py_ret = PyUnicode_FromString (ret);
# 1183|     free (ret);
# 1184|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
libnbd-1.23.9/python/methods.c:1232:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_tls_hostname(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:1218:1: enter_function: entry to 'nbd_internal_py_get_tls_hostname'
libnbd-1.23.9/python/methods.c:1225:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1227:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1227:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_tls_hostname'
libnbd-1.23.9/python/methods.c:1227:7: return_function: returning to 'nbd_internal_py_get_tls_hostname' from 'get_handle'
libnbd-1.23.9/python/methods.c:1228:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1230:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1231:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:1232:3: danger: 'nbd_get_tls_hostname(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/114/codeFlows/0/threadFlows/0/locations/12)
# 1230|     Py_BEGIN_ALLOW_THREADS;
# 1231|     ret = nbd_get_tls_hostname (h);
# 1232|->   Py_END_ALLOW_THREADS;
# 1233|     if (ret == NULL) {
# 1234|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
libnbd-1.23.9/python/methods.c:1237:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_tls_hostname(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:1218:1: enter_function: entry to 'nbd_internal_py_get_tls_hostname'
libnbd-1.23.9/python/methods.c:1225:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1227:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1227:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_tls_hostname'
libnbd-1.23.9/python/methods.c:1227:7: return_function: returning to 'nbd_internal_py_get_tls_hostname' from 'get_handle'
libnbd-1.23.9/python/methods.c:1228:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1230:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1231:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:1233:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1237:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1237:12: danger: 'nbd_get_tls_hostname(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/115/codeFlows/0/threadFlows/0/locations/12)
# 1235|       goto out;
# 1236|     }
# 1237|->   py_ret = PyUnicode_FromString (ret);
# 1238|     free (ret);
# 1239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
libnbd-1.23.9/python/methods.c:1860:8: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:1843:1: enter_function: entry to 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1854:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1856:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1856:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1856:7: return_function: returning to 'nbd_internal_py_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:1857:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1858:37: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1858:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1858:37: return_function: returning to 'nbd_internal_py_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1859:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1860:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1860:8: danger: 'list.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/116/codeFlows/0/threadFlows/0/locations/14)
# 1858|     list.user_data = list_user_data = alloc_user_data ();
# 1859|     if (list_user_data == NULL) goto out;
# 1860|->   if (!PyCallable_Check (py_list_fn)) {
# 1861|       PyErr_SetString (PyExc_TypeError,
# 1862|                        "callback parameter list is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
libnbd-1.23.9/python/methods.c:1861:5: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:1843:1: enter_function: entry to 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1854:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1856:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1856:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1856:7: return_function: returning to 'nbd_internal_py_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:1857:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1858:37: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1858:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1858:37: return_function: returning to 'nbd_internal_py_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1859:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1860:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1860:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:1861:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1861:5: danger: 'list.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/117/codeFlows/0/threadFlows/0/locations/14)
# 1859|     if (list_user_data == NULL) goto out;
# 1860|     if (!PyCallable_Check (py_list_fn)) {
# 1861|->     PyErr_SetString (PyExc_TypeError,
# 1862|                        "callback parameter list is not callable");
# 1863|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
libnbd-1.23.9/python/methods.c:1869:3: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:1843:1: enter_function: entry to 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1854:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1856:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1856:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1856:7: return_function: returning to 'nbd_internal_py_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:1857:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1858:37: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1858:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1858:37: return_function: returning to 'nbd_internal_py_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1859:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1860:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1860:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1866:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1866:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1867:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1869:3: danger: 'list.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/118/codeFlows/0/threadFlows/0/locations/14)
# 1867|     list_user_data->fn = py_list_fn;
# 1868|   
# 1869|->   Py_BEGIN_ALLOW_THREADS;
# 1870|     ret = nbd_opt_list (h, list);
# 1871|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
libnbd-1.23.9/python/methods.c:1870:9: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:1843:1: enter_function: entry to 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1854:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1856:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1856:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1856:7: return_function: returning to 'nbd_internal_py_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:1857:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1858:37: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1858:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1858:37: return_function: returning to 'nbd_internal_py_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1859:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1860:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1860:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1866:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1866:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_list'
libnbd-1.23.9/python/methods.c:1867:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1870:9: danger: 'list.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/119/codeFlows/0/threadFlows/0/locations/14)
# 1868|   
# 1869|     Py_BEGIN_ALLOW_THREADS;
# 1870|->   ret = nbd_opt_list (h, list);
# 1871|     Py_END_ALLOW_THREADS;
# 1872|     list_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
libnbd-1.23.9/python/methods.c:1930:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1912:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1923:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1926:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1926:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1926:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:1927:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1928:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1928:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1928:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1929:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1930:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1930:8: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/120/codeFlows/0/threadFlows/0/locations/14)
# 1928|     context.user_data = context_user_data = alloc_user_data ();
# 1929|     if (context_user_data == NULL) goto out;
# 1930|->   if (!PyCallable_Check (py_context_fn)) {
# 1931|       PyErr_SetString (PyExc_TypeError,
# 1932|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
libnbd-1.23.9/python/methods.c:1931:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1912:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1923:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1926:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1926:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1926:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:1927:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1928:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1928:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1928:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1929:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1930:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1930:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:1931:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1931:5: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/121/codeFlows/0/threadFlows/0/locations/14)
# 1929|     if (context_user_data == NULL) goto out;
# 1930|     if (!PyCallable_Check (py_context_fn)) {
# 1931|->     PyErr_SetString (PyExc_TypeError,
# 1932|                        "callback parameter context is not callable");
# 1933|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
libnbd-1.23.9/python/methods.c:1939:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1912:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1923:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1926:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1926:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1926:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:1927:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1928:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1928:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1928:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1929:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1930:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1930:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1936:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1936:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1937:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1939:3: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/122/codeFlows/0/threadFlows/0/locations/14)
# 1937|     context_user_data->fn = py_context_fn;
# 1938|   
# 1939|->   Py_BEGIN_ALLOW_THREADS;
# 1940|     ret = nbd_opt_list_meta_context (h, context);
# 1941|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
libnbd-1.23.9/python/methods.c:1940:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1912:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1923:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1926:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1926:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1926:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:1927:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1928:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1928:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1928:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1929:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1930:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1930:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1936:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1936:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:1937:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1940:9: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/123/codeFlows/0/threadFlows/0/locations/14)
# 1938|   
# 1939|     Py_BEGIN_ALLOW_THREADS;
# 1940|->   ret = nbd_opt_list_meta_context (h, context);
# 1941|     Py_END_ALLOW_THREADS;
# 1942|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
libnbd-1.23.9/python/methods.c:1978:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1955:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1969:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1972:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1972:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1972:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:1973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1974:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1975:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1976:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1976:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1976:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1977:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1978:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1978:8: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/124/codeFlows/0/threadFlows/0/locations/16)
# 1976|     context.user_data = context_user_data = alloc_user_data ();
# 1977|     if (context_user_data == NULL) goto out;
# 1978|->   if (!PyCallable_Check (py_context_fn)) {
# 1979|       PyErr_SetString (PyExc_TypeError,
# 1980|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
libnbd-1.23.9/python/methods.c:1979:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1955:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1969:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1972:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1972:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1972:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:1973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1974:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1975:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1976:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1976:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1976:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1977:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1978:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1978:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:1979:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1979:5: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/125/codeFlows/0/threadFlows/0/locations/16)
# 1977|     if (context_user_data == NULL) goto out;
# 1978|     if (!PyCallable_Check (py_context_fn)) {
# 1979|->     PyErr_SetString (PyExc_TypeError,
# 1980|                        "callback parameter context is not callable");
# 1981|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
libnbd-1.23.9/python/methods.c:1987:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1955:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1969:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1972:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1972:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1972:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:1973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1974:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1975:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1976:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1976:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1976:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1977:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1978:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1984:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1984:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1985:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1987:3: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/126/codeFlows/0/threadFlows/0/locations/16)
# 1985|     context_user_data->fn = py_context_fn;
# 1986|   
# 1987|->   Py_BEGIN_ALLOW_THREADS;
# 1988|     ret = nbd_opt_list_meta_context_queries (h, queries, context);
# 1989|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
libnbd-1.23.9/python/methods.c:1988:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:1955:1: enter_function: entry to 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1969:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1972:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1972:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1972:7: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:1973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1974:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1975:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1976:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1976:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1976:43: return_function: returning to 'nbd_internal_py_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:1977:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1978:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:1984:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:1984:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:1985:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:1988:9: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/127/codeFlows/0/threadFlows/0/locations/16)
# 1986|   
# 1987|     Py_BEGIN_ALLOW_THREADS;
# 1988|->   ret = nbd_opt_list_meta_context_queries (h, queries, context);
# 1989|     Py_END_ALLOW_THREADS;
# 1990|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
libnbd-1.23.9/python/methods.c:2022:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2004:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2015:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2018:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2018:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2018:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:2019:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2020:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2020:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2020:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2021:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2022:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2022:8: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/128/codeFlows/0/threadFlows/0/locations/14)
# 2020|     context.user_data = context_user_data = alloc_user_data ();
# 2021|     if (context_user_data == NULL) goto out;
# 2022|->   if (!PyCallable_Check (py_context_fn)) {
# 2023|       PyErr_SetString (PyExc_TypeError,
# 2024|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
libnbd-1.23.9/python/methods.c:2023:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2004:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2015:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2018:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2018:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2018:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:2019:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2020:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2020:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2020:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2021:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2022:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2022:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:2023:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:2023:5: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/129/codeFlows/0/threadFlows/0/locations/14)
# 2021|     if (context_user_data == NULL) goto out;
# 2022|     if (!PyCallable_Check (py_context_fn)) {
# 2023|->     PyErr_SetString (PyExc_TypeError,
# 2024|                        "callback parameter context is not callable");
# 2025|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
libnbd-1.23.9/python/methods.c:2031:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2004:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2015:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2018:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2018:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2018:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:2019:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2020:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2020:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2020:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2021:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2022:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2022:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2028:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2028:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2029:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:2031:3: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/130/codeFlows/0/threadFlows/0/locations/14)
# 2029|     context_user_data->fn = py_context_fn;
# 2030|   
# 2031|->   Py_BEGIN_ALLOW_THREADS;
# 2032|     ret = nbd_opt_set_meta_context (h, context);
# 2033|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
libnbd-1.23.9/python/methods.c:2032:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2004:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2015:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2018:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2018:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2018:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:2019:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2020:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2020:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2020:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2021:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2022:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2022:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2028:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2028:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:2029:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:2032:9: danger: 'context.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/131/codeFlows/0/threadFlows/0/locations/14)
# 2030|   
# 2031|     Py_BEGIN_ALLOW_THREADS;
# 2032|->   ret = nbd_opt_set_meta_context (h, context);
# 2033|     Py_END_ALLOW_THREADS;
# 2034|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
libnbd-1.23.9/python/methods.c:2070:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2047:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2061:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2064:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2064:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2064:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:2065:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2066:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2067:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2068:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2068:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2068:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2069:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2070:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2070:8: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/132/codeFlows/0/threadFlows/0/locations/16)
# 2068|     context.user_data = context_user_data = alloc_user_data ();
# 2069|     if (context_user_data == NULL) goto out;
# 2070|->   if (!PyCallable_Check (py_context_fn)) {
# 2071|       PyErr_SetString (PyExc_TypeError,
# 2072|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
libnbd-1.23.9/python/methods.c:2071:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2047:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2061:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2064:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2064:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2064:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:2065:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2066:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2067:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2068:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2068:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2068:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2069:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2070:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2070:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:2071:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:2071:5: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/133/codeFlows/0/threadFlows/0/locations/16)
# 2069|     if (context_user_data == NULL) goto out;
# 2070|     if (!PyCallable_Check (py_context_fn)) {
# 2071|->     PyErr_SetString (PyExc_TypeError,
# 2072|                        "callback parameter context is not callable");
# 2073|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
libnbd-1.23.9/python/methods.c:2079:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2047:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2061:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2064:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2064:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2064:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:2065:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2066:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2067:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2068:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2068:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2068:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2069:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2070:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2070:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2076:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2076:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2077:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:2079:3: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/134/codeFlows/0/threadFlows/0/locations/16)
# 2077|     context_user_data->fn = py_context_fn;
# 2078|   
# 2079|->   Py_BEGIN_ALLOW_THREADS;
# 2080|     ret = nbd_opt_set_meta_context_queries (h, queries, context);
# 2081|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
libnbd-1.23.9/python/methods.c:2080:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:2047:1: enter_function: entry to 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2061:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2064:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2064:7: call_function: calling 'get_handle' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2064:7: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:2065:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2066:13: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2067:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2068:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2068:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2068:43: return_function: returning to 'nbd_internal_py_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:2069:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2070:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2070:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2076:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2076:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:2077:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:2080:9: danger: 'context.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/135/codeFlows/0/threadFlows/0/locations/16)
# 2078|   
# 2079|     Py_BEGIN_ALLOW_THREADS;
# 2080|->   ret = nbd_opt_set_meta_context_queries (h, queries, context);
# 2081|     Py_END_ALLOW_THREADS;
# 2082|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
libnbd-1.23.9/python/methods.c:2165:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_meta_context(get_handle(py_h), (long unsigned int)i)'
libnbd-1.23.9/python/methods.c:2150:1: enter_function: entry to 'nbd_internal_py_get_meta_context'
libnbd-1.23.9/python/methods.c:2158:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2160:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2160:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_meta_context'
libnbd-1.23.9/python/methods.c:2160:7: return_function: returning to 'nbd_internal_py_get_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:2161:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2163:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2164:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:2165:3: danger: 'nbd_get_meta_context(get_handle(py_h), (long unsigned int)i)' leaks here; was allocated at [(13)](sarif:/runs/0/results/136/codeFlows/0/threadFlows/0/locations/12)
# 2163|     Py_BEGIN_ALLOW_THREADS;
# 2164|     ret = nbd_get_meta_context (h, (size_t)i);
# 2165|->   Py_END_ALLOW_THREADS;
# 2166|     if (ret == NULL) {
# 2167|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
libnbd-1.23.9/python/methods.c:2170:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_meta_context(get_handle(py_h), (long unsigned int)i)'
libnbd-1.23.9/python/methods.c:2150:1: enter_function: entry to 'nbd_internal_py_get_meta_context'
libnbd-1.23.9/python/methods.c:2158:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2160:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2160:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_meta_context'
libnbd-1.23.9/python/methods.c:2160:7: return_function: returning to 'nbd_internal_py_get_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:2161:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2163:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2164:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:2166:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2170:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2170:12: danger: 'nbd_get_meta_context(get_handle(py_h), (long unsigned int)i)' leaks here; was allocated at [(13)](sarif:/runs/0/results/137/codeFlows/0/threadFlows/0/locations/12)
# 2168|       goto out;
# 2169|     }
# 2170|->   py_ret = PyUnicode_FromString (ret);
# 2171|     free (ret);
# 2172|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
libnbd-1.23.9/python/methods.c:2554:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_socket_activation_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:2540:1: enter_function: entry to 'nbd_internal_py_get_socket_activation_name'
libnbd-1.23.9/python/methods.c:2547:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2549:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2549:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_socket_activation_name'
libnbd-1.23.9/python/methods.c:2549:7: return_function: returning to 'nbd_internal_py_get_socket_activation_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:2550:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2552:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2553:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:2554:3: danger: 'nbd_get_socket_activation_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/138/codeFlows/0/threadFlows/0/locations/12)
# 2552|     Py_BEGIN_ALLOW_THREADS;
# 2553|     ret = nbd_get_socket_activation_name (h);
# 2554|->   Py_END_ALLOW_THREADS;
# 2555|     if (ret == NULL) {
# 2556|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
libnbd-1.23.9/python/methods.c:2559:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_socket_activation_name(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:2540:1: enter_function: entry to 'nbd_internal_py_get_socket_activation_name'
libnbd-1.23.9/python/methods.c:2547:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2549:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2549:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_socket_activation_name'
libnbd-1.23.9/python/methods.c:2549:7: return_function: returning to 'nbd_internal_py_get_socket_activation_name' from 'get_handle'
libnbd-1.23.9/python/methods.c:2550:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2552:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2553:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:2555:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:2559:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:2559:12: danger: 'nbd_get_socket_activation_name(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/139/codeFlows/0/threadFlows/0/locations/12)
# 2557|       goto out;
# 2558|     }
# 2559|->   py_ret = PyUnicode_FromString (ret);
# 2560|     free (ret);
# 2561|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
libnbd-1.23.9/python/methods.c:3040:8: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:3012:1: enter_function: entry to 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3029:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3032:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3032:7: call_function: calling 'get_handle' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3032:7: return_function: returning to 'nbd_internal_py_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:3033:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3034:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3036:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3037:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3038:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3038:39: return_function: returning to 'nbd_internal_py_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3039:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3040:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3040:8: danger: 'chunk.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/140/codeFlows/0/threadFlows/0/locations/16)
# 3038|     chunk.user_data = chunk_user_data = alloc_user_data ();
# 3039|     if (chunk_user_data == NULL) goto out;
# 3040|->   if (!PyCallable_Check (py_chunk_fn)) {
# 3041|       PyErr_SetString (PyExc_TypeError,
# 3042|                        "callback parameter chunk is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
libnbd-1.23.9/python/methods.c:3041:5: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:3012:1: enter_function: entry to 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3029:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3032:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3032:7: call_function: calling 'get_handle' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3032:7: return_function: returning to 'nbd_internal_py_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:3033:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3034:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3036:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3037:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3038:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3038:39: return_function: returning to 'nbd_internal_py_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3039:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3040:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3040:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3041:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3041:5: danger: 'chunk.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/141/codeFlows/0/threadFlows/0/locations/16)
# 3039|     if (chunk_user_data == NULL) goto out;
# 3040|     if (!PyCallable_Check (py_chunk_fn)) {
# 3041|->     PyErr_SetString (PyExc_TypeError,
# 3042|                        "callback parameter chunk is not callable");
# 3043|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
libnbd-1.23.9/python/methods.c:3048:27: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:3012:1: enter_function: entry to 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3029:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3032:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3032:7: call_function: calling 'get_handle' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3032:7: return_function: returning to 'nbd_internal_py_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:3033:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3034:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3036:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3037:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3038:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3038:39: return_function: returning to 'nbd_internal_py_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3039:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3040:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3040:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3046:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3046:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3047:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3048:27: danger: 'chunk.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/142/codeFlows/0/threadFlows/0/locations/16)
# 3046|     Py_INCREF (py_chunk_fn);
# 3047|     chunk_user_data->fn = py_chunk_fn;
# 3048|->   chunk_user_data->view = nbd_internal_py_get_aio_view (buf, PyBUF_WRITE);
# 3049|     if (!chunk_user_data->view) goto out;
# 3050|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
libnbd-1.23.9/python/methods.c:3051:3: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:3012:1: enter_function: entry to 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3029:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3032:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3032:7: call_function: calling 'get_handle' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3032:7: return_function: returning to 'nbd_internal_py_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:3033:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3034:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3036:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3037:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3038:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3038:39: return_function: returning to 'nbd_internal_py_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3039:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3040:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3040:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3046:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3049:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3051:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3051:3: danger: 'chunk.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/143/codeFlows/0/threadFlows/0/locations/16)
# 3049|     if (!chunk_user_data->view) goto out;
# 3050|   
# 3051|->   Py_BEGIN_ALLOW_THREADS;
# 3052|     ret = nbd_pread_structured (h, PyByteArray_AS_STRING (buf), count,
# 3053|                                 offset_u64, chunk, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
libnbd-1.23.9/python/methods.c:3052:9: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:3012:1: enter_function: entry to 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3029:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3032:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3032:7: call_function: calling 'get_handle' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3032:7: return_function: returning to 'nbd_internal_py_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:3033:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3034:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3036:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3037:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3038:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3038:39: return_function: returning to 'nbd_internal_py_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3039:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3040:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3040:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3046:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3049:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3051:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3052:34: call_function: calling 'PyByteArray_AS_STRING' from 'nbd_internal_py_pread_structured'
libnbd-1.23.9/python/methods.c:3052:34: return_function: returning to 'nbd_internal_py_pread_structured' from 'PyByteArray_AS_STRING'
libnbd-1.23.9/python/methods.c:3052:9: danger: 'chunk.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/144/codeFlows/0/threadFlows/0/locations/16)
# 3050|   
# 3051|     Py_BEGIN_ALLOW_THREADS;
# 3052|->   ret = nbd_pread_structured (h, PyByteArray_AS_STRING (buf), count,
# 3053|                                 offset_u64, chunk, flags_u32);
# 3054|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
libnbd-1.23.9/python/methods.c:3305:8: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:3278:1: enter_function: entry to 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3295:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3298:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3298:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3298:7: return_function: returning to 'nbd_internal_py_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:3299:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3300:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3303:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3303:41: return_function: returning to 'nbd_internal_py_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3304:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3305:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3305:8: danger: 'extent.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/145/codeFlows/0/threadFlows/0/locations/14)
# 3303|     extent.user_data = extent_user_data = alloc_user_data ();
# 3304|     if (extent_user_data == NULL) goto out;
# 3305|->   if (!PyCallable_Check (py_extent_fn)) {
# 3306|       PyErr_SetString (PyExc_TypeError,
# 3307|                        "callback parameter extent is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
libnbd-1.23.9/python/methods.c:3306:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:3278:1: enter_function: entry to 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3295:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3298:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3298:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3298:7: return_function: returning to 'nbd_internal_py_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:3299:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3300:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3303:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3303:41: return_function: returning to 'nbd_internal_py_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3304:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3305:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3305:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3306:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3306:5: danger: 'extent.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/146/codeFlows/0/threadFlows/0/locations/14)
# 3304|     if (extent_user_data == NULL) goto out;
# 3305|     if (!PyCallable_Check (py_extent_fn)) {
# 3306|->     PyErr_SetString (PyExc_TypeError,
# 3307|                        "callback parameter extent is not callable");
# 3308|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
libnbd-1.23.9/python/methods.c:3314:3: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:3278:1: enter_function: entry to 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3295:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3298:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3298:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3298:7: return_function: returning to 'nbd_internal_py_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:3299:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3300:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3303:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3303:41: return_function: returning to 'nbd_internal_py_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3304:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3305:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3311:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3311:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3312:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3314:3: danger: 'extent.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/147/codeFlows/0/threadFlows/0/locations/14)
# 3312|     extent_user_data->fn = py_extent_fn;
# 3313|   
# 3314|->   Py_BEGIN_ALLOW_THREADS;
# 3315|     ret = nbd_block_status (h, count_u64, offset_u64, extent, flags_u32);
# 3316|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
libnbd-1.23.9/python/methods.c:3315:9: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:3278:1: enter_function: entry to 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3295:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3298:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3298:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3298:7: return_function: returning to 'nbd_internal_py_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:3299:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3300:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3303:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3303:41: return_function: returning to 'nbd_internal_py_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3304:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3305:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3311:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3311:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_block_status'
libnbd-1.23.9/python/methods.c:3312:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3315:9: danger: 'extent.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/148/codeFlows/0/threadFlows/0/locations/14)
# 3313|   
# 3314|     Py_BEGIN_ALLOW_THREADS;
# 3315|->   ret = nbd_block_status (h, count_u64, offset_u64, extent, flags_u32);
# 3316|     Py_END_ALLOW_THREADS;
# 3317|     extent_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
libnbd-1.23.9/python/methods.c:3358:8: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3331:1: enter_function: entry to 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3348:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3351:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3351:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3351:7: return_function: returning to 'nbd_internal_py_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:3352:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3353:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3356:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3356:45: return_function: returning to 'nbd_internal_py_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3357:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3358:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3358:8: danger: 'extent64.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/149/codeFlows/0/threadFlows/0/locations/14)
# 3356|     extent64.user_data = extent64_user_data = alloc_user_data ();
# 3357|     if (extent64_user_data == NULL) goto out;
# 3358|->   if (!PyCallable_Check (py_extent64_fn)) {
# 3359|       PyErr_SetString (PyExc_TypeError,
# 3360|                        "callback parameter extent64 is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
libnbd-1.23.9/python/methods.c:3359:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3331:1: enter_function: entry to 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3348:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3351:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3351:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3351:7: return_function: returning to 'nbd_internal_py_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:3352:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3353:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3356:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3356:45: return_function: returning to 'nbd_internal_py_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3357:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3358:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3358:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3359:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3359:5: danger: 'extent64.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/150/codeFlows/0/threadFlows/0/locations/14)
# 3357|     if (extent64_user_data == NULL) goto out;
# 3358|     if (!PyCallable_Check (py_extent64_fn)) {
# 3359|->     PyErr_SetString (PyExc_TypeError,
# 3360|                        "callback parameter extent64 is not callable");
# 3361|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
libnbd-1.23.9/python/methods.c:3367:3: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3331:1: enter_function: entry to 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3348:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3351:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3351:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3351:7: return_function: returning to 'nbd_internal_py_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:3352:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3353:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3356:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3356:45: return_function: returning to 'nbd_internal_py_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3357:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3358:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3358:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3364:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3364:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3365:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3367:3: danger: 'extent64.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/151/codeFlows/0/threadFlows/0/locations/14)
# 3365|     extent64_user_data->fn = py_extent64_fn;
# 3366|   
# 3367|->   Py_BEGIN_ALLOW_THREADS;
# 3368|     ret = nbd_block_status_64 (h, count_u64, offset_u64, extent64, flags_u32);
# 3369|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
libnbd-1.23.9/python/methods.c:3368:9: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3331:1: enter_function: entry to 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3348:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3351:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3351:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3351:7: return_function: returning to 'nbd_internal_py_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:3352:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3353:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3356:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3356:45: return_function: returning to 'nbd_internal_py_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3357:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3358:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3358:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3364:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3364:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_block_status_64'
libnbd-1.23.9/python/methods.c:3365:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3368:9: danger: 'extent64.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/152/codeFlows/0/threadFlows/0/locations/14)
# 3366|   
# 3367|     Py_BEGIN_ALLOW_THREADS;
# 3368|->   ret = nbd_block_status_64 (h, count_u64, offset_u64, extent64, flags_u32);
# 3369|     Py_END_ALLOW_THREADS;
# 3370|     extent64_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
libnbd-1.23.9/python/methods.c:3416:8: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3384:1: enter_function: entry to 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3403:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3407:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3407:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3407:7: return_function: returning to 'nbd_internal_py_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:3408:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3409:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3413:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3414:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3414:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3414:45: return_function: returning to 'nbd_internal_py_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3415:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3416:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3416:8: danger: 'extent64.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/153/codeFlows/0/threadFlows/0/locations/16)
# 3414|     extent64.user_data = extent64_user_data = alloc_user_data ();
# 3415|     if (extent64_user_data == NULL) goto out;
# 3416|->   if (!PyCallable_Check (py_extent64_fn)) {
# 3417|       PyErr_SetString (PyExc_TypeError,
# 3418|                        "callback parameter extent64 is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
libnbd-1.23.9/python/methods.c:3417:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3384:1: enter_function: entry to 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3403:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3407:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3407:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3407:7: return_function: returning to 'nbd_internal_py_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:3408:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3409:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3413:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3414:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3414:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3414:45: return_function: returning to 'nbd_internal_py_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3415:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3416:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3416:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3417:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3417:5: danger: 'extent64.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/154/codeFlows/0/threadFlows/0/locations/16)
# 3415|     if (extent64_user_data == NULL) goto out;
# 3416|     if (!PyCallable_Check (py_extent64_fn)) {
# 3417|->     PyErr_SetString (PyExc_TypeError,
# 3418|                        "callback parameter extent64 is not callable");
# 3419|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
libnbd-1.23.9/python/methods.c:3425:3: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3384:1: enter_function: entry to 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3403:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3407:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3407:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3407:7: return_function: returning to 'nbd_internal_py_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:3408:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3409:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3413:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3414:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3414:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3414:45: return_function: returning to 'nbd_internal_py_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3415:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3416:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3416:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3422:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3422:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3423:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3425:3: danger: 'extent64.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/155/codeFlows/0/threadFlows/0/locations/16)
# 3423|     extent64_user_data->fn = py_extent64_fn;
# 3424|   
# 3425|->   Py_BEGIN_ALLOW_THREADS;
# 3426|     ret = nbd_block_status_filter (h, count_u64, offset_u64, contexts,
# 3427|                                    extent64, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
libnbd-1.23.9/python/methods.c:3426:9: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:3384:1: enter_function: entry to 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3403:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3407:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3407:7: call_function: calling 'get_handle' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3407:7: return_function: returning to 'nbd_internal_py_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:3408:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3409:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3413:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3414:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3414:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3414:45: return_function: returning to 'nbd_internal_py_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3415:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3416:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3416:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3422:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3422:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_block_status_filter'
libnbd-1.23.9/python/methods.c:3423:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3426:9: danger: 'extent64.user_data' leaks here; was allocated at [(17)](sarif:/runs/0/results/156/codeFlows/0/threadFlows/0/locations/16)
# 3424|   
# 3425|     Py_BEGIN_ALLOW_THREADS;
# 3426|->   ret = nbd_block_status_filter (h, count_u64, offset_u64, contexts,
# 3427|                                    extent64, flags_u32);
# 3428|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
libnbd-1.23.9/python/methods.c:3771:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3752:1: enter_function: entry to 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3763:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3766:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3766:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3766:7: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'get_handle'
libnbd-1.23.9/python/methods.c:3767:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3768:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3768:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3768:49: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3769:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3770:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3770:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3771:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3771:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/157/codeFlows/0/threadFlows/0/locations/14)
# 3769|     if (completion_user_data == NULL) goto out;
# 3770|     if (py_completion_fn != Py_None) {
# 3771|->     if (!PyCallable_Check (py_completion_fn)) {
# 3772|         PyErr_SetString (PyExc_TypeError,
# 3773|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
libnbd-1.23.9/python/methods.c:3772:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3752:1: enter_function: entry to 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3763:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3766:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3766:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3766:7: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'get_handle'
libnbd-1.23.9/python/methods.c:3767:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3768:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3768:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3768:49: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3769:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3770:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3770:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3771:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3771:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3772:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3772:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/158/codeFlows/0/threadFlows/0/locations/14)
# 3770|     if (py_completion_fn != Py_None) {
# 3771|       if (!PyCallable_Check (py_completion_fn)) {
# 3772|->       PyErr_SetString (PyExc_TypeError,
# 3773|                          "callback parameter completion is not callable");
# 3774|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
libnbd-1.23.9/python/methods.c:3783:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3752:1: enter_function: entry to 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3763:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3766:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3766:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3766:7: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'get_handle'
libnbd-1.23.9/python/methods.c:3767:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3768:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3768:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3768:49: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3769:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3770:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3770:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3781:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3783:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/159/codeFlows/0/threadFlows/0/locations/14)
# 3781|       completion.callback = NULL; /* we're not going to call it */
# 3782|   
# 3783|->   Py_BEGIN_ALLOW_THREADS;
# 3784|     ret = nbd_aio_opt_go (h, completion);
# 3785|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
libnbd-1.23.9/python/methods.c:3784:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3752:1: enter_function: entry to 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3763:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3766:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3766:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3766:7: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'get_handle'
libnbd-1.23.9/python/methods.c:3767:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3768:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3768:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_go'
libnbd-1.23.9/python/methods.c:3768:49: return_function: returning to 'nbd_internal_py_aio_opt_go' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3769:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3770:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3770:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3781:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3784:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/160/codeFlows/0/threadFlows/0/locations/14)
# 3782|   
# 3783|     Py_BEGIN_ALLOW_THREADS;
# 3784|->   ret = nbd_aio_opt_go (h, completion);
# 3785|     Py_END_ALLOW_THREADS;
# 3786|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
libnbd-1.23.9/python/methods.c:3846:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3827:1: enter_function: entry to 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3838:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3841:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3841:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3841:7: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'get_handle'
libnbd-1.23.9/python/methods.c:3842:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3843:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3843:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3843:49: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3844:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3845:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3845:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3846:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3846:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/161/codeFlows/0/threadFlows/0/locations/14)
# 3844|     if (completion_user_data == NULL) goto out;
# 3845|     if (py_completion_fn != Py_None) {
# 3846|->     if (!PyCallable_Check (py_completion_fn)) {
# 3847|         PyErr_SetString (PyExc_TypeError,
# 3848|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
libnbd-1.23.9/python/methods.c:3847:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3827:1: enter_function: entry to 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3838:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3841:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3841:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3841:7: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'get_handle'
libnbd-1.23.9/python/methods.c:3842:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3843:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3843:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3843:49: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3844:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3845:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3845:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3846:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3846:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3847:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3847:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/162/codeFlows/0/threadFlows/0/locations/14)
# 3845|     if (py_completion_fn != Py_None) {
# 3846|       if (!PyCallable_Check (py_completion_fn)) {
# 3847|->       PyErr_SetString (PyExc_TypeError,
# 3848|                          "callback parameter completion is not callable");
# 3849|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
libnbd-1.23.9/python/methods.c:3858:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3827:1: enter_function: entry to 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3838:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3841:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3841:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3841:7: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'get_handle'
libnbd-1.23.9/python/methods.c:3842:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3843:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3843:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3843:49: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3844:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3845:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3845:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3856:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3858:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/163/codeFlows/0/threadFlows/0/locations/14)
# 3856|       completion.callback = NULL; /* we're not going to call it */
# 3857|   
# 3858|->   Py_BEGIN_ALLOW_THREADS;
# 3859|     ret = nbd_aio_opt_starttls (h, completion);
# 3860|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
libnbd-1.23.9/python/methods.c:3859:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3827:1: enter_function: entry to 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3838:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3841:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3841:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3841:7: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'get_handle'
libnbd-1.23.9/python/methods.c:3842:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3843:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3843:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_starttls'
libnbd-1.23.9/python/methods.c:3843:49: return_function: returning to 'nbd_internal_py_aio_opt_starttls' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3844:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3845:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3845:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3856:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3859:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/164/codeFlows/0/threadFlows/0/locations/14)
# 3857|   
# 3858|     Py_BEGIN_ALLOW_THREADS;
# 3859|->   ret = nbd_aio_opt_starttls (h, completion);
# 3860|     Py_END_ALLOW_THREADS;
# 3861|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
libnbd-1.23.9/python/methods.c:3894:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3875:1: enter_function: entry to 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3886:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3889:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3889:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3889:7: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'get_handle'
libnbd-1.23.9/python/methods.c:3890:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3891:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3891:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3891:49: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3892:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3893:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3893:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3894:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3894:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/165/codeFlows/0/threadFlows/0/locations/14)
# 3892|     if (completion_user_data == NULL) goto out;
# 3893|     if (py_completion_fn != Py_None) {
# 3894|->     if (!PyCallable_Check (py_completion_fn)) {
# 3895|         PyErr_SetString (PyExc_TypeError,
# 3896|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
libnbd-1.23.9/python/methods.c:3895:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3875:1: enter_function: entry to 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3886:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3889:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3889:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3889:7: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'get_handle'
libnbd-1.23.9/python/methods.c:3890:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3891:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3891:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3891:49: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3892:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3893:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3893:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3894:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3894:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3895:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3895:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/166/codeFlows/0/threadFlows/0/locations/14)
# 3893|     if (py_completion_fn != Py_None) {
# 3894|       if (!PyCallable_Check (py_completion_fn)) {
# 3895|->       PyErr_SetString (PyExc_TypeError,
# 3896|                          "callback parameter completion is not callable");
# 3897|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
libnbd-1.23.9/python/methods.c:3906:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3875:1: enter_function: entry to 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3886:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3889:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3889:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3889:7: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'get_handle'
libnbd-1.23.9/python/methods.c:3890:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3891:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3891:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3891:49: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3892:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3893:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3893:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3904:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3906:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/167/codeFlows/0/threadFlows/0/locations/14)
# 3904|       completion.callback = NULL; /* we're not going to call it */
# 3905|   
# 3906|->   Py_BEGIN_ALLOW_THREADS;
# 3907|     ret = nbd_aio_opt_extended_headers (h, completion);
# 3908|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
libnbd-1.23.9/python/methods.c:3907:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3875:1: enter_function: entry to 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3886:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3889:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3889:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3889:7: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'get_handle'
libnbd-1.23.9/python/methods.c:3890:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3891:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3891:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_extended_headers'
libnbd-1.23.9/python/methods.c:3891:49: return_function: returning to 'nbd_internal_py_aio_opt_extended_headers' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3892:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3893:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3893:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3904:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3907:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/168/codeFlows/0/threadFlows/0/locations/14)
# 3905|   
# 3906|     Py_BEGIN_ALLOW_THREADS;
# 3907|->   ret = nbd_aio_opt_extended_headers (h, completion);
# 3908|     Py_END_ALLOW_THREADS;
# 3909|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
libnbd-1.23.9/python/methods.c:3942:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3923:1: enter_function: entry to 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3934:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3937:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3937:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3937:7: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'get_handle'
libnbd-1.23.9/python/methods.c:3938:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3939:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3939:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3939:49: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3940:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3941:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3941:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3942:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3942:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/169/codeFlows/0/threadFlows/0/locations/14)
# 3940|     if (completion_user_data == NULL) goto out;
# 3941|     if (py_completion_fn != Py_None) {
# 3942|->     if (!PyCallable_Check (py_completion_fn)) {
# 3943|         PyErr_SetString (PyExc_TypeError,
# 3944|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
libnbd-1.23.9/python/methods.c:3943:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3923:1: enter_function: entry to 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3934:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3937:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3937:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3937:7: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'get_handle'
libnbd-1.23.9/python/methods.c:3938:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3939:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3939:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3939:49: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3940:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3941:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3941:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3942:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3942:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3943:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3943:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/170/codeFlows/0/threadFlows/0/locations/14)
# 3941|     if (py_completion_fn != Py_None) {
# 3942|       if (!PyCallable_Check (py_completion_fn)) {
# 3943|->       PyErr_SetString (PyExc_TypeError,
# 3944|                          "callback parameter completion is not callable");
# 3945|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
libnbd-1.23.9/python/methods.c:3954:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3923:1: enter_function: entry to 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3934:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3937:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3937:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3937:7: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'get_handle'
libnbd-1.23.9/python/methods.c:3938:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3939:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3939:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3939:49: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3940:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3941:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3941:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3952:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3954:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/171/codeFlows/0/threadFlows/0/locations/14)
# 3952|       completion.callback = NULL; /* we're not going to call it */
# 3953|   
# 3954|->   Py_BEGIN_ALLOW_THREADS;
# 3955|     ret = nbd_aio_opt_structured_reply (h, completion);
# 3956|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
libnbd-1.23.9/python/methods.c:3955:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3923:1: enter_function: entry to 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3934:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3937:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3937:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3937:7: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'get_handle'
libnbd-1.23.9/python/methods.c:3938:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3939:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3939:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_structured_reply'
libnbd-1.23.9/python/methods.c:3939:49: return_function: returning to 'nbd_internal_py_aio_opt_structured_reply' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3940:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3941:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3941:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3952:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3955:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/172/codeFlows/0/threadFlows/0/locations/14)
# 3953|   
# 3954|     Py_BEGIN_ALLOW_THREADS;
# 3955|->   ret = nbd_aio_opt_structured_reply (h, completion);
# 3956|     Py_END_ALLOW_THREADS;
# 3957|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
libnbd-1.23.9/python/methods.c:3994:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3994:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3994:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/173/codeFlows/0/threadFlows/0/locations/14)
# 3992|     if (completion_user_data == NULL) goto out;
# 3993|     if (py_completion_fn != Py_None) {
# 3994|->     if (!PyCallable_Check (py_completion_fn)) {
# 3995|         PyErr_SetString (PyExc_TypeError,
# 3996|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
libnbd-1.23.9/python/methods.c:3995:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3994:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3994:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:3995:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:3995:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/174/codeFlows/0/threadFlows/0/locations/14)
# 3993|     if (py_completion_fn != Py_None) {
# 3994|       if (!PyCallable_Check (py_completion_fn)) {
# 3995|->       PyErr_SetString (PyExc_TypeError,
# 3996|                          "callback parameter completion is not callable");
# 3997|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
libnbd-1.23.9/python/methods.c:4007:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/176/codeFlows/0/threadFlows/0/locations/14)
# 4005|     list.user_data = list_user_data = alloc_user_data ();
# 4006|     if (list_user_data == NULL) goto out;
# 4007|->   if (!PyCallable_Check (py_list_fn)) {
# 4008|       PyErr_SetString (PyExc_TypeError,
# 4009|                        "callback parameter list is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
libnbd-1.23.9/python/methods.c:4007:8: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:8: danger: 'list.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/175/codeFlows/0/threadFlows/0/locations/23)
# 4005|     list.user_data = list_user_data = alloc_user_data ();
# 4006|     if (list_user_data == NULL) goto out;
# 4007|->   if (!PyCallable_Check (py_list_fn)) {
# 4008|       PyErr_SetString (PyExc_TypeError,
# 4009|                        "callback parameter list is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
libnbd-1.23.9/python/methods.c:4008:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4008:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4008:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/177/codeFlows/0/threadFlows/0/locations/14)
# 4006|     if (list_user_data == NULL) goto out;
# 4007|     if (!PyCallable_Check (py_list_fn)) {
# 4008|->     PyErr_SetString (PyExc_TypeError,
# 4009|                        "callback parameter list is not callable");
# 4010|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
libnbd-1.23.9/python/methods.c:4008:5: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4008:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4008:5: danger: 'list.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/178/codeFlows/0/threadFlows/0/locations/23)
# 4006|     if (list_user_data == NULL) goto out;
# 4007|     if (!PyCallable_Check (py_list_fn)) {
# 4008|->     PyErr_SetString (PyExc_TypeError,
# 4009|                        "callback parameter list is not callable");
# 4010|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
libnbd-1.23.9/python/methods.c:4016:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4013:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4013:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4014:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4016:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/179/codeFlows/0/threadFlows/0/locations/14)
# 4014|     list_user_data->fn = py_list_fn;
# 4015|   
# 4016|->   Py_BEGIN_ALLOW_THREADS;
# 4017|     ret = nbd_aio_opt_list (h, list, completion);
# 4018|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
libnbd-1.23.9/python/methods.c:4016:3: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4013:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4013:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4014:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4016:3: danger: 'list.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/180/codeFlows/0/threadFlows/0/locations/23)
# 4014|     list_user_data->fn = py_list_fn;
# 4015|   
# 4016|->   Py_BEGIN_ALLOW_THREADS;
# 4017|     ret = nbd_aio_opt_list (h, list, completion);
# 4018|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
libnbd-1.23.9/python/methods.c:4017:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4013:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4013:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4014:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4017:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/181/codeFlows/0/threadFlows/0/locations/14)
# 4015|   
# 4016|     Py_BEGIN_ALLOW_THREADS;
# 4017|->   ret = nbd_aio_opt_list (h, list, completion);
# 4018|     Py_END_ALLOW_THREADS;
# 4019|     list_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
libnbd-1.23.9/python/methods.c:4017:9: warning[-Wanalyzer-malloc-leak]: leak of 'list.user_data'
libnbd-1.23.9/python/methods.c:3971:1: enter_function: entry to 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3986:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3989:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3989:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3989:7: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'get_handle'
libnbd-1.23.9/python/methods.c:3990:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3991:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3991:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:3991:49: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:3992:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:3993:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:3993:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4004:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4005:37: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4005:37: return_function: returning to 'nbd_internal_py_aio_opt_list' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4006:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4007:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4007:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4013:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4013:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list'
libnbd-1.23.9/python/methods.c:4014:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4017:9: danger: 'list.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/182/codeFlows/0/threadFlows/0/locations/23)
# 4015|   
# 4016|     Py_BEGIN_ALLOW_THREADS;
# 4017|->   ret = nbd_aio_opt_list (h, list, completion);
# 4018|     Py_END_ALLOW_THREADS;
# 4019|     list_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
libnbd-1.23.9/python/methods.c:4054:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4035:1: enter_function: entry to 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4046:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4049:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4049:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4049:7: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'get_handle'
libnbd-1.23.9/python/methods.c:4050:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4051:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4051:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4051:49: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4052:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4053:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4053:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4054:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4054:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/183/codeFlows/0/threadFlows/0/locations/14)
# 4052|     if (completion_user_data == NULL) goto out;
# 4053|     if (py_completion_fn != Py_None) {
# 4054|->     if (!PyCallable_Check (py_completion_fn)) {
# 4055|         PyErr_SetString (PyExc_TypeError,
# 4056|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
libnbd-1.23.9/python/methods.c:4055:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4035:1: enter_function: entry to 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4046:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4049:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4049:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4049:7: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'get_handle'
libnbd-1.23.9/python/methods.c:4050:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4051:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4051:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4051:49: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4052:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4053:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4053:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4054:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4054:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4055:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4055:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/184/codeFlows/0/threadFlows/0/locations/14)
# 4053|     if (py_completion_fn != Py_None) {
# 4054|       if (!PyCallable_Check (py_completion_fn)) {
# 4055|->       PyErr_SetString (PyExc_TypeError,
# 4056|                          "callback parameter completion is not callable");
# 4057|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
libnbd-1.23.9/python/methods.c:4066:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4035:1: enter_function: entry to 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4046:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4049:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4049:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4049:7: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'get_handle'
libnbd-1.23.9/python/methods.c:4050:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4051:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4051:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4051:49: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4052:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4053:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4053:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4064:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4066:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/185/codeFlows/0/threadFlows/0/locations/14)
# 4064|       completion.callback = NULL; /* we're not going to call it */
# 4065|   
# 4066|->   Py_BEGIN_ALLOW_THREADS;
# 4067|     ret = nbd_aio_opt_info (h, completion);
# 4068|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
libnbd-1.23.9/python/methods.c:4067:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4035:1: enter_function: entry to 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4046:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4049:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4049:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4049:7: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'get_handle'
libnbd-1.23.9/python/methods.c:4050:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4051:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4051:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_info'
libnbd-1.23.9/python/methods.c:4051:49: return_function: returning to 'nbd_internal_py_aio_opt_info' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4052:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4053:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4053:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4064:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4067:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/186/codeFlows/0/threadFlows/0/locations/14)
# 4065|   
# 4066|     Py_BEGIN_ALLOW_THREADS;
# 4067|->   ret = nbd_aio_opt_info (h, completion);
# 4068|     Py_END_ALLOW_THREADS;
# 4069|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
libnbd-1.23.9/python/methods.c:4106:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4106:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4106:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/187/codeFlows/0/threadFlows/0/locations/14)
# 4104|     if (completion_user_data == NULL) goto out;
# 4105|     if (py_completion_fn != Py_None) {
# 4106|->     if (!PyCallable_Check (py_completion_fn)) {
# 4107|         PyErr_SetString (PyExc_TypeError,
# 4108|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
libnbd-1.23.9/python/methods.c:4107:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4106:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4106:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4107:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4107:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/188/codeFlows/0/threadFlows/0/locations/14)
# 4105|     if (py_completion_fn != Py_None) {
# 4106|       if (!PyCallable_Check (py_completion_fn)) {
# 4107|->       PyErr_SetString (PyExc_TypeError,
# 4108|                          "callback parameter completion is not callable");
# 4109|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
libnbd-1.23.9/python/methods.c:4119:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/189/codeFlows/0/threadFlows/0/locations/14)
# 4117|     context.user_data = context_user_data = alloc_user_data ();
# 4118|     if (context_user_data == NULL) goto out;
# 4119|->   if (!PyCallable_Check (py_context_fn)) {
# 4120|       PyErr_SetString (PyExc_TypeError,
# 4121|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
libnbd-1.23.9/python/methods.c:4119:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:8: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/190/codeFlows/0/threadFlows/0/locations/23)
# 4117|     context.user_data = context_user_data = alloc_user_data ();
# 4118|     if (context_user_data == NULL) goto out;
# 4119|->   if (!PyCallable_Check (py_context_fn)) {
# 4120|       PyErr_SetString (PyExc_TypeError,
# 4121|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
libnbd-1.23.9/python/methods.c:4120:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4120:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4120:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/191/codeFlows/0/threadFlows/0/locations/14)
# 4118|     if (context_user_data == NULL) goto out;
# 4119|     if (!PyCallable_Check (py_context_fn)) {
# 4120|->     PyErr_SetString (PyExc_TypeError,
# 4121|                        "callback parameter context is not callable");
# 4122|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
libnbd-1.23.9/python/methods.c:4120:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4120:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4120:5: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/192/codeFlows/0/threadFlows/0/locations/23)
# 4118|     if (context_user_data == NULL) goto out;
# 4119|     if (!PyCallable_Check (py_context_fn)) {
# 4120|->     PyErr_SetString (PyExc_TypeError,
# 4121|                        "callback parameter context is not callable");
# 4122|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
libnbd-1.23.9/python/methods.c:4128:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4125:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4125:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4126:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4128:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/194/codeFlows/0/threadFlows/0/locations/14)
# 4126|     context_user_data->fn = py_context_fn;
# 4127|   
# 4128|->   Py_BEGIN_ALLOW_THREADS;
# 4129|     ret = nbd_aio_opt_list_meta_context (h, context, completion);
# 4130|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
libnbd-1.23.9/python/methods.c:4128:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4125:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4125:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4126:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4128:3: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/193/codeFlows/0/threadFlows/0/locations/23)
# 4126|     context_user_data->fn = py_context_fn;
# 4127|   
# 4128|->   Py_BEGIN_ALLOW_THREADS;
# 4129|     ret = nbd_aio_opt_list_meta_context (h, context, completion);
# 4130|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
libnbd-1.23.9/python/methods.c:4129:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4125:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4125:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4126:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4129:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/195/codeFlows/0/threadFlows/0/locations/14)
# 4127|   
# 4128|     Py_BEGIN_ALLOW_THREADS;
# 4129|->   ret = nbd_aio_opt_list_meta_context (h, context, completion);
# 4130|     Py_END_ALLOW_THREADS;
# 4131|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
libnbd-1.23.9/python/methods.c:4129:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4083:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4098:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4101:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4101:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4101:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4102:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4103:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4103:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4103:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4104:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4105:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4105:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4116:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4117:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4117:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4118:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4119:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4119:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4125:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4125:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context'
libnbd-1.23.9/python/methods.c:4126:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4129:9: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/196/codeFlows/0/threadFlows/0/locations/23)
# 4127|   
# 4128|     Py_BEGIN_ALLOW_THREADS;
# 4129|->   ret = nbd_aio_opt_list_meta_context (h, context, completion);
# 4130|     Py_END_ALLOW_THREADS;
# 4131|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
libnbd-1.23.9/python/methods.c:4173:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4173:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4173:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/197/codeFlows/0/threadFlows/0/locations/14)
# 4171|     if (completion_user_data == NULL) goto out;
# 4172|     if (py_completion_fn != Py_None) {
# 4173|->     if (!PyCallable_Check (py_completion_fn)) {
# 4174|         PyErr_SetString (PyExc_TypeError,
# 4175|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
libnbd-1.23.9/python/methods.c:4174:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4173:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4173:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4174:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4174:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/198/codeFlows/0/threadFlows/0/locations/14)
# 4172|     if (py_completion_fn != Py_None) {
# 4173|       if (!PyCallable_Check (py_completion_fn)) {
# 4174|->       PyErr_SetString (PyExc_TypeError,
# 4175|                          "callback parameter completion is not callable");
# 4176|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
libnbd-1.23.9/python/methods.c:4184:13: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4184:13: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/14)
# 4182|     else
# 4183|       completion.callback = NULL; /* we're not going to call it */
# 4184|->   queries = nbd_internal_py_get_string_list (py_queries);
# 4185|     if (!queries) goto out;
# 4186|     context.user_data = context_user_data = alloc_user_data ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
libnbd-1.23.9/python/methods.c:4188:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/201/codeFlows/0/threadFlows/0/locations/14)
# 4186|     context.user_data = context_user_data = alloc_user_data ();
# 4187|     if (context_user_data == NULL) goto out;
# 4188|->   if (!PyCallable_Check (py_context_fn)) {
# 4189|       PyErr_SetString (PyExc_TypeError,
# 4190|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
libnbd-1.23.9/python/methods.c:4188:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:8: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/25)
# 4186|     context.user_data = context_user_data = alloc_user_data ();
# 4187|     if (context_user_data == NULL) goto out;
# 4188|->   if (!PyCallable_Check (py_context_fn)) {
# 4189|       PyErr_SetString (PyExc_TypeError,
# 4190|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
libnbd-1.23.9/python/methods.c:4189:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4189:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4189:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/202/codeFlows/0/threadFlows/0/locations/14)
# 4187|     if (context_user_data == NULL) goto out;
# 4188|     if (!PyCallable_Check (py_context_fn)) {
# 4189|->     PyErr_SetString (PyExc_TypeError,
# 4190|                        "callback parameter context is not callable");
# 4191|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
libnbd-1.23.9/python/methods.c:4189:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4189:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4189:5: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/25)
# 4187|     if (context_user_data == NULL) goto out;
# 4188|     if (!PyCallable_Check (py_context_fn)) {
# 4189|->     PyErr_SetString (PyExc_TypeError,
# 4190|                        "callback parameter context is not callable");
# 4191|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
libnbd-1.23.9/python/methods.c:4197:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4194:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4194:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4195:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4197:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/14)
# 4195|     context_user_data->fn = py_context_fn;
# 4196|   
# 4197|->   Py_BEGIN_ALLOW_THREADS;
# 4198|     ret = nbd_aio_opt_list_meta_context_queries (h, queries, context,
# 4199|                                                  completion);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
libnbd-1.23.9/python/methods.c:4197:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4194:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4194:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4195:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4197:3: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/25)
# 4195|     context_user_data->fn = py_context_fn;
# 4196|   
# 4197|->   Py_BEGIN_ALLOW_THREADS;
# 4198|     ret = nbd_aio_opt_list_meta_context_queries (h, queries, context,
# 4199|                                                  completion);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
libnbd-1.23.9/python/methods.c:4198:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4194:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4194:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4195:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4198:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/14)
# 4196|   
# 4197|     Py_BEGIN_ALLOW_THREADS;
# 4198|->   ret = nbd_aio_opt_list_meta_context_queries (h, queries, context,
# 4199|                                                  completion);
# 4200|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
libnbd-1.23.9/python/methods.c:4198:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4183:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4185:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4186:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4186:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4186:43: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4187:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4188:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4188:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4194:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4194:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4195:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4198:9: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/25)
# 4196|   
# 4197|     Py_BEGIN_ALLOW_THREADS;
# 4198|->   ret = nbd_aio_opt_list_meta_context_queries (h, queries, context,
# 4199|                                                  completion);
# 4200|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
libnbd-1.23.9/python/methods.c:4210:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion_user_data'
libnbd-1.23.9/python/methods.c:4146:1: enter_function: entry to 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4164:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4168:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4168:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4168:7: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4169:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4170:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4170:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_list_meta_context_queries'
libnbd-1.23.9/python/methods.c:4170:49: return_function: returning to 'nbd_internal_py_aio_opt_list_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4171:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4172:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4172:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4173:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4173:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4174:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4210:3: danger: 'completion_user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/14)
# 4208|   
# 4209|    out:
# 4210|->   nbd_internal_py_free_string_list (queries);
# 4211|     free_user_data (context_user_data);
# 4212|     free_user_data (completion_user_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
libnbd-1.23.9/python/methods.c:4240:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4240:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4240:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/209/codeFlows/0/threadFlows/0/locations/14)
# 4238|     if (completion_user_data == NULL) goto out;
# 4239|     if (py_completion_fn != Py_None) {
# 4240|->     if (!PyCallable_Check (py_completion_fn)) {
# 4241|         PyErr_SetString (PyExc_TypeError,
# 4242|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
libnbd-1.23.9/python/methods.c:4241:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4240:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4240:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4241:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4241:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/210/codeFlows/0/threadFlows/0/locations/14)
# 4239|     if (py_completion_fn != Py_None) {
# 4240|       if (!PyCallable_Check (py_completion_fn)) {
# 4241|->       PyErr_SetString (PyExc_TypeError,
# 4242|                          "callback parameter completion is not callable");
# 4243|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
libnbd-1.23.9/python/methods.c:4253:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/211/codeFlows/0/threadFlows/0/locations/14)
# 4251|     context.user_data = context_user_data = alloc_user_data ();
# 4252|     if (context_user_data == NULL) goto out;
# 4253|->   if (!PyCallable_Check (py_context_fn)) {
# 4254|       PyErr_SetString (PyExc_TypeError,
# 4255|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
libnbd-1.23.9/python/methods.c:4253:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:8: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/212/codeFlows/0/threadFlows/0/locations/23)
# 4251|     context.user_data = context_user_data = alloc_user_data ();
# 4252|     if (context_user_data == NULL) goto out;
# 4253|->   if (!PyCallable_Check (py_context_fn)) {
# 4254|       PyErr_SetString (PyExc_TypeError,
# 4255|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
libnbd-1.23.9/python/methods.c:4254:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4254:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4254:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/213/codeFlows/0/threadFlows/0/locations/14)
# 4252|     if (context_user_data == NULL) goto out;
# 4253|     if (!PyCallable_Check (py_context_fn)) {
# 4254|->     PyErr_SetString (PyExc_TypeError,
# 4255|                        "callback parameter context is not callable");
# 4256|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
libnbd-1.23.9/python/methods.c:4254:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4254:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4254:5: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/214/codeFlows/0/threadFlows/0/locations/23)
# 4252|     if (context_user_data == NULL) goto out;
# 4253|     if (!PyCallable_Check (py_context_fn)) {
# 4254|->     PyErr_SetString (PyExc_TypeError,
# 4255|                        "callback parameter context is not callable");
# 4256|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
libnbd-1.23.9/python/methods.c:4262:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4259:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4259:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4260:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4262:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/216/codeFlows/0/threadFlows/0/locations/14)
# 4260|     context_user_data->fn = py_context_fn;
# 4261|   
# 4262|->   Py_BEGIN_ALLOW_THREADS;
# 4263|     ret = nbd_aio_opt_set_meta_context (h, context, completion);
# 4264|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
libnbd-1.23.9/python/methods.c:4262:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4259:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4259:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4260:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4262:3: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/215/codeFlows/0/threadFlows/0/locations/23)
# 4260|     context_user_data->fn = py_context_fn;
# 4261|   
# 4262|->   Py_BEGIN_ALLOW_THREADS;
# 4263|     ret = nbd_aio_opt_set_meta_context (h, context, completion);
# 4264|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
libnbd-1.23.9/python/methods.c:4263:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4259:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4259:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4260:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4263:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/217/codeFlows/0/threadFlows/0/locations/14)
# 4261|   
# 4262|     Py_BEGIN_ALLOW_THREADS;
# 4263|->   ret = nbd_aio_opt_set_meta_context (h, context, completion);
# 4264|     Py_END_ALLOW_THREADS;
# 4265|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
libnbd-1.23.9/python/methods.c:4263:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4217:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4232:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4235:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4235:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4235:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'get_handle'
libnbd-1.23.9/python/methods.c:4236:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4237:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4237:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4237:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4238:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4239:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4239:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4250:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4251:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4251:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4252:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4253:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4253:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4259:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4259:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context'
libnbd-1.23.9/python/methods.c:4260:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4263:9: danger: 'context.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/218/codeFlows/0/threadFlows/0/locations/23)
# 4261|   
# 4262|     Py_BEGIN_ALLOW_THREADS;
# 4263|->   ret = nbd_aio_opt_set_meta_context (h, context, completion);
# 4264|     Py_END_ALLOW_THREADS;
# 4265|     context_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
libnbd-1.23.9/python/methods.c:4307:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4307:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4307:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/219/codeFlows/0/threadFlows/0/locations/14)
# 4305|     if (completion_user_data == NULL) goto out;
# 4306|     if (py_completion_fn != Py_None) {
# 4307|->     if (!PyCallable_Check (py_completion_fn)) {
# 4308|         PyErr_SetString (PyExc_TypeError,
# 4309|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
libnbd-1.23.9/python/methods.c:4308:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4307:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4307:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4308:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4308:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/220/codeFlows/0/threadFlows/0/locations/14)
# 4306|     if (py_completion_fn != Py_None) {
# 4307|       if (!PyCallable_Check (py_completion_fn)) {
# 4308|->       PyErr_SetString (PyExc_TypeError,
# 4309|                          "callback parameter completion is not callable");
# 4310|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
libnbd-1.23.9/python/methods.c:4318:13: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4318:13: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/221/codeFlows/0/threadFlows/0/locations/14)
# 4316|     else
# 4317|       completion.callback = NULL; /* we're not going to call it */
# 4318|->   queries = nbd_internal_py_get_string_list (py_queries);
# 4319|     if (!queries) goto out;
# 4320|     context.user_data = context_user_data = alloc_user_data ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
libnbd-1.23.9/python/methods.c:4322:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/223/codeFlows/0/threadFlows/0/locations/14)
# 4320|     context.user_data = context_user_data = alloc_user_data ();
# 4321|     if (context_user_data == NULL) goto out;
# 4322|->   if (!PyCallable_Check (py_context_fn)) {
# 4323|       PyErr_SetString (PyExc_TypeError,
# 4324|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
libnbd-1.23.9/python/methods.c:4322:8: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:8: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/222/codeFlows/0/threadFlows/0/locations/25)
# 4320|     context.user_data = context_user_data = alloc_user_data ();
# 4321|     if (context_user_data == NULL) goto out;
# 4322|->   if (!PyCallable_Check (py_context_fn)) {
# 4323|       PyErr_SetString (PyExc_TypeError,
# 4324|                        "callback parameter context is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
libnbd-1.23.9/python/methods.c:4323:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4323:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4323:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/224/codeFlows/0/threadFlows/0/locations/14)
# 4321|     if (context_user_data == NULL) goto out;
# 4322|     if (!PyCallable_Check (py_context_fn)) {
# 4323|->     PyErr_SetString (PyExc_TypeError,
# 4324|                        "callback parameter context is not callable");
# 4325|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
libnbd-1.23.9/python/methods.c:4323:5: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4323:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4323:5: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/225/codeFlows/0/threadFlows/0/locations/25)
# 4321|     if (context_user_data == NULL) goto out;
# 4322|     if (!PyCallable_Check (py_context_fn)) {
# 4323|->     PyErr_SetString (PyExc_TypeError,
# 4324|                        "callback parameter context is not callable");
# 4325|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
libnbd-1.23.9/python/methods.c:4331:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4328:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4328:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4329:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4331:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/227/codeFlows/0/threadFlows/0/locations/14)
# 4329|     context_user_data->fn = py_context_fn;
# 4330|   
# 4331|->   Py_BEGIN_ALLOW_THREADS;
# 4332|     ret = nbd_aio_opt_set_meta_context_queries (h, queries, context,
# 4333|                                                 completion);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
libnbd-1.23.9/python/methods.c:4331:3: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4328:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4328:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4329:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4331:3: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/226/codeFlows/0/threadFlows/0/locations/25)
# 4329|     context_user_data->fn = py_context_fn;
# 4330|   
# 4331|->   Py_BEGIN_ALLOW_THREADS;
# 4332|     ret = nbd_aio_opt_set_meta_context_queries (h, queries, context,
# 4333|                                                 completion);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
libnbd-1.23.9/python/methods.c:4332:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4328:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4328:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4329:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4332:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/229/codeFlows/0/threadFlows/0/locations/14)
# 4330|   
# 4331|     Py_BEGIN_ALLOW_THREADS;
# 4332|->   ret = nbd_aio_opt_set_meta_context_queries (h, queries, context,
# 4333|                                                 completion);
# 4334|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
libnbd-1.23.9/python/methods.c:4332:9: warning[-Wanalyzer-malloc-leak]: leak of 'context.user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4317:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4319:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4320:43: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4320:43: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4320:43: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4321:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4322:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4322:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4328:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4328:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4329:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4332:9: danger: 'context.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/228/codeFlows/0/threadFlows/0/locations/25)
# 4330|   
# 4331|     Py_BEGIN_ALLOW_THREADS;
# 4332|->   ret = nbd_aio_opt_set_meta_context_queries (h, queries, context,
# 4333|                                                 completion);
# 4334|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
libnbd-1.23.9/python/methods.c:4344:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion_user_data'
libnbd-1.23.9/python/methods.c:4280:1: enter_function: entry to 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4298:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4302:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4302:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4302:7: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'get_handle'
libnbd-1.23.9/python/methods.c:4303:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4304:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4304:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_opt_set_meta_context_queries'
libnbd-1.23.9/python/methods.c:4304:49: return_function: returning to 'nbd_internal_py_aio_opt_set_meta_context_queries' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4305:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4306:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4306:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4307:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4307:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4308:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4344:3: danger: 'completion_user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/230/codeFlows/0/threadFlows/0/locations/14)
# 4342|   
# 4343|    out:
# 4344|->   nbd_internal_py_free_string_list (queries);
# 4345|     free_user_data (context_user_data);
# 4346|     free_user_data (completion_user_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
libnbd-1.23.9/python/methods.c:4377:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4351:1: enter_function: entry to 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4369:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4372:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4372:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4372:7: return_function: returning to 'nbd_internal_py_aio_pread' from 'get_handle'
libnbd-1.23.9/python/methods.c:4373:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4374:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4374:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4374:49: return_function: returning to 'nbd_internal_py_aio_pread' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4375:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4376:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4376:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4377:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4377:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/231/codeFlows/0/threadFlows/0/locations/14)
# 4375|     if (completion_user_data == NULL) goto out;
# 4376|     if (py_completion_fn != Py_None) {
# 4377|->     if (!PyCallable_Check (py_completion_fn)) {
# 4378|         PyErr_SetString (PyExc_TypeError,
# 4379|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
libnbd-1.23.9/python/methods.c:4378:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4351:1: enter_function: entry to 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4369:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4372:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4372:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4372:7: return_function: returning to 'nbd_internal_py_aio_pread' from 'get_handle'
libnbd-1.23.9/python/methods.c:4373:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4374:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4374:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4374:49: return_function: returning to 'nbd_internal_py_aio_pread' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4375:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4376:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4376:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4377:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4377:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4378:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4378:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/232/codeFlows/0/threadFlows/0/locations/14)
# 4376|     if (py_completion_fn != Py_None) {
# 4377|       if (!PyCallable_Check (py_completion_fn)) {
# 4378|->       PyErr_SetString (PyExc_TypeError,
# 4379|                          "callback parameter completion is not callable");
# 4380|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
libnbd-1.23.9/python/methods.c:4389:14: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4351:1: enter_function: entry to 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4369:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4372:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4372:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4372:7: return_function: returning to 'nbd_internal_py_aio_pread' from 'get_handle'
libnbd-1.23.9/python/methods.c:4373:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4374:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4374:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4374:49: return_function: returning to 'nbd_internal_py_aio_pread' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4375:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4376:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4376:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4387:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4389:14: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/233/codeFlows/0/threadFlows/0/locations/14)
# 4387|       completion.callback = NULL; /* we're not going to call it */
# 4388|     flags_u32 = flags;
# 4389|->   buf_view = nbd_internal_py_get_aio_view (buf, PyBUF_WRITE);
# 4390|     if (!buf_view) goto out;
# 4391|     py_buf = PyMemoryView_GET_BUFFER (buf_view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
libnbd-1.23.9/python/methods.c:4395:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4351:1: enter_function: entry to 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4369:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4372:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4372:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4372:7: return_function: returning to 'nbd_internal_py_aio_pread' from 'get_handle'
libnbd-1.23.9/python/methods.c:4373:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4374:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4374:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4374:49: return_function: returning to 'nbd_internal_py_aio_pread' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4375:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4376:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4376:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4387:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4390:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4392:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4395:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/234/codeFlows/0/threadFlows/0/locations/14)
# 4393|     offset_u64 = offset;
# 4394|   
# 4395|->   if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4396|     Py_BEGIN_ALLOW_THREADS;
# 4397|     ret = nbd_aio_pread (h, py_buf->buf, py_buf->len, offset_u64, completion,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
libnbd-1.23.9/python/methods.c:4396:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4351:1: enter_function: entry to 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4369:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4372:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4372:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4372:7: return_function: returning to 'nbd_internal_py_aio_pread' from 'get_handle'
libnbd-1.23.9/python/methods.c:4373:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4374:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4374:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4374:49: return_function: returning to 'nbd_internal_py_aio_pread' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4375:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4376:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4376:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4387:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4390:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4392:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4395:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4396:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4396:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/235/codeFlows/0/threadFlows/0/locations/14)
# 4394|   
# 4395|     if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4396|->   Py_BEGIN_ALLOW_THREADS;
# 4397|     ret = nbd_aio_pread (h, py_buf->buf, py_buf->len, offset_u64, completion,
# 4398|                          flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
libnbd-1.23.9/python/methods.c:4397:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4351:1: enter_function: entry to 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4369:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4372:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4372:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4372:7: return_function: returning to 'nbd_internal_py_aio_pread' from 'get_handle'
libnbd-1.23.9/python/methods.c:4373:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4374:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4374:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread'
libnbd-1.23.9/python/methods.c:4374:49: return_function: returning to 'nbd_internal_py_aio_pread' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4375:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4376:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4376:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4387:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4390:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4392:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4395:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4396:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4397:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/236/codeFlows/0/threadFlows/0/locations/14)
# 4395|     if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4396|     Py_BEGIN_ALLOW_THREADS;
# 4397|->   ret = nbd_aio_pread (h, py_buf->buf, py_buf->len, offset_u64, completion,
# 4398|                          flags_u32);
# 4399|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
libnbd-1.23.9/python/methods.c:4444:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4444:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4444:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/237/codeFlows/0/threadFlows/0/locations/14)
# 4442|     if (completion_user_data == NULL) goto out;
# 4443|     if (py_completion_fn != Py_None) {
# 4444|->     if (!PyCallable_Check (py_completion_fn)) {
# 4445|         PyErr_SetString (PyExc_TypeError,
# 4446|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
libnbd-1.23.9/python/methods.c:4445:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4444:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4444:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4445:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4445:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/238/codeFlows/0/threadFlows/0/locations/14)
# 4443|     if (py_completion_fn != Py_None) {
# 4444|       if (!PyCallable_Check (py_completion_fn)) {
# 4445|->       PyErr_SetString (PyExc_TypeError,
# 4446|                          "callback parameter completion is not callable");
# 4447|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
libnbd-1.23.9/python/methods.c:4456:14: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4456:14: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/239/codeFlows/0/threadFlows/0/locations/14)
# 4454|       completion.callback = NULL; /* we're not going to call it */
# 4455|     flags_u32 = flags;
# 4456|->   buf_view = nbd_internal_py_get_aio_view (buf, PyBUF_WRITE);
# 4457|     if (!buf_view) goto out;
# 4458|     py_buf = PyMemoryView_GET_BUFFER (buf_view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
libnbd-1.23.9/python/methods.c:4463:8: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:8: danger: 'chunk.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/241/codeFlows/0/threadFlows/0/locations/25)
# 4461|     chunk.user_data = chunk_user_data = alloc_user_data ();
# 4462|     if (chunk_user_data == NULL) goto out;
# 4463|->   if (!PyCallable_Check (py_chunk_fn)) {
# 4464|       PyErr_SetString (PyExc_TypeError,
# 4465|                        "callback parameter chunk is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
libnbd-1.23.9/python/methods.c:4463:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/240/codeFlows/0/threadFlows/0/locations/14)
# 4461|     chunk.user_data = chunk_user_data = alloc_user_data ();
# 4462|     if (chunk_user_data == NULL) goto out;
# 4463|->   if (!PyCallable_Check (py_chunk_fn)) {
# 4464|       PyErr_SetString (PyExc_TypeError,
# 4465|                        "callback parameter chunk is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
libnbd-1.23.9/python/methods.c:4464:5: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4464:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4464:5: danger: 'chunk.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/242/codeFlows/0/threadFlows/0/locations/25)
# 4462|     if (chunk_user_data == NULL) goto out;
# 4463|     if (!PyCallable_Check (py_chunk_fn)) {
# 4464|->     PyErr_SetString (PyExc_TypeError,
# 4465|                        "callback parameter chunk is not callable");
# 4466|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
libnbd-1.23.9/python/methods.c:4464:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4464:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4464:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/243/codeFlows/0/threadFlows/0/locations/14)
# 4462|     if (chunk_user_data == NULL) goto out;
# 4463|     if (!PyCallable_Check (py_chunk_fn)) {
# 4464|->     PyErr_SetString (PyExc_TypeError,
# 4465|                        "callback parameter chunk is not callable");
# 4466|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
libnbd-1.23.9/python/methods.c:4471:27: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4471:27: danger: 'chunk.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/244/codeFlows/0/threadFlows/0/locations/25)
# 4469|     Py_INCREF (py_chunk_fn);
# 4470|     chunk_user_data->fn = py_chunk_fn;
# 4471|->   chunk_user_data->view = nbd_internal_py_get_aio_view (buf, PyBUF_WRITE);
# 4472|     if (!chunk_user_data->view) goto out;
# 4473|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
libnbd-1.23.9/python/methods.c:4471:27: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4471:27: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/245/codeFlows/0/threadFlows/0/locations/14)
# 4469|     Py_INCREF (py_chunk_fn);
# 4470|     chunk_user_data->fn = py_chunk_fn;
# 4471|->   chunk_user_data->view = nbd_internal_py_get_aio_view (buf, PyBUF_WRITE);
# 4472|     if (!chunk_user_data->view) goto out;
# 4473|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
libnbd-1.23.9/python/methods.c:4474:7: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4472:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4474:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4474:7: danger: 'chunk.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/246/codeFlows/0/threadFlows/0/locations/25)
# 4472|     if (!chunk_user_data->view) goto out;
# 4473|   
# 4474|->   if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4475|     Py_BEGIN_ALLOW_THREADS;
# 4476|     ret = nbd_aio_pread_structured (h, py_buf->buf, py_buf->len, offset_u64,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
libnbd-1.23.9/python/methods.c:4474:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4472:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4474:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4474:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/247/codeFlows/0/threadFlows/0/locations/14)
# 4472|     if (!chunk_user_data->view) goto out;
# 4473|   
# 4474|->   if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4475|     Py_BEGIN_ALLOW_THREADS;
# 4476|     ret = nbd_aio_pread_structured (h, py_buf->buf, py_buf->len, offset_u64,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
libnbd-1.23.9/python/methods.c:4475:3: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4472:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4474:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4474:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4475:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4475:3: danger: 'chunk.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/248/codeFlows/0/threadFlows/0/locations/25)
# 4473|   
# 4474|     if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4475|->   Py_BEGIN_ALLOW_THREADS;
# 4476|     ret = nbd_aio_pread_structured (h, py_buf->buf, py_buf->len, offset_u64,
# 4477|                                     chunk, completion, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
libnbd-1.23.9/python/methods.c:4475:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4472:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4474:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4474:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4475:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4475:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/249/codeFlows/0/threadFlows/0/locations/14)
# 4473|   
# 4474|     if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4475|->   Py_BEGIN_ALLOW_THREADS;
# 4476|     ret = nbd_aio_pread_structured (h, py_buf->buf, py_buf->len, offset_u64,
# 4477|                                     chunk, completion, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
libnbd-1.23.9/python/methods.c:4476:9: warning[-Wanalyzer-malloc-leak]: leak of 'chunk.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4472:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4474:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4474:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4475:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4476:9: danger: 'chunk.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/251/codeFlows/0/threadFlows/0/locations/25)
# 4474|     if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4475|     Py_BEGIN_ALLOW_THREADS;
# 4476|->   ret = nbd_aio_pread_structured (h, py_buf->buf, py_buf->len, offset_u64,
# 4477|                                     chunk, completion, flags_u32);
# 4478|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
libnbd-1.23.9/python/methods.c:4476:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4413:1: enter_function: entry to 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4435:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4439:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4439:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4439:7: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'get_handle'
libnbd-1.23.9/python/methods.c:4440:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4441:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4441:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4441:49: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4442:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4443:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4443:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4454:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4457:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4459:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4461:39: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4461:39: return_function: returning to 'nbd_internal_py_aio_pread_structured' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4462:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4463:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4463:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4469:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4469:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_pread_structured'
libnbd-1.23.9/python/methods.c:4470:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4472:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4474:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4474:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4475:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4476:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/250/codeFlows/0/threadFlows/0/locations/14)
# 4474|     if (nbd_internal_py_init_aio_buffer (buf) < 0) goto out;
# 4475|     Py_BEGIN_ALLOW_THREADS;
# 4476|->   ret = nbd_aio_pread_structured (h, py_buf->buf, py_buf->len, offset_u64,
# 4477|                                     chunk, completion, flags_u32);
# 4478|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
libnbd-1.23.9/python/methods.c:4520:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4494:1: enter_function: entry to 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4512:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4515:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4515:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4515:7: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'get_handle'
libnbd-1.23.9/python/methods.c:4516:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4517:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4517:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4517:49: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4518:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4519:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4519:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4520:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4520:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/252/codeFlows/0/threadFlows/0/locations/14)
# 4518|     if (completion_user_data == NULL) goto out;
# 4519|     if (py_completion_fn != Py_None) {
# 4520|->     if (!PyCallable_Check (py_completion_fn)) {
# 4521|         PyErr_SetString (PyExc_TypeError,
# 4522|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
libnbd-1.23.9/python/methods.c:4521:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4494:1: enter_function: entry to 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4512:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4515:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4515:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4515:7: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'get_handle'
libnbd-1.23.9/python/methods.c:4516:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4517:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4517:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4517:49: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4518:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4519:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4519:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4520:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4520:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4521:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4521:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/253/codeFlows/0/threadFlows/0/locations/14)
# 4519|     if (py_completion_fn != Py_None) {
# 4520|       if (!PyCallable_Check (py_completion_fn)) {
# 4521|->       PyErr_SetString (PyExc_TypeError,
# 4522|                          "callback parameter completion is not callable");
# 4523|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
libnbd-1.23.9/python/methods.c:4532:14: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4494:1: enter_function: entry to 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4512:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4515:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4515:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4515:7: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'get_handle'
libnbd-1.23.9/python/methods.c:4516:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4517:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4517:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4517:49: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4518:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4519:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4519:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4530:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4532:14: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/254/codeFlows/0/threadFlows/0/locations/14)
# 4530|       completion.callback = NULL; /* we're not going to call it */
# 4531|     flags_u32 = flags;
# 4532|->   buf_view = nbd_internal_py_get_aio_view (buf, PyBUF_READ);
# 4533|     if (!buf_view) goto out;
# 4534|     py_buf = PyMemoryView_GET_BUFFER (buf_view);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
libnbd-1.23.9/python/methods.c:4538:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4494:1: enter_function: entry to 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4512:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4515:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4515:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4515:7: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'get_handle'
libnbd-1.23.9/python/methods.c:4516:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4517:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4517:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4517:49: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4518:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4519:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4519:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4530:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4533:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4535:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4538:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/255/codeFlows/0/threadFlows/0/locations/14)
# 4536|     offset_u64 = offset;
# 4537|   
# 4538|->   Py_BEGIN_ALLOW_THREADS;
# 4539|     ret = nbd_aio_pwrite (h, py_buf->buf, py_buf->len, offset_u64, completion,
# 4540|                           flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
libnbd-1.23.9/python/methods.c:4539:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4494:1: enter_function: entry to 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4512:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4515:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4515:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4515:7: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'get_handle'
libnbd-1.23.9/python/methods.c:4516:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4517:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4517:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_pwrite'
libnbd-1.23.9/python/methods.c:4517:49: return_function: returning to 'nbd_internal_py_aio_pwrite' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4518:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4519:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4519:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4530:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4533:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4535:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4539:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/256/codeFlows/0/threadFlows/0/locations/14)
# 4537|   
# 4538|     Py_BEGIN_ALLOW_THREADS;
# 4539|->   ret = nbd_aio_pwrite (h, py_buf->buf, py_buf->len, offset_u64, completion,
# 4540|                           flags_u32);
# 4541|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
libnbd-1.23.9/python/methods.c:4606:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4585:1: enter_function: entry to 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4598:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4601:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4601:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4601:7: return_function: returning to 'nbd_internal_py_aio_flush' from 'get_handle'
libnbd-1.23.9/python/methods.c:4602:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4603:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4603:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4603:49: return_function: returning to 'nbd_internal_py_aio_flush' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4604:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4605:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4605:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4606:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4606:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/257/codeFlows/0/threadFlows/0/locations/14)
# 4604|     if (completion_user_data == NULL) goto out;
# 4605|     if (py_completion_fn != Py_None) {
# 4606|->     if (!PyCallable_Check (py_completion_fn)) {
# 4607|         PyErr_SetString (PyExc_TypeError,
# 4608|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
libnbd-1.23.9/python/methods.c:4607:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4585:1: enter_function: entry to 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4598:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4601:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4601:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4601:7: return_function: returning to 'nbd_internal_py_aio_flush' from 'get_handle'
libnbd-1.23.9/python/methods.c:4602:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4603:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4603:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4603:49: return_function: returning to 'nbd_internal_py_aio_flush' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4604:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4605:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4605:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4606:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4606:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4607:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4607:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/258/codeFlows/0/threadFlows/0/locations/14)
# 4605|     if (py_completion_fn != Py_None) {
# 4606|       if (!PyCallable_Check (py_completion_fn)) {
# 4607|->       PyErr_SetString (PyExc_TypeError,
# 4608|                          "callback parameter completion is not callable");
# 4609|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
libnbd-1.23.9/python/methods.c:4619:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4585:1: enter_function: entry to 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4598:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4601:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4601:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4601:7: return_function: returning to 'nbd_internal_py_aio_flush' from 'get_handle'
libnbd-1.23.9/python/methods.c:4602:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4603:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4603:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4603:49: return_function: returning to 'nbd_internal_py_aio_flush' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4604:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4605:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4605:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4616:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4619:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/259/codeFlows/0/threadFlows/0/locations/14)
# 4617|     flags_u32 = flags;
# 4618|   
# 4619|->   Py_BEGIN_ALLOW_THREADS;
# 4620|     ret = nbd_aio_flush (h, completion, flags_u32);
# 4621|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
libnbd-1.23.9/python/methods.c:4620:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4585:1: enter_function: entry to 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4598:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4601:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4601:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4601:7: return_function: returning to 'nbd_internal_py_aio_flush' from 'get_handle'
libnbd-1.23.9/python/methods.c:4602:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4603:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4603:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_flush'
libnbd-1.23.9/python/methods.c:4603:49: return_function: returning to 'nbd_internal_py_aio_flush' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4604:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4605:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4605:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4616:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4620:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/260/codeFlows/0/threadFlows/0/locations/14)
# 4618|   
# 4619|     Py_BEGIN_ALLOW_THREADS;
# 4620|->   ret = nbd_aio_flush (h, completion, flags_u32);
# 4621|     Py_END_ALLOW_THREADS;
# 4622|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
libnbd-1.23.9/python/methods.c:4660:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4635:1: enter_function: entry to 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4652:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4655:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4655:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4655:7: return_function: returning to 'nbd_internal_py_aio_trim' from 'get_handle'
libnbd-1.23.9/python/methods.c:4656:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4657:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4657:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4657:49: return_function: returning to 'nbd_internal_py_aio_trim' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4658:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4659:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4659:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4660:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4660:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/261/codeFlows/0/threadFlows/0/locations/14)
# 4658|     if (completion_user_data == NULL) goto out;
# 4659|     if (py_completion_fn != Py_None) {
# 4660|->     if (!PyCallable_Check (py_completion_fn)) {
# 4661|         PyErr_SetString (PyExc_TypeError,
# 4662|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
libnbd-1.23.9/python/methods.c:4661:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4635:1: enter_function: entry to 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4652:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4655:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4655:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4655:7: return_function: returning to 'nbd_internal_py_aio_trim' from 'get_handle'
libnbd-1.23.9/python/methods.c:4656:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4657:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4657:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4657:49: return_function: returning to 'nbd_internal_py_aio_trim' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4658:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4659:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4659:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4660:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4660:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4661:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4661:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/262/codeFlows/0/threadFlows/0/locations/14)
# 4659|     if (py_completion_fn != Py_None) {
# 4660|       if (!PyCallable_Check (py_completion_fn)) {
# 4661|->       PyErr_SetString (PyExc_TypeError,
# 4662|                          "callback parameter completion is not callable");
# 4663|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
libnbd-1.23.9/python/methods.c:4675:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4635:1: enter_function: entry to 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4652:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4655:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4655:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4655:7: return_function: returning to 'nbd_internal_py_aio_trim' from 'get_handle'
libnbd-1.23.9/python/methods.c:4656:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4657:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4657:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4657:49: return_function: returning to 'nbd_internal_py_aio_trim' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4658:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4659:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4659:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4670:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4675:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/263/codeFlows/0/threadFlows/0/locations/14)
# 4673|     offset_u64 = offset;
# 4674|   
# 4675|->   Py_BEGIN_ALLOW_THREADS;
# 4676|     ret = nbd_aio_trim (h, count_u64, offset_u64, completion, flags_u32);
# 4677|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
libnbd-1.23.9/python/methods.c:4676:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4635:1: enter_function: entry to 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4652:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4655:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4655:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4655:7: return_function: returning to 'nbd_internal_py_aio_trim' from 'get_handle'
libnbd-1.23.9/python/methods.c:4656:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4657:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4657:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_trim'
libnbd-1.23.9/python/methods.c:4657:49: return_function: returning to 'nbd_internal_py_aio_trim' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4658:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4659:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4659:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4670:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4676:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/264/codeFlows/0/threadFlows/0/locations/14)
# 4674|   
# 4675|     Py_BEGIN_ALLOW_THREADS;
# 4676|->   ret = nbd_aio_trim (h, count_u64, offset_u64, completion, flags_u32);
# 4677|     Py_END_ALLOW_THREADS;
# 4678|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
libnbd-1.23.9/python/methods.c:4716:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4691:1: enter_function: entry to 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4708:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4711:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4711:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4711:7: return_function: returning to 'nbd_internal_py_aio_cache' from 'get_handle'
libnbd-1.23.9/python/methods.c:4712:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4713:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4713:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4713:49: return_function: returning to 'nbd_internal_py_aio_cache' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4714:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4715:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4715:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4716:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4716:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/265/codeFlows/0/threadFlows/0/locations/14)
# 4714|     if (completion_user_data == NULL) goto out;
# 4715|     if (py_completion_fn != Py_None) {
# 4716|->     if (!PyCallable_Check (py_completion_fn)) {
# 4717|         PyErr_SetString (PyExc_TypeError,
# 4718|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
libnbd-1.23.9/python/methods.c:4717:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4691:1: enter_function: entry to 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4708:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4711:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4711:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4711:7: return_function: returning to 'nbd_internal_py_aio_cache' from 'get_handle'
libnbd-1.23.9/python/methods.c:4712:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4713:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4713:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4713:49: return_function: returning to 'nbd_internal_py_aio_cache' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4714:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4715:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4715:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4716:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4716:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4717:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4717:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/266/codeFlows/0/threadFlows/0/locations/14)
# 4715|     if (py_completion_fn != Py_None) {
# 4716|       if (!PyCallable_Check (py_completion_fn)) {
# 4717|->       PyErr_SetString (PyExc_TypeError,
# 4718|                          "callback parameter completion is not callable");
# 4719|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
libnbd-1.23.9/python/methods.c:4731:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4691:1: enter_function: entry to 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4708:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4711:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4711:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4711:7: return_function: returning to 'nbd_internal_py_aio_cache' from 'get_handle'
libnbd-1.23.9/python/methods.c:4712:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4713:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4713:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4713:49: return_function: returning to 'nbd_internal_py_aio_cache' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4714:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4715:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4715:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4726:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4731:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/267/codeFlows/0/threadFlows/0/locations/14)
# 4729|     offset_u64 = offset;
# 4730|   
# 4731|->   Py_BEGIN_ALLOW_THREADS;
# 4732|     ret = nbd_aio_cache (h, count_u64, offset_u64, completion, flags_u32);
# 4733|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
libnbd-1.23.9/python/methods.c:4732:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4691:1: enter_function: entry to 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4708:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4711:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4711:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4711:7: return_function: returning to 'nbd_internal_py_aio_cache' from 'get_handle'
libnbd-1.23.9/python/methods.c:4712:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4713:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4713:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_cache'
libnbd-1.23.9/python/methods.c:4713:49: return_function: returning to 'nbd_internal_py_aio_cache' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4714:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4715:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4715:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4726:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4732:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/268/codeFlows/0/threadFlows/0/locations/14)
# 4730|   
# 4731|     Py_BEGIN_ALLOW_THREADS;
# 4732|->   ret = nbd_aio_cache (h, count_u64, offset_u64, completion, flags_u32);
# 4733|     Py_END_ALLOW_THREADS;
# 4734|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
libnbd-1.23.9/python/methods.c:4772:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4747:1: enter_function: entry to 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4764:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4767:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4767:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4767:7: return_function: returning to 'nbd_internal_py_aio_zero' from 'get_handle'
libnbd-1.23.9/python/methods.c:4768:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4769:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4769:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4769:49: return_function: returning to 'nbd_internal_py_aio_zero' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4770:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4771:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4771:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4772:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4772:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/269/codeFlows/0/threadFlows/0/locations/14)
# 4770|     if (completion_user_data == NULL) goto out;
# 4771|     if (py_completion_fn != Py_None) {
# 4772|->     if (!PyCallable_Check (py_completion_fn)) {
# 4773|         PyErr_SetString (PyExc_TypeError,
# 4774|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
libnbd-1.23.9/python/methods.c:4773:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4747:1: enter_function: entry to 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4764:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4767:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4767:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4767:7: return_function: returning to 'nbd_internal_py_aio_zero' from 'get_handle'
libnbd-1.23.9/python/methods.c:4768:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4769:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4769:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4769:49: return_function: returning to 'nbd_internal_py_aio_zero' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4770:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4771:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4771:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4772:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4772:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4773:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4773:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/270/codeFlows/0/threadFlows/0/locations/14)
# 4771|     if (py_completion_fn != Py_None) {
# 4772|       if (!PyCallable_Check (py_completion_fn)) {
# 4773|->       PyErr_SetString (PyExc_TypeError,
# 4774|                          "callback parameter completion is not callable");
# 4775|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
libnbd-1.23.9/python/methods.c:4787:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4747:1: enter_function: entry to 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4764:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4767:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4767:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4767:7: return_function: returning to 'nbd_internal_py_aio_zero' from 'get_handle'
libnbd-1.23.9/python/methods.c:4768:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4769:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4769:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4769:49: return_function: returning to 'nbd_internal_py_aio_zero' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4770:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4771:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4771:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4782:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4787:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/271/codeFlows/0/threadFlows/0/locations/14)
# 4785|     offset_u64 = offset;
# 4786|   
# 4787|->   Py_BEGIN_ALLOW_THREADS;
# 4788|     ret = nbd_aio_zero (h, count_u64, offset_u64, completion, flags_u32);
# 4789|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
libnbd-1.23.9/python/methods.c:4788:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4747:1: enter_function: entry to 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4764:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4767:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4767:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4767:7: return_function: returning to 'nbd_internal_py_aio_zero' from 'get_handle'
libnbd-1.23.9/python/methods.c:4768:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4769:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4769:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_zero'
libnbd-1.23.9/python/methods.c:4769:49: return_function: returning to 'nbd_internal_py_aio_zero' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4770:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4771:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4771:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4782:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4788:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/272/codeFlows/0/threadFlows/0/locations/14)
# 4786|   
# 4787|     Py_BEGIN_ALLOW_THREADS;
# 4788|->   ret = nbd_aio_zero (h, count_u64, offset_u64, completion, flags_u32);
# 4789|     Py_END_ALLOW_THREADS;
# 4790|     completion_user_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
libnbd-1.23.9/python/methods.c:4832:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4832:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4832:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/273/codeFlows/0/threadFlows/0/locations/14)
# 4830|     if (completion_user_data == NULL) goto out;
# 4831|     if (py_completion_fn != Py_None) {
# 4832|->     if (!PyCallable_Check (py_completion_fn)) {
# 4833|         PyErr_SetString (PyExc_TypeError,
# 4834|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
libnbd-1.23.9/python/methods.c:4833:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4832:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4832:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4833:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4833:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/274/codeFlows/0/threadFlows/0/locations/14)
# 4831|     if (py_completion_fn != Py_None) {
# 4832|       if (!PyCallable_Check (py_completion_fn)) {
# 4833|->       PyErr_SetString (PyExc_TypeError,
# 4834|                          "callback parameter completion is not callable");
# 4835|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
libnbd-1.23.9/python/methods.c:4848:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/276/codeFlows/0/threadFlows/0/locations/14)
# 4846|     extent.user_data = extent_user_data = alloc_user_data ();
# 4847|     if (extent_user_data == NULL) goto out;
# 4848|->   if (!PyCallable_Check (py_extent_fn)) {
# 4849|       PyErr_SetString (PyExc_TypeError,
# 4850|                        "callback parameter extent is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
libnbd-1.23.9/python/methods.c:4848:8: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:8: danger: 'extent.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/275/codeFlows/0/threadFlows/0/locations/23)
# 4846|     extent.user_data = extent_user_data = alloc_user_data ();
# 4847|     if (extent_user_data == NULL) goto out;
# 4848|->   if (!PyCallable_Check (py_extent_fn)) {
# 4849|       PyErr_SetString (PyExc_TypeError,
# 4850|                        "callback parameter extent is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
libnbd-1.23.9/python/methods.c:4849:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4849:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4849:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/277/codeFlows/0/threadFlows/0/locations/14)
# 4847|     if (extent_user_data == NULL) goto out;
# 4848|     if (!PyCallable_Check (py_extent_fn)) {
# 4849|->     PyErr_SetString (PyExc_TypeError,
# 4850|                        "callback parameter extent is not callable");
# 4851|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
libnbd-1.23.9/python/methods.c:4849:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4849:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4849:5: danger: 'extent.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/278/codeFlows/0/threadFlows/0/locations/23)
# 4847|     if (extent_user_data == NULL) goto out;
# 4848|     if (!PyCallable_Check (py_extent_fn)) {
# 4849|->     PyErr_SetString (PyExc_TypeError,
# 4850|                        "callback parameter extent is not callable");
# 4851|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
libnbd-1.23.9/python/methods.c:4857:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4854:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4854:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4855:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4857:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/279/codeFlows/0/threadFlows/0/locations/14)
# 4855|     extent_user_data->fn = py_extent_fn;
# 4856|   
# 4857|->   Py_BEGIN_ALLOW_THREADS;
# 4858|     ret = nbd_aio_block_status (h, count_u64, offset_u64, extent, completion,
# 4859|                                 flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
libnbd-1.23.9/python/methods.c:4857:3: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4854:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4854:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4855:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4857:3: danger: 'extent.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/280/codeFlows/0/threadFlows/0/locations/23)
# 4855|     extent_user_data->fn = py_extent_fn;
# 4856|   
# 4857|->   Py_BEGIN_ALLOW_THREADS;
# 4858|     ret = nbd_aio_block_status (h, count_u64, offset_u64, extent, completion,
# 4859|                                 flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
libnbd-1.23.9/python/methods.c:4858:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4854:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4854:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4855:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4858:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/282/codeFlows/0/threadFlows/0/locations/14)
# 4856|   
# 4857|     Py_BEGIN_ALLOW_THREADS;
# 4858|->   ret = nbd_aio_block_status (h, count_u64, offset_u64, extent, completion,
# 4859|                                 flags_u32);
# 4860|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
libnbd-1.23.9/python/methods.c:4858:9: warning[-Wanalyzer-malloc-leak]: leak of 'extent.user_data'
libnbd-1.23.9/python/methods.c:4803:1: enter_function: entry to 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4824:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4827:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4827:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4827:7: return_function: returning to 'nbd_internal_py_aio_block_status' from 'get_handle'
libnbd-1.23.9/python/methods.c:4828:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4829:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4829:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4829:49: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4830:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4831:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4831:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4842:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4846:41: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4846:41: return_function: returning to 'nbd_internal_py_aio_block_status' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4847:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4848:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4848:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4854:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4854:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status'
libnbd-1.23.9/python/methods.c:4855:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4858:9: danger: 'extent.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/281/codeFlows/0/threadFlows/0/locations/23)
# 4856|   
# 4857|     Py_BEGIN_ALLOW_THREADS;
# 4858|->   ret = nbd_aio_block_status (h, count_u64, offset_u64, extent, completion,
# 4859|                                 flags_u32);
# 4860|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
libnbd-1.23.9/python/methods.c:4906:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4906:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4906:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/283/codeFlows/0/threadFlows/0/locations/14)
# 4904|     if (completion_user_data == NULL) goto out;
# 4905|     if (py_completion_fn != Py_None) {
# 4906|->     if (!PyCallable_Check (py_completion_fn)) {
# 4907|         PyErr_SetString (PyExc_TypeError,
# 4908|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
libnbd-1.23.9/python/methods.c:4907:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4906:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4906:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4907:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4907:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/284/codeFlows/0/threadFlows/0/locations/14)
# 4905|     if (py_completion_fn != Py_None) {
# 4906|       if (!PyCallable_Check (py_completion_fn)) {
# 4907|->       PyErr_SetString (PyExc_TypeError,
# 4908|                          "callback parameter completion is not callable");
# 4909|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
libnbd-1.23.9/python/methods.c:4922:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/285/codeFlows/0/threadFlows/0/locations/14)
# 4920|     extent64.user_data = extent64_user_data = alloc_user_data ();
# 4921|     if (extent64_user_data == NULL) goto out;
# 4922|->   if (!PyCallable_Check (py_extent64_fn)) {
# 4923|       PyErr_SetString (PyExc_TypeError,
# 4924|                        "callback parameter extent64 is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
libnbd-1.23.9/python/methods.c:4922:8: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:8: danger: 'extent64.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/286/codeFlows/0/threadFlows/0/locations/23)
# 4920|     extent64.user_data = extent64_user_data = alloc_user_data ();
# 4921|     if (extent64_user_data == NULL) goto out;
# 4922|->   if (!PyCallable_Check (py_extent64_fn)) {
# 4923|       PyErr_SetString (PyExc_TypeError,
# 4924|                        "callback parameter extent64 is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
libnbd-1.23.9/python/methods.c:4923:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4923:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4923:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/287/codeFlows/0/threadFlows/0/locations/14)
# 4921|     if (extent64_user_data == NULL) goto out;
# 4922|     if (!PyCallable_Check (py_extent64_fn)) {
# 4923|->     PyErr_SetString (PyExc_TypeError,
# 4924|                        "callback parameter extent64 is not callable");
# 4925|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
libnbd-1.23.9/python/methods.c:4923:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4923:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4923:5: danger: 'extent64.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/288/codeFlows/0/threadFlows/0/locations/23)
# 4921|     if (extent64_user_data == NULL) goto out;
# 4922|     if (!PyCallable_Check (py_extent64_fn)) {
# 4923|->     PyErr_SetString (PyExc_TypeError,
# 4924|                        "callback parameter extent64 is not callable");
# 4925|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
libnbd-1.23.9/python/methods.c:4931:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4928:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4928:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4929:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4931:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/290/codeFlows/0/threadFlows/0/locations/14)
# 4929|     extent64_user_data->fn = py_extent64_fn;
# 4930|   
# 4931|->   Py_BEGIN_ALLOW_THREADS;
# 4932|     ret = nbd_aio_block_status_64 (h, count_u64, offset_u64, extent64,
# 4933|                                    completion, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
libnbd-1.23.9/python/methods.c:4931:3: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4928:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4928:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4929:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4931:3: danger: 'extent64.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/289/codeFlows/0/threadFlows/0/locations/23)
# 4929|     extent64_user_data->fn = py_extent64_fn;
# 4930|   
# 4931|->   Py_BEGIN_ALLOW_THREADS;
# 4932|     ret = nbd_aio_block_status_64 (h, count_u64, offset_u64, extent64,
# 4933|                                    completion, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
libnbd-1.23.9/python/methods.c:4932:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4928:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4928:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4929:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4932:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/292/codeFlows/0/threadFlows/0/locations/14)
# 4930|   
# 4931|     Py_BEGIN_ALLOW_THREADS;
# 4932|->   ret = nbd_aio_block_status_64 (h, count_u64, offset_u64, extent64,
# 4933|                                    completion, flags_u32);
# 4934|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
libnbd-1.23.9/python/methods.c:4932:9: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4876:1: enter_function: entry to 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4897:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4901:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4901:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4901:7: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'get_handle'
libnbd-1.23.9/python/methods.c:4902:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4903:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4903:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4903:49: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4904:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4905:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4905:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4916:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4920:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4920:45: return_function: returning to 'nbd_internal_py_aio_block_status_64' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4921:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4922:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4922:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4928:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4928:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_64'
libnbd-1.23.9/python/methods.c:4929:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4932:9: danger: 'extent64.user_data' leaks here; was allocated at [(24)](sarif:/runs/0/results/291/codeFlows/0/threadFlows/0/locations/23)
# 4930|   
# 4931|     Py_BEGIN_ALLOW_THREADS;
# 4932|->   ret = nbd_aio_block_status_64 (h, count_u64, offset_u64, extent64,
# 4933|                                    completion, flags_u32);
# 4934|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
libnbd-1.23.9/python/methods.c:4982:10: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4982:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4982:10: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/293/codeFlows/0/threadFlows/0/locations/14)
# 4980|     if (completion_user_data == NULL) goto out;
# 4981|     if (py_completion_fn != Py_None) {
# 4982|->     if (!PyCallable_Check (py_completion_fn)) {
# 4983|         PyErr_SetString (PyExc_TypeError,
# 4984|                          "callback parameter completion is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
libnbd-1.23.9/python/methods.c:4983:7: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4982:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4982:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4983:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4983:7: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/294/codeFlows/0/threadFlows/0/locations/14)
# 4981|     if (py_completion_fn != Py_None) {
# 4982|       if (!PyCallable_Check (py_completion_fn)) {
# 4983|->       PyErr_SetString (PyExc_TypeError,
# 4984|                          "callback parameter completion is not callable");
# 4985|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
libnbd-1.23.9/python/methods.c:4996:14: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4996:14: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/295/codeFlows/0/threadFlows/0/locations/14)
# 4994|     count_u64 = count;
# 4995|     offset_u64 = offset;
# 4996|->   contexts = nbd_internal_py_get_string_list (py_contexts);
# 4997|     if (!contexts) goto out;
# 4998|     extent64.user_data = extent64_user_data = alloc_user_data ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
libnbd-1.23.9/python/methods.c:5000:8: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:8: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/297/codeFlows/0/threadFlows/0/locations/14)
# 4998|     extent64.user_data = extent64_user_data = alloc_user_data ();
# 4999|     if (extent64_user_data == NULL) goto out;
# 5000|->   if (!PyCallable_Check (py_extent64_fn)) {
# 5001|       PyErr_SetString (PyExc_TypeError,
# 5002|                        "callback parameter extent64 is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
libnbd-1.23.9/python/methods.c:5000:8: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:8: danger: 'extent64.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/296/codeFlows/0/threadFlows/0/locations/25)
# 4998|     extent64.user_data = extent64_user_data = alloc_user_data ();
# 4999|     if (extent64_user_data == NULL) goto out;
# 5000|->   if (!PyCallable_Check (py_extent64_fn)) {
# 5001|       PyErr_SetString (PyExc_TypeError,
# 5002|                        "callback parameter extent64 is not callable");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
libnbd-1.23.9/python/methods.c:5001:5: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:5001:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:5001:5: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/299/codeFlows/0/threadFlows/0/locations/14)
# 4999|     if (extent64_user_data == NULL) goto out;
# 5000|     if (!PyCallable_Check (py_extent64_fn)) {
# 5001|->     PyErr_SetString (PyExc_TypeError,
# 5002|                        "callback parameter extent64 is not callable");
# 5003|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
libnbd-1.23.9/python/methods.c:5001:5: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:5001:5: branch_true: ...to here
libnbd-1.23.9/python/methods.c:5001:5: danger: 'extent64.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/298/codeFlows/0/threadFlows/0/locations/25)
# 4999|     if (extent64_user_data == NULL) goto out;
# 5000|     if (!PyCallable_Check (py_extent64_fn)) {
# 5001|->     PyErr_SetString (PyExc_TypeError,
# 5002|                        "callback parameter extent64 is not callable");
# 5003|       goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
libnbd-1.23.9/python/methods.c:5009:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5006:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5006:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:5007:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:5009:3: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/300/codeFlows/0/threadFlows/0/locations/14)
# 5007|     extent64_user_data->fn = py_extent64_fn;
# 5008|   
# 5009|->   Py_BEGIN_ALLOW_THREADS;
# 5010|     ret = nbd_aio_block_status_filter (h, count_u64, offset_u64, contexts,
# 5011|                                        extent64, completion, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
libnbd-1.23.9/python/methods.c:5009:3: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5006:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5006:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:5007:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:5009:3: danger: 'extent64.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/301/codeFlows/0/threadFlows/0/locations/25)
# 5007|     extent64_user_data->fn = py_extent64_fn;
# 5008|   
# 5009|->   Py_BEGIN_ALLOW_THREADS;
# 5010|     ret = nbd_aio_block_status_filter (h, count_u64, offset_u64, contexts,
# 5011|                                        extent64, completion, flags_u32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
libnbd-1.23.9/python/methods.c:5010:9: warning[-Wanalyzer-malloc-leak]: leak of 'completion.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5006:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5006:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:5007:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:5010:9: danger: 'completion.user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/302/codeFlows/0/threadFlows/0/locations/14)
# 5008|   
# 5009|     Py_BEGIN_ALLOW_THREADS;
# 5010|->   ret = nbd_aio_block_status_filter (h, count_u64, offset_u64, contexts,
# 5011|                                        extent64, completion, flags_u32);
# 5012|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
libnbd-1.23.9/python/methods.c:5010:9: warning[-Wanalyzer-malloc-leak]: leak of 'extent64.user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4992:5: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4997:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4998:45: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4998:45: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4998:45: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4999:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5000:8: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5000:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5006:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5006:3: call_function: inlined call to 'Py_INCREF' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:5007:3: branch_true: ...to here
libnbd-1.23.9/python/methods.c:5010:9: danger: 'extent64.user_data' leaks here; was allocated at [(26)](sarif:/runs/0/results/303/codeFlows/0/threadFlows/0/locations/25)
# 5008|   
# 5009|     Py_BEGIN_ALLOW_THREADS;
# 5010|->   ret = nbd_aio_block_status_filter (h, count_u64, offset_u64, contexts,
# 5011|                                        extent64, completion, flags_u32);
# 5012|     Py_END_ALLOW_THREADS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
libnbd-1.23.9/python/methods.c:5022:3: warning[-Wanalyzer-malloc-leak]: leak of 'completion_user_data'
libnbd-1.23.9/python/methods.c:4950:1: enter_function: entry to 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4973:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4977:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4977:7: call_function: calling 'get_handle' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4977:7: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'get_handle'
libnbd-1.23.9/python/methods.c:4978:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4979:49: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4979:49: call_function: calling 'alloc_user_data' from 'nbd_internal_py_aio_block_status_filter'
libnbd-1.23.9/python/methods.c:4979:49: return_function: returning to 'nbd_internal_py_aio_block_status_filter' from 'alloc_user_data'
libnbd-1.23.9/python/methods.c:4980:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:4981:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:4981:6: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4982:10: branch_true: ...to here
libnbd-1.23.9/python/methods.c:4982:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/methods.c:4983:7: branch_true: ...to here
libnbd-1.23.9/python/methods.c:5022:3: danger: 'completion_user_data' leaks here; was allocated at [(15)](sarif:/runs/0/results/304/codeFlows/0/threadFlows/0/locations/14)
# 5020|   
# 5021|    out:
# 5022|->   nbd_internal_py_free_string_list (contexts);
# 5023|     free_user_data (extent64_user_data);
# 5024|     free_user_data (completion_user_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
libnbd-1.23.9/python/methods.c:5604:3: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_uri(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:5590:1: enter_function: entry to 'nbd_internal_py_get_uri'
libnbd-1.23.9/python/methods.c:5597:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5599:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5599:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_uri'
libnbd-1.23.9/python/methods.c:5599:7: return_function: returning to 'nbd_internal_py_get_uri' from 'get_handle'
libnbd-1.23.9/python/methods.c:5600:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5602:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5603:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:5604:3: danger: 'nbd_get_uri(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/305/codeFlows/0/threadFlows/0/locations/12)
# 5602|     Py_BEGIN_ALLOW_THREADS;
# 5603|     ret = nbd_get_uri (h);
# 5604|->   Py_END_ALLOW_THREADS;
# 5605|     if (ret == NULL) {
# 5606|       raise_exception ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
libnbd-1.23.9/python/methods.c:5609:12: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_uri(get_handle(py_h))'
libnbd-1.23.9/python/methods.c:5590:1: enter_function: entry to 'nbd_internal_py_get_uri'
libnbd-1.23.9/python/methods.c:5597:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5599:7: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5599:7: call_function: calling 'get_handle' from 'nbd_internal_py_get_uri'
libnbd-1.23.9/python/methods.c:5599:7: return_function: returning to 'nbd_internal_py_get_uri' from 'get_handle'
libnbd-1.23.9/python/methods.c:5600:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5602:3: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5603:9: acquire_memory: allocated here
libnbd-1.23.9/python/methods.c:5605:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/methods.c:5609:12: branch_false: ...to here
libnbd-1.23.9/python/methods.c:5609:12: danger: 'nbd_get_uri(get_handle(py_h))' leaks here; was allocated at [(13)](sarif:/runs/0/results/306/codeFlows/0/threadFlows/0/locations/12)
# 5607|       goto out;
# 5608|     }
# 5609|->   py_ret = PyUnicode_FromString (ret);
# 5610|     free (ret);
# 5611|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
libnbd-1.23.9/python/utils.c:64:23: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libnbd-1.23.9/python/utils.c:38:1: enter_function: entry to 'nbd_internal_py_get_string_list'
libnbd-1.23.9/python/utils.c:43:3: branch_true: following 'true' branch (when 'obj' is non-NULL)...
libnbd-1.23.9/python/utils.c:45:8: call_function: inlined call to '_Py_TYPE' from 'nbd_internal_py_get_string_list'
libnbd-1.23.9/python/utils.c:45:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/utils.c:50:21: branch_false: ...to here
libnbd-1.23.9/python/utils.c:51:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/utils.c:56:3: branch_false: ...to here
libnbd-1.23.9/python/utils.c:57:7: acquire_memory: allocated here
libnbd-1.23.9/python/utils.c:58:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
 branch_false: ...to here
libnbd-1.23.9/python/utils.c:63:15: branch_true: following 'true' branch (when 'i < len')...
libnbd-1.23.9/python/utils.c:64:23: branch_true: ...to here
libnbd-1.23.9/python/utils.c:64:23: danger: 'r' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   62|   
#   63|     for (i = 0; i < len; ++i) {
#   64|->     PyObject *bytes = PyUnicode_AsUTF8String (PyList_GetItem (obj, i));
#   65|       if (!bytes)
#   66|         goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
libnbd-1.23.9/python/utils.c:70:7: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libnbd-1.23.9/python/utils.c:38:1: enter_function: entry to 'nbd_internal_py_get_string_list'
libnbd-1.23.9/python/utils.c:43:3: branch_true: following 'true' branch (when 'obj' is non-NULL)...
libnbd-1.23.9/python/utils.c:45:8: call_function: inlined call to '_Py_TYPE' from 'nbd_internal_py_get_string_list'
libnbd-1.23.9/python/utils.c:45:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/utils.c:50:21: branch_false: ...to here
libnbd-1.23.9/python/utils.c:51:6: branch_false: following 'false' branch...
libnbd-1.23.9/python/utils.c:56:3: branch_false: ...to here
libnbd-1.23.9/python/utils.c:57:7: acquire_memory: allocated here
libnbd-1.23.9/python/utils.c:58:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
 branch_false: ...to here
libnbd-1.23.9/python/utils.c:63:15: branch_true: following 'true' branch (when 'i < len')...
libnbd-1.23.9/python/utils.c:64:23: branch_true: ...to here
libnbd-1.23.9/python/utils.c:65:8: branch_false: following 'false' branch...
libnbd-1.23.9/python/utils.c:67:20: branch_false: ...to here
libnbd-1.23.9/python/utils.c:67:20: call_function: calling 'PyBytes_AS_STRING' from 'nbd_internal_py_get_string_list'
libnbd-1.23.9/python/utils.c:67:20: return_function: returning to 'nbd_internal_py_get_string_list' from 'PyBytes_AS_STRING'
libnbd-1.23.9/python/utils.c:68:5: call_function: inlined call to 'Py_DECREF' from 'nbd_internal_py_get_string_list'
libnbd-1.23.9/python/utils.c:69:8: branch_true: ...to here
libnbd-1.23.9/python/utils.c:69:8: branch_true: following 'true' branch...
libnbd-1.23.9/python/utils.c:70:7: branch_true: ...to here
libnbd-1.23.9/python/utils.c:70:7: danger: 'r' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#   68|       Py_DECREF (bytes);
#   69|       if (r[i] == NULL) {
#   70|->       PyErr_NoMemory ();
#   71|         goto err;
#   72|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
libnbd-1.23.9/ublk/nbdublk.c:491:3: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
libnbd-1.23.9/ublk/nbdublk.c:486:7: acquire_memory: allocated here
libnbd-1.23.9/ublk/nbdublk.c:487:6: branch_false: following ‘false’ branch...
libnbd-1.23.9/ublk/nbdublk.c:491:3: branch_false: ...to here
libnbd-1.23.9/ublk/nbdublk.c:491:3: danger: ‘nbd_create()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  489|       exit (EXIT_FAILURE);
#  490|     }
#  491|->   nbd_set_debug (h, verbose);
#  492|   
#  493|     /* Connect to the NBD server synchronously. */

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-159.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibnbd-1.23.9-1.fc44
store-results-to/tmp/tmpu9r1_0lo/libnbd-1.23.9-1.fc44.tar.xz
time-created2025-10-28 19:06:31
time-finished2025-10-28 19:09:12
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpu9r1_0lo/libnbd-1.23.9-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpu9r1_0lo/libnbd-1.23.9-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9