Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
curl-8.15.0/lib/altsvc.c:234:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file, "r")'
curl-8.15.0/lib/altsvc.c:227:5: branch_false: following 'false' branch...
curl-8.15.0/lib/altsvc.c:230:8: branch_false: ...to here
curl-8.15.0/lib/altsvc.c:230:8: acquire_resource: opened here
curl-8.15.0/lib/altsvc.c:231:5: branch_true: following 'true' branch...
curl-8.15.0/lib/altsvc.c:233:5: branch_true: ...to here
curl-8.15.0/lib/altsvc.c:234:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/altsvc.c:234:11: danger: 'fopen(file, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  232|       struct dynbuf buf;
#  233|       curlx_dyn_init(&buf, MAX_ALTSVC_LINE);
#  234|->     while(Curl_get_line(&buf, fp)) {
#  235|         const char *lineptr = curlx_dyn_ptr(&buf);
#  236|         curlx_str_passblanks(&lineptr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
curl-8.15.0/lib/altsvc.c:234:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file, "r")'
curl-8.15.0/lib/altsvc.c:227:5: branch_false: following 'false' branch...
curl-8.15.0/lib/altsvc.c:230:8: branch_false: ...to here
curl-8.15.0/lib/altsvc.c:230:8: acquire_memory: allocated here
curl-8.15.0/lib/altsvc.c:231:5: branch_true: following 'true' branch...
curl-8.15.0/lib/altsvc.c:233:5: branch_true: ...to here
curl-8.15.0/lib/altsvc.c:234:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/altsvc.c:234:11: danger: 'fopen(file, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  232|       struct dynbuf buf;
#  233|       curlx_dyn_init(&buf, MAX_ALTSVC_LINE);
#  234|->     while(Curl_get_line(&buf, fp)) {
#  235|         const char *lineptr = curlx_dyn_ptr(&buf);
#  236|         curlx_str_passblanks(&lineptr);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
curl-8.15.0/lib/cookie.c:1214:13: warning[-Wanalyzer-file-leak]: leak of FILE 'handle'
curl-8.15.0/lib/cookie.c:1196:5: branch_true: following 'true' branch (when 'data' is non-NULL)...
curl-8.15.0/lib/cookie.c:1198:7: branch_true: ...to here
curl-8.15.0/lib/cookie.c:1198:7: branch_true: following 'true' branch...
curl-8.15.0/lib/cookie.c:1199:9: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/lib/cookie.c:1202:14: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1202:14: acquire_resource: opened here
curl-8.15.0/lib/cookie.c:1203:11: branch_false: following 'false' branch...
curl-8.15.0/lib/cookie.c:1210:5: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1214:13: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/cookie.c:1214:13: danger: 'handle' leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 1212|         struct dynbuf buf;
# 1213|         curlx_dyn_init(&buf, MAX_COOKIE_LINE);
# 1214|->       while(Curl_get_line(&buf, fp)) {
# 1215|           const char *lineptr = curlx_dyn_ptr(&buf);
# 1216|           bool headerline = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
curl-8.15.0/lib/cookie.c:1214:13: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
curl-8.15.0/lib/cookie.c:1196:5: branch_true: following 'true' branch (when 'data' is non-NULL)...
curl-8.15.0/lib/cookie.c:1198:7: branch_true: ...to here
curl-8.15.0/lib/cookie.c:1198:7: branch_true: following 'true' branch...
curl-8.15.0/lib/cookie.c:1199:9: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/lib/cookie.c:1202:14: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1202:14: acquire_memory: allocated here
curl-8.15.0/lib/cookie.c:1203:11: branch_false: following 'false' branch...
curl-8.15.0/lib/cookie.c:1210:5: branch_false: ...to here
curl-8.15.0/lib/cookie.c:1214:13: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/cookie.c:1214:13: danger: 'handle' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 1212|         struct dynbuf buf;
# 1213|         curlx_dyn_init(&buf, MAX_COOKIE_LINE);
# 1214|->       while(Curl_get_line(&buf, fp)) {
# 1215|           const char *lineptr = curlx_dyn_ptr(&buf);
# 1216|           bool headerline = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def5]
curl-8.15.0/lib/curl_trc.c:104:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
#  102|     if(data->id >= 0) {
#  103|       if(cid >= 0)
#  104|->       return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSDC, data->id, cid);
#  105|       else
#  106|         return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSD, data->id);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def6]
curl-8.15.0/lib/curl_trc.c:106:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
#  104|         return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSDC, data->id, cid);
#  105|       else
#  106|->       return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSD, data->id);
#  107|     }
#  108|     else if(cid >= 0)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def7]
curl-8.15.0/lib/curl_trc.c:109:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
#  107|     }
#  108|     else if(cid >= 0)
#  109|->     return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSC, cid);
#  110|     else {
#  111|       return msnprintf(buf, maxlen, "[x-x] ");

Error: GCC_ANALYZER_WARNING (CWE-404): [#def8]
curl-8.15.0/lib/curl_trc.c:111:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
#  109|       return msnprintf(buf, maxlen, CURL_TRC_FMT_IDSC, cid);
#  110|     else {
#  111|->     return msnprintf(buf, maxlen, "[x-x] ");
#  112|     }
#  113|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def9]
curl-8.15.0/lib/curl_trc.c:221:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
#  219|       len += trc_print_ids(data, buf + len, TRC_LINE_MAX - len);
#  220|     if(feat)
#  221|->     len += msnprintf(buf + len, TRC_LINE_MAX - len, "[%s] ", feat->name);
#  222|     if(opt_id) {
#  223|       if(opt_id_idx > 0)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def10]
curl-8.15.0/lib/curl_trc.c:229:10: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/curl_trc.c:391:6: enter_function: entry to 'Curl_trc_ssls'
curl-8.15.0/lib/curl_trc.c:394:5: branch_true: following 'true' branch...
curl-8.15.0/lib/curl_trc.c:396:5: acquire_resource: 'va_start' called here
curl-8.15.0/lib/curl_trc.c:397:5: call_function: calling 'trc_infof' from 'Curl_trc_ssls'
#  227|         len += msnprintf(buf + len, TRC_LINE_MAX - len, "[%s] ", opt_id);
#  228|     }
#  229|->   len += mvsnprintf(buf + len, TRC_LINE_MAX - len, fmt, ap);
#  230|     len = trc_end_buf(buf, len, TRC_LINE_MAX, TRUE);
#  231|     trc_write(data, CURLINFO_TEXT, buf, len);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def11]
curl-8.15.0/lib/dict.c:147:7: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/dict.c:146:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/dict.c:147:7: throw: if 'curl_mvaprintf' throws an exception...
curl-8.15.0/lib/dict.c:147:7: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  145|     va_list ap;
#  146|     va_start(ap, fmt);
#  147|->   s = vaprintf(fmt, ap); /* returns an allocated string */
#  148|     va_end(ap);
#  149|     if(!s)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def12]
curl-8.15.0/lib/formdata.c:129:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
#  127|   {
#  128|     struct FormInfo *form_info;
#  129|->   form_info = calloc(1, sizeof(struct FormInfo));
#  130|     if(!form_info)
#  131|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def13]
curl-8.15.0/lib/formdata.c:346:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
#  344|      * We need to allocate the first struct to fill in.
#  345|      */
#  346|->   first_form = calloc(1, sizeof(struct FormInfo));
#  347|     if(!first_form)
#  348|       return CURL_FORMADD_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def14]
curl-8.15.0/lib/formdata.c:458:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
#  456|             avalue = va_arg(params, char *);
#  457|           if(avalue) {
#  458|->           curr->value = strdup(avalue);
#  459|             if(!curr->value)
#  460|               retval = CURL_FORMADD_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def15]
curl-8.15.0/lib/formdata.c:479:27: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
#  477|           if(curr->flags & HTTPPOST_FILENAME) {
#  478|             if(avalue) {
#  479|->             char *fname = strdup(avalue);
#  480|               if(!fname)
#  481|                 retval = CURL_FORMADD_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def16]
curl-8.15.0/lib/formdata.c:485:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
#  483|                 form = AddFormInfo(fname, NULL, curr);
#  484|                 if(!form) {
#  485|->                 free(fname);
#  486|                   retval = CURL_FORMADD_MEMORY;
#  487|                 }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def17]
curl-8.15.0/lib/formdata.c:503:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
#  501|         else {
#  502|           if(avalue) {
#  503|->           curr->value = strdup(avalue);
#  504|             if(!curr->value)
#  505|               retval = CURL_FORMADD_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def18]
curl-8.15.0/lib/formdata.c:566:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/formdata.c:675:14: enter_function: entry to 'curl_formadd'
curl-8.15.0/lib/formdata.c:681:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/formdata.c:682:12: call_function: calling 'FormAdd' from 'curl_formadd'
#  564|           if(curr->flags & HTTPPOST_FILENAME) {
#  565|             if(avalue) {
#  566|->             char *type = strdup(avalue);
#  567|               if(!type)
#  568|                 retval = CURL_FORMADD_MEMORY;

Error: COMPILER_WARNING (CWE-704): [#def19]
curl-8.15.0/lib/headers.c: scope_hint: In function 'Curl_headers_push'
curl-8.15.0/lib/headers.c:291:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  291 |   end = strchr(header, '\r');
#      |       ^
#  289|       return CURLE_OK;
#  290|   
#  291|->   end = strchr(header, '\r');
#  292|     if(!end) {
#  293|       end = strchr(header, '\n');

Error: COMPILER_WARNING (CWE-704): [#def20]
curl-8.15.0/lib/headers.c:291:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  289|       return CURLE_OK;
#  290|   
#  291|->   end = strchr(header, '\r');
#  292|     if(!end) {
#  293|       end = strchr(header, '\n');

Error: COMPILER_WARNING (CWE-704): [#def21]
curl-8.15.0/lib/headers.c:293:9: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  293 |     end = strchr(header, '\n');
#      |         ^
#  291|     end = strchr(header, '\r');
#  292|     if(!end) {
#  293|->     end = strchr(header, '\n');
#  294|       if(!end)
#  295|         /* neither CR nor LF as terminator is not a valid header */

Error: COMPILER_WARNING (CWE-704): [#def22]
curl-8.15.0/lib/headers.c:293:9: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  291|     end = strchr(header, '\r');
#  292|     if(!end) {
#  293|->     end = strchr(header, '\n');
#  294|       if(!end)
#  295|         /* neither CR nor LF as terminator is not a valid header */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
curl-8.15.0/lib/hsts.c:529:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file, "r")'
curl-8.15.0/lib/hsts.c:522:5: branch_false: following 'false' branch...
curl-8.15.0/lib/hsts.c:525:8: branch_false: ...to here
curl-8.15.0/lib/hsts.c:525:8: acquire_resource: opened here
curl-8.15.0/lib/hsts.c:526:5: branch_true: following 'true' branch...
curl-8.15.0/lib/hsts.c:528:5: branch_true: ...to here
curl-8.15.0/lib/hsts.c:529:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/hsts.c:529:11: danger: 'fopen(file, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  527|       struct dynbuf buf;
#  528|       curlx_dyn_init(&buf, MAX_HSTS_LINE);
#  529|->     while(Curl_get_line(&buf, fp)) {
#  530|         const char *lineptr = curlx_dyn_ptr(&buf);
#  531|         curlx_str_passblanks(&lineptr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
curl-8.15.0/lib/hsts.c:529:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file, "r")'
curl-8.15.0/lib/hsts.c:522:5: branch_false: following 'false' branch...
curl-8.15.0/lib/hsts.c:525:8: branch_false: ...to here
curl-8.15.0/lib/hsts.c:525:8: acquire_memory: allocated here
curl-8.15.0/lib/hsts.c:526:5: branch_true: following 'true' branch...
curl-8.15.0/lib/hsts.c:528:5: branch_true: ...to here
curl-8.15.0/lib/hsts.c:529:11: throw: if 'Curl_get_line' throws an exception...
curl-8.15.0/lib/hsts.c:529:11: danger: 'fopen(file, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  527|       struct dynbuf buf;
#  528|       curlx_dyn_init(&buf, MAX_HSTS_LINE);
#  529|->     while(Curl_get_line(&buf, fp)) {
#  530|         const char *lineptr = curlx_dyn_ptr(&buf);
#  531|         curlx_str_passblanks(&lineptr);

Error: COMPILER_WARNING (CWE-704): [#def25]
curl-8.15.0/lib/http.c: scope_hint: In function 'http_target'
curl-8.15.0/lib/http.c:2040:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 2040 |         char *type = strstr(path, ";type=");
#      |                      ^~~~~~
# 2038|         if(data->set.proxy_transfer_mode) {
# 2039|           /* when doing ftp, append ;type=<a|i> if not present */
# 2040|->         char *type = strstr(path, ";type=");
# 2041|           if(type && type[6] && type[7] == 0) {
# 2042|             switch(Curl_raw_toupper(type[6])) {

Error: COMPILER_WARNING (CWE-704): [#def26]
curl-8.15.0/lib/http.c:2040:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 2038|         if(data->set.proxy_transfer_mode) {
# 2039|           /* when doing ftp, append ;type=<a|i> if not present */
# 2040|->         char *type = strstr(path, ";type=");
# 2041|           if(type && type[6] && type[7] == 0) {
# 2042|             switch(Curl_raw_toupper(type[6])) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def27]
curl-8.15.0/lib/krb5.c:462:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/krb5.c:461:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/krb5.c:462:3: throw: if 'curl_mvsnprintf' throws an exception...
curl-8.15.0/lib/krb5.c:462:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  460|   
#  461|     va_start(args, message);
#  462|->   mvsnprintf(print_buffer, sizeof(print_buffer), message, args);
#  463|     va_end(args);
#  464|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
curl-8.15.0/lib/netrc.c:85:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
curl-8.15.0/lib/netrc.c:109:18: enter_function: entry to 'parsenetrc'
curl-8.15.0/lib/netrc.c:131:5: branch_true: following 'true' branch...
curl-8.15.0/lib/netrc.c:132:21: branch_true: ...to here
curl-8.15.0/lib/netrc.c:132:21: call_function: calling 'file2memory' from 'parsenetrc'
#   83|     if(file) {
#   84|       ret = NETRC_OK;
#   85|->     while(Curl_get_line(&linebuf, file)) {
#   86|         CURLcode result;
#   87|         const char *line = curlx_dyn_ptr(&linebuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
curl-8.15.0/lib/netrc.c:85:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
curl-8.15.0/lib/netrc.c:109:18: enter_function: entry to 'parsenetrc'
curl-8.15.0/lib/netrc.c:131:5: branch_true: following 'true' branch...
curl-8.15.0/lib/netrc.c:132:21: branch_true: ...to here
curl-8.15.0/lib/netrc.c:132:21: call_function: calling 'file2memory' from 'parsenetrc'
#   83|     if(file) {
#   84|       ret = NETRC_OK;
#   85|->     while(Curl_get_line(&linebuf, file)) {
#   86|         CURLcode result;
#   87|         const char *line = curlx_dyn_ptr(&linebuf);

Error: COMPILER_WARNING (CWE-704): [#def30]
curl-8.15.0/lib/noproxy.c: scope_hint: In function 'Curl_check_noproxy'
curl-8.15.0/lib/noproxy.c:151:14: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  151 |       endptr = strchr(name, ']');
#      |              ^
#  149|         char *endptr;
#  150|         /* IPv6 numerical address */
#  151|->       endptr = strchr(name, ']');
#  152|         if(!endptr)
#  153|           return FALSE;

Error: COMPILER_WARNING (CWE-704): [#def31]
curl-8.15.0/lib/noproxy.c:151:14: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  149|         char *endptr;
#  150|         /* IPv6 numerical address */
#  151|->       endptr = strchr(name, ']');
#  152|         if(!endptr)
#  153|           return FALSE;

Error: CPPCHECK_WARNING (CWE-457): [#def32]
curl-8.15.0/lib/request.c:313: error[uninitvar]: Uninitialized variable: &tmp
#  311|       char tmp;
#  312|       size_t nwritten;
#  313|->     result = xfer_send(data, &tmp, 0, 0, &nwritten);
#  314|       if(result)
#  315|         return result;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def33]
curl-8.15.0/lib/setopt.c:456:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
#  454|       break;
#  455|     case CURLOPT_CA_CACHE_TIMEOUT:
#  456|->     if(Curl_ssl_supports(data, SSLSUPP_CA_CACHE)) {
#  457|         if(arg < -1)
#  458|           return CURLE_BAD_FUNCTION_ARGUMENT;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def34]
curl-8.15.0/lib/setopt.c:644:7: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
#  642|          data->set.postfields == data->set.str[STRING_COPYPOSTFIELDS]) {
#  643|         /* Previous CURLOPT_COPYPOSTFIELDS is no longer valid. */
#  644|->       Curl_safefree(data->set.str[STRING_COPYPOSTFIELDS]);
#  645|         data->set.postfields = NULL;
#  646|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
curl-8.15.0/lib/setopt.c:1006:27: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
# 1004|       if((arg < 0) || (arg > 65535))
# 1005|         return CURLE_BAD_FUNCTION_ARGUMENT;
# 1006|->     data->set.localport = curlx_sltous(arg);
# 1007|       break;
# 1008|     case CURLOPT_LOCALPORTRANGE:

Error: GCC_ANALYZER_WARNING (CWE-404): [#def36]
curl-8.15.0/lib/setopt.c:1014:32: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/setopt.c:3081:10: enter_function: entry to 'curl_easy_setopt'
curl-8.15.0/lib/setopt.c:3087:5: branch_false: following 'false' branch (when 'd' is non-NULL)...
curl-8.15.0/lib/setopt.c:3090:3: branch_false: ...to here
curl-8.15.0/lib/setopt.c:3090:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/setopt.c:3092:12: call_function: calling 'Curl_vsetopt' from 'curl_easy_setopt'
# 1012|       if((arg < 0) || (arg > 65535))
# 1013|         return CURLE_BAD_FUNCTION_ARGUMENT;
# 1014|->     data->set.localportrange = curlx_sltous(arg);
# 1015|       break;
# 1016|   #endif

Error: GCC_ANALYZER_WARNING (CWE-404): [#def37]
curl-8.15.0/lib/share.c:101:26: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:100:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:101:26: branch_true: ...to here
curl-8.15.0/lib/share.c:101:26: throw: if 'Curl_cookie_init' throws an exception...
curl-8.15.0/lib/share.c:101:26: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   99|   #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
#  100|         if(!share->cookies) {
#  101|->         share->cookies = Curl_cookie_init(NULL, NULL, NULL, TRUE);
#  102|           if(!share->cookies)
#  103|             res = CURLSHE_NOMEM;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def38]
curl-8.15.0/lib/share.c:113:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:112:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:113:23: branch_true: ...to here
curl-8.15.0/lib/share.c:113:23: throw: if 'Curl_hsts_init' throws an exception...
curl-8.15.0/lib/share.c:113:23: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  111|   #ifndef CURL_DISABLE_HSTS
#  112|         if(!share->hsts) {
#  113|->         share->hsts = Curl_hsts_init();
#  114|           if(!share->hsts)
#  115|             res = CURLSHE_NOMEM;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def39]
curl-8.15.0/lib/share.c:130:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:124:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:130:12: branch_true: ...to here
curl-8.15.0/lib/share.c:130:12: throw: if 'Curl_ssl_scache_create' throws an exception...
curl-8.15.0/lib/share.c:130:12: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  128|            * scache is not optimized for several hundreds of peers. So,
#  129|            * keep it at a reasonable level. */
#  130|->         if(Curl_ssl_scache_create(25, 2, &share->ssl_scache))
#  131|             res = CURLSHE_NOMEM;
#  132|         }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def40]
curl-8.15.0/lib/share.c:141:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:140:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:141:9: branch_true: ...to here
curl-8.15.0/lib/share.c:141:9: throw: if 'Curl_cpool_init' throws an exception...
curl-8.15.0/lib/share.c:141:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  139|         /* It is safe to set this option several times on a share. */
#  140|         if(!share->cpool.initialised) {
#  141|->         Curl_cpool_init(&share->cpool, share->admin, share, 103);
#  142|         }
#  143|         break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def41]
curl-8.15.0/lib/share.c:169:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:168:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:169:9: branch_true: ...to here
curl-8.15.0/lib/share.c:169:9: throw: if 'Curl_cookie_cleanup' throws an exception...
curl-8.15.0/lib/share.c:169:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  167|   #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
#  168|         if(share->cookies) {
#  169|->         Curl_cookie_cleanup(share->cookies);
#  170|           share->cookies = NULL;
#  171|         }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def42]
curl-8.15.0/lib/share.c:180:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:179:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:180:9: branch_true: ...to here
curl-8.15.0/lib/share.c:180:9: throw: if 'Curl_hsts_cleanup' throws an exception...
curl-8.15.0/lib/share.c:180:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  178|   #ifndef CURL_DISABLE_HSTS
#  179|         if(share->hsts) {
#  180|->         Curl_hsts_cleanup(&share->hsts);
#  181|         }
#  182|   #else   /* CURL_DISABLE_HSTS */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def43]
curl-8.15.0/lib/share.c:190:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/lib/share.c:79:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:82:5: branch_false: following 'false' branch...
curl-8.15.0/lib/share.c:87:3: branch_false: ...to here
curl-8.15.0/lib/share.c:87:3: acquire_resource: 'va_start' called here
curl-8.15.0/lib/share.c:189:9: branch_true: following 'true' branch...
curl-8.15.0/lib/share.c:190:9: branch_true: ...to here
curl-8.15.0/lib/share.c:190:9: throw: if 'Curl_ssl_scache_destroy' throws an exception...
curl-8.15.0/lib/share.c:190:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  188|   #ifdef USE_SSL
#  189|         if(share->ssl_scache) {
#  190|->         Curl_ssl_scache_destroy(share->ssl_scache);
#  191|           share->ssl_scache = NULL;
#  192|         }

Error: COMPILER_WARNING (CWE-704): [#def44]
curl-8.15.0/lib/vauth/digest.c: scope_hint: In function 'auth_digest_get_key_value'
curl-8.15.0/lib/vauth/digest.c:206:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  206 |   find_pos = strstr(chlg, key);
#      |            ^
#  204|     size_t i;
#  205|   
#  206|->   find_pos = strstr(chlg, key);
#  207|     if(!find_pos)
#  208|       return FALSE;

Error: COMPILER_WARNING (CWE-704): [#def45]
curl-8.15.0/lib/vauth/digest.c:206:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  204|     size_t i;
#  205|   
#  206|->   find_pos = strstr(chlg, key);
#  207|     if(!find_pos)
#  208|       return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-file-leak]: leak of FILE '*global.trace_stream'
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_resource: opened here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: '*global.trace_stream' leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  126|         global->trace_stream = tool_stderr;
#  127|       else {
#  128|->       global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
#  129|         global->trace_fopened = TRUE;
#  130|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘*global.trace_stream’
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_resource: opened here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: ‘*global.trace_stream’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  126|         global->trace_stream = tool_stderr;
#  127|       else {
#  128|->       global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
#  129|         global->trace_fopened = TRUE;
#  130|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-malloc-leak]: leak of '*global.trace_stream'
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following 'false' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: '*global.trace_stream' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  126|         global->trace_stream = tool_stderr;
#  127|       else {
#  128|->       global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
#  129|         global->trace_fopened = TRUE;
#  130|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
curl-8.15.0/src/tool_cb_dbg.c:128:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*global.trace_stream’
curl-8.15.0/src/tool_cb_dbg.c:120:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_dbg.c:122:21: branch_true: ...to here
curl-8.15.0/src/tool_cb_dbg.c:122:7: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:124:14: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:124:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_cb_dbg.c:128:30: branch_false: ...to here
curl-8.15.0/src/tool_cb_dbg.c:128:30: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_dbg.c:128:7: danger: ‘*global.trace_stream’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  126|         global->trace_stream = tool_stderr;
#  127|       else {
#  128|->       global->trace_stream = fopen(global->trace_dump, FOPEN_WRITETEXT);
#  129|         global->trace_fopened = TRUE;
#  130|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
curl-8.15.0/src/tool_cb_hdr.c:449:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:6: throw: if 'curl_easy_getinfo' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:449:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  447|   
#  448|     /* The original URL to use as a base for a relative redirect URL */
#  449|->   if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
#  450|       goto locout;
#  451|     if(curl_url_set(u, CURLUPART_URL, locurl, 0))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
curl-8.15.0/src/tool_cb_hdr.c:449:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:6: throw: if ‘curl_easy_getinfo’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:449:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  447|   
#  448|     /* The original URL to use as a base for a relative redirect URL */
#  449|->   if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
#  450|       goto locout;
#  451|     if(curl_url_set(u, CURLUPART_URL, locurl, 0))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
curl-8.15.0/src/tool_cb_hdr.c:451:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:6: throw: if 'curl_url_set' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:451:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  449|     if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
#  450|       goto locout;
#  451|->   if(curl_url_set(u, CURLUPART_URL, locurl, 0))
#  452|       goto locout;
#  453|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
curl-8.15.0/src/tool_cb_hdr.c:451:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:6: throw: if ‘curl_url_set’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:451:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  449|     if(curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &locurl))
#  450|       goto locout;
#  451|->   if(curl_url_set(u, CURLUPART_URL, locurl, 0))
#  452|       goto locout;
#  453|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
curl-8.15.0/src/tool_cb_hdr.c:455:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:6: throw: if 'curl_url_set' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:455:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  453|   
#  454|     /* Redirected location. This can be either absolute or relative. */
#  455|->   if(curl_url_set(u, CURLUPART_URL, copyloc, 0))
#  456|       goto locout;
#  457|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
curl-8.15.0/src/tool_cb_hdr.c:455:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:6: throw: if ‘curl_url_set’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:455:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  453|   
#  454|     /* Redirected location. This can be either absolute or relative. */
#  455|->   if(curl_url_set(u, CURLUPART_URL, copyloc, 0))
#  456|       goto locout;
#  457|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
curl-8.15.0/src/tool_cb_hdr.c:458:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:458:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  456|       goto locout;
#  457|   
#  458|->   if(curl_url_get(u, CURLUPART_URL, &finalurl, CURLU_NO_DEFAULT_PORT))
#  459|       goto locout;
#  460|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
curl-8.15.0/src/tool_cb_hdr.c:458:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:458:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  456|       goto locout;
#  457|   
#  458|->   if(curl_url_get(u, CURLUPART_URL, &finalurl, CURLU_NO_DEFAULT_PORT))
#  459|       goto locout;
#  460|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
curl-8.15.0/src/tool_cb_hdr.c:461:6: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:461:6: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  459|       goto locout;
#  460|   
#  461|->   if(curl_url_get(u, CURLUPART_SCHEME, &scheme, 0))
#  462|       goto locout;
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
curl-8.15.0/src/tool_cb_hdr.c:461:6: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:461:6: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  459|       goto locout;
#  460|   
#  461|->   if(curl_url_get(u, CURLUPART_SCHEME, &scheme, 0))
#  462|       goto locout;
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
curl-8.15.0/src/tool_cb_hdr.c:468:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following 'false' branch (when 'copyloc' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:464:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:468:5: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:468:5: danger: 'copyloc' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  466|        !strcmp("ftp", scheme) ||
#  467|        !strcmp("ftps", scheme)) {
#  468|->     fprintf(stream, "%.*s" LINK "%s" LINKST "%.*s" LINKOFF,
#  469|               space_skipped, location,
#  470|               finalurl,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
curl-8.15.0/src/tool_cb_hdr.c:468:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:438:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:442:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:442:13: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_hdr.c:443:5: branch_false: following ‘false’ branch (when ‘copyloc’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:449:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:451:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:451:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:455:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:455:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:458:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:458:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:461:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:461:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:464:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:468:5: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_cb_hdr.c:468:5: danger: ‘copyloc’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  466|        !strcmp("ftp", scheme) ||
#  467|        !strcmp("ftps", scheme)) {
#  468|->     fprintf(stream, "%.*s" LINK "%s" LINKST "%.*s" LINKOFF,
#  469|               space_skipped, location,
#  470|               finalurl,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
curl-8.15.0/src/tool_cb_hdr.c:483:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to 'tool_header_cb'
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following 'true' branch (when 'value' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling 'write_linked_location' from 'tool_header_cb'
#  481|   locdone:
#  482|     if(u) {
#  483|->     curl_free(finalurl);
#  484|       curl_free(scheme);
#  485|       curl_url_cleanup(u);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
curl-8.15.0/src/tool_cb_hdr.c:483:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to ‘tool_header_cb’
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling ‘write_linked_location’ from ‘tool_header_cb’
#  481|   locdone:
#  482|     if(u) {
#  483|->     curl_free(finalurl);
#  484|       curl_free(scheme);
#  485|       curl_url_cleanup(u);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
curl-8.15.0/src/tool_cb_hdr.c:484:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to 'tool_header_cb'
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following 'true' branch (when 'value' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling 'write_linked_location' from 'tool_header_cb'
#  482|     if(u) {
#  483|       curl_free(finalurl);
#  484|->     curl_free(scheme);
#  485|       curl_url_cleanup(u);
#  486|       free(copyloc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
curl-8.15.0/src/tool_cb_hdr.c:484:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to ‘tool_header_cb’
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling ‘write_linked_location’ from ‘tool_header_cb’
#  482|     if(u) {
#  483|       curl_free(finalurl);
#  484|->     curl_free(scheme);
#  485|       curl_url_cleanup(u);
#  486|       free(copyloc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
curl-8.15.0/src/tool_cb_hdr.c:485:5: warning[-Wanalyzer-malloc-leak]: leak of 'copyloc'
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to 'tool_header_cb'
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following 'true' branch (when 'value' is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling 'write_linked_location' from 'tool_header_cb'
#  483|       curl_free(finalurl);
#  484|       curl_free(scheme);
#  485|->     curl_url_cleanup(u);
#  486|       free(copyloc);
#  487|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
curl-8.15.0/src/tool_cb_hdr.c:485:5: warning[-Wanalyzer-malloc-leak]: leak of ‘copyloc’
curl-8.15.0/src/tool_cb_hdr.c:85:8: enter_function: entry to ‘tool_header_cb’
curl-8.15.0/src/tool_cb_hdr.c:97:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:117:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:135:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:142:13: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:183:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:184:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:240:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:242:12: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:242:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:246:10: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:280:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:281:6: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:286:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_hdr.c:289:8: branch_false: ...to here
curl-8.15.0/src/tool_cb_hdr.c:289:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:295:7: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
curl-8.15.0/src/tool_cb_hdr.c:296:24: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:301:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_hdr.c:302:9: branch_true: ...to here
curl-8.15.0/src/tool_cb_hdr.c:302:9: call_function: calling ‘write_linked_location’ from ‘tool_header_cb’
#  483|       curl_free(finalurl);
#  484|       curl_free(scheme);
#  485|->     curl_url_cleanup(u);
#  486|       free(copyloc);
#  487|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
curl-8.15.0/src/tool_cb_wrt.c:91:9: warning[-Wanalyzer-malloc-leak]: leak of 'newname'
curl-8.15.0/src/tool_cb_wrt.c:56:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_cb_wrt.c:56:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:69:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_wrt.c:79:17: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_wrt.c:80:9: branch_false: following 'false' branch (when 'newname' is non-NULL)...
curl-8.15.0/src/tool_cb_wrt.c:84:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following 'true' branch (when 'fd == -1')...
curl-8.15.0/src/tool_cb_wrt.c:88:14: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following 'true' branch...
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following 'true' branch (when 'next_num != 100')...
curl-8.15.0/src/tool_cb_wrt.c:91:33: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:91:9: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_cb_wrt.c:91:9: danger: 'newname' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   89|               /* because we keep having files that already exist */
#   90|               next_num < 100 /* and we have not reached the retry limit */ ) {
#   91|->         msnprintf(newname + len + 1, 12, "%d", next_num);
#   92|           next_num++;
#   93|           do {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
curl-8.15.0/src/tool_cb_wrt.c:91:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newname’
curl-8.15.0/src/tool_cb_wrt.c:56:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_cb_wrt.c:56:6: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:69:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_wrt.c:79:17: acquire_memory: allocated here
curl-8.15.0/src/tool_cb_wrt.c:80:9: branch_false: following ‘false’ branch (when ‘newname’ is non-NULL)...
curl-8.15.0/src/tool_cb_wrt.c:84:7: branch_false: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following ‘true’ branch (when ‘fd == -1’)...
curl-8.15.0/src/tool_cb_wrt.c:88:14: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:87:13: branch_true: following ‘true’ branch (when ‘next_num != 100’)...
curl-8.15.0/src/tool_cb_wrt.c:91:33: branch_true: ...to here
curl-8.15.0/src/tool_cb_wrt.c:91:9: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_cb_wrt.c:91:9: danger: ‘newname’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   89|               /* because we keep having files that already exist */
#   90|               next_num < 100 /* and we have not reached the retry limit */ ) {
#   91|->         msnprintf(newname + len + 1, 12, "%d", next_num);
#   92|           next_num++;
#   93|           do {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def70]
curl-8.15.0/src/tool_easysrc.c:112:10: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_easysrc.c:111:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_easysrc.c:112:10: throw: if 'curl_mvaprintf' throws an exception...
curl-8.15.0/src/tool_easysrc.c:112:10: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  110|     va_list ap;
#  111|     va_start(ap, fmt);
#  112|->   bufp = vaprintf(fmt, ap);
#  113|     va_end(ap);
#  114|     if(!bufp) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def71]
curl-8.15.0/src/tool_easysrc.c:112:10: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_easysrc.c:111:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_easysrc.c:112:10: throw: if ‘curl_mvaprintf’ throws an exception...
curl-8.15.0/src/tool_easysrc.c:112:10: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  110|     va_list ap;
#  111|     va_start(ap, fmt);
#  112|->   bufp = vaprintf(fmt, ap);
#  113|     va_end(ap);
#  114|     if(!bufp) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-file-leak]: leak of FILE 'out'
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following 'true' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_resource: opened here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following 'false' branch (when 'out' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following 'true' branch (when 'c' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: 'out' leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  191|   
#  192|       for(i = 0; ((c = srchead[i]) != NULL); i++)
#  193|->       fprintf(out, "%s\n", c);
#  194|   
#  195|       /* Declare variables used for complex setopt values */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following ‘true’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_resource: opened here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following ‘false’ branch (when ‘out’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: ‘out’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  191|   
#  192|       for(i = 0; ((c = srchead[i]) != NULL); i++)
#  193|->       fprintf(out, "%s\n", c);
#  194|   
#  195|       /* Declare variables used for complex setopt values */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-malloc-leak]: leak of 'out'
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following 'true' branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_memory: allocated here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following 'false' branch (when 'out' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following 'true' branch (when 'c' is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: 'out' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  191|   
#  192|       for(i = 0; ((c = srchead[i]) != NULL); i++)
#  193|->       fprintf(out, "%s\n", c);
#  194|   
#  195|       /* Declare variables used for complex setopt values */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
curl-8.15.0/src/tool_easysrc.c:193:7: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
curl-8.15.0/src/tool_easysrc.c:180:5: branch_true: following ‘true’ branch (when the strings are non-equal)...
curl-8.15.0/src/tool_easysrc.c:181:11: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:181:11: acquire_memory: allocated here
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: following ‘false’ branch (when ‘out’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:186:5: branch_false: ...to here
curl-8.15.0/src/tool_easysrc.c:192:16: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
curl-8.15.0/src/tool_easysrc.c:193:7: branch_true: ...to here
curl-8.15.0/src/tool_easysrc.c:193:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_easysrc.c:193:7: danger: ‘out’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  191|   
#  192|       for(i = 0; ((c = srchead[i]) != NULL); i++)
#  193|->       fprintf(out, "%s\n", c);
#  194|   
#  195|       /* Declare variables used for complex setopt values */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
curl-8.15.0/src/tool_formparse.c:787:9: warning[-Wanalyzer-malloc-leak]: leak of 'contents'
curl-8.15.0/src/tool_formparse.c:758:14: acquire_memory: allocated here
curl-8.15.0/src/tool_formparse.c:759:5: branch_false: following 'false' branch (when 'contents' is non-NULL)...
curl-8.15.0/src/tool_formparse.c:763:11: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:764:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_formparse.c:766:7: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:766:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_formparse.c:768:6: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:784:12: branch_true: following 'true' branch...
curl-8.15.0/src/tool_formparse.c:784:13: branch_false: following 'false' branch (when 'literal_value == 0')...
curl-8.15.0/src/tool_formparse.c:786:10: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:786:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_formparse.c:787:9: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:787:9: throw: if 'warnf' throws an exception...
curl-8.15.0/src/tool_formparse.c:787:9: danger: 'contents' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  785|         /* Ending a multipart. */
#  786|         if(*mimecurrent == *mimeroot) {
#  787|->         warnf(config->global, "no multipart to terminate");
#  788|           goto fail;
#  789|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
curl-8.15.0/src/tool_formparse.c:787:9: warning[-Wanalyzer-malloc-leak]: leak of ‘contents’
curl-8.15.0/src/tool_formparse.c:758:14: acquire_memory: allocated here
curl-8.15.0/src/tool_formparse.c:759:5: branch_false: following ‘false’ branch (when ‘contents’ is non-NULL)...
curl-8.15.0/src/tool_formparse.c:763:11: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:764:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_formparse.c:766:7: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:766:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_formparse.c:768:6: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:784:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_formparse.c:784:13: branch_false: following ‘false’ branch (when ‘literal_value == 0’)...
curl-8.15.0/src/tool_formparse.c:786:10: branch_false: ...to here
curl-8.15.0/src/tool_formparse.c:786:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_formparse.c:787:9: branch_true: ...to here
curl-8.15.0/src/tool_formparse.c:787:9: throw: if ‘warnf’ throws an exception...
curl-8.15.0/src/tool_formparse.c:787:9: danger: ‘contents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  785|         /* Ending a multipart. */
#  786|         if(*mimecurrent == *mimeroot) {
#  787|->         warnf(config->global, "no multipart to terminate");
#  788|           goto fail;
#  789|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.altsvc'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.aws_sigv4'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cacert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.capath'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cert_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cipher13_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cipher_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cookiejar'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.crlfile'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.customrequest'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_interface'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_ipv4_addr'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_ipv6_addr'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.dns_servers'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.doh_url'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ech'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ech_config'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ech_public'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.engine'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.etag_compare_file'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.etag_save_file'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ftp_account'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ftp_alternative_to_user'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ftpport'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.haproxy_clientip'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.headerfile'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.hostpubmd5'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.hostpubsha256'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.hsts'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.iface'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ipfs_gateway'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.krblevel'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.login_options'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.mail_auth'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.mail_from'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.netrc_file'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.noproxy'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.oauth_bearer'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.output_dir'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.pinnedpubkey'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.preproxy'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proto_default'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cacert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_capath'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cert_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cipher13_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cipher_list'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_crlfile'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_type'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_pinnedpubkey'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_service_name'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_tls_authtype'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_tls_password'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_tls_username'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxyuserpwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.pubkey'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.range'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.request_target'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.sasl_authzid'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.service_name'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ssl_ec_curves'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.ssl_signature_algorithms'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.tls_authtype'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.tls_password'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.tls_username'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.unix_socket_path'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.useragent'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.userpwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.writeout'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.altsvc’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.aws_sigv4’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cacert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.capath’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cert_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cipher13_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cipher_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cookiejar’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.crlfile’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.customrequest’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_interface’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_ipv4_addr’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_ipv6_addr’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.dns_servers’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.doh_url’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ech_config’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ech_public’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ech’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.engine’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.etag_compare_file’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.etag_save_file’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ftp_account’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ftp_alternative_to_user’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ftpport’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.haproxy_clientip’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.headerfile’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.hostpubmd5’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.hostpubsha256’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.hsts’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.iface’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ipfs_gateway’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.krblevel’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.login_options’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.mail_auth’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.mail_from’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.netrc_file’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.noproxy’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.oauth_bearer’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.output_dir’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.pinnedpubkey’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.preproxy’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proto_default’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cacert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_capath’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cert_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cipher13_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cipher_list’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_crlfile’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_type’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_pinnedpubkey’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_service_name’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_tls_authtype’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_tls_password’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_tls_username’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxyuserpwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.pubkey’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.range’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.request_target’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.sasl_authzid’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.service_name’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ssl_ec_curves’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.ssl_signature_algorithms’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.tls_authtype’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.tls_password’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.tls_username’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.unix_socket_path’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.useragent’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.userpwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
curl-8.15.0/src/tool_getparam.c:61:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.writeout’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#   59|   
#   60|     return PARAM_OK;
#   61|-> }
#   62|   
#   63|   static ParameterError getstrn(char **str, const char *val,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.cert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cert'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_passwd'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cert’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
curl-8.15.0/src/tool_getparam.c:518:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_passwd’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#  516|       *password = passphrase;
#  517|     }
#  518|-> }
#  519|   
#  520|   /* Get a size parameter for '--limit-rate' or '--max-filesize'.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
curl-8.15.0/src/tool_getparam.c:874:10: warning[-Wanalyzer-malloc-leak]: leak of 'query'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
#  872|         config->query = query;
#  873|     }
#  874|->   return err;
#  875|   }
#  876|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
curl-8.15.0/src/tool_getparam.c:874:10: warning[-Wanalyzer-malloc-leak]: leak of ‘query’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
#  872|         config->query = query;
#  873|     }
#  874|->   return err;
#  875|   }
#  876|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
curl-8.15.0/src/tool_getparam.c:1406:7: warning[-Wanalyzer-malloc-leak]: leak of '*config.range'
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to 'parse_args'
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following 'false' branch (when 'orig_opt' is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling 'getparameter' from 'parse_args'
# 1404|       free(config->range);
# 1405|       config->range = strdup(buffer);
# 1406|->     if(!config->range)
# 1407|         err = PARAM_NO_MEM;
# 1408|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
curl-8.15.0/src/tool_getparam.c:1406:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.range’
curl-8.15.0/src/tool_getparam.c:2941:16: enter_function: entry to ‘parse_args’
curl-8.15.0/src/tool_getparam.c:2950:33: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2951:16: branch_true: ...to here
curl-8.15.0/src/tool_getparam.c:2952:7: branch_false: following ‘false’ branch (when ‘orig_opt’ is non-NULL)...
curl-8.15.0/src/tool_getparam.c:2955:7: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2955:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_getparam.c:2964:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_getparam.c:2972:18: branch_false: ...to here
curl-8.15.0/src/tool_getparam.c:2972:18: call_function: calling ‘getparameter’ from ‘parse_args’
# 1404|       free(config->range);
# 1405|       config->range = strdup(buffer);
# 1406|->     if(!config->range)
# 1407|         err = PARAM_NO_MEM;
# 1408|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
curl-8.15.0/src/tool_ipfs.c:40:7: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
#   38|       if(((*input)[len - 1] != '/')) {
#   39|         struct dynbuf dyn;
#   40|->       curlx_dyn_init(&dyn, len + 2);
#   41|   
#   42|         if(curlx_dyn_addn(&dyn, *input, len)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
curl-8.15.0/src/tool_ipfs.c:40:7: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
#   38|       if(((*input)[len - 1] != '/')) {
#   39|         struct dynbuf dyn;
#   40|->       curlx_dyn_init(&dyn, len + 2);
#   41|   
#   42|         if(curlx_dyn_addn(&dyn, *input, len)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
curl-8.15.0/src/tool_ipfs.c:42:10: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
#   40|         curlx_dyn_init(&dyn, len + 2);
#   41|   
#   42|->       if(curlx_dyn_addn(&dyn, *input, len)) {
#   43|           tool_safefree(*input);
#   44|           return CURLE_OUT_OF_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
curl-8.15.0/src/tool_ipfs.c:42:10: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
#   40|         curlx_dyn_init(&dyn, len + 2);
#   41|   
#   42|->       if(curlx_dyn_addn(&dyn, *input, len)) {
#   43|           tool_safefree(*input);
#   44|           return CURLE_OUT_OF_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
curl-8.15.0/src/tool_ipfs.c:49:10: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
#   47|         tool_safefree(*input);
#   48|   
#   49|->       if(curlx_dyn_addn(&dyn, "/", 1))
#   50|           return CURLE_OUT_OF_MEMORY;
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
curl-8.15.0/src/tool_ipfs.c:49:10: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
#   47|         tool_safefree(*input);
#   48|   
#   49|->       if(curlx_dyn_addn(&dyn, "/", 1))
#   50|           return CURLE_OUT_OF_MEMORY;
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
curl-8.15.0/src/tool_ipfs.c:52:16: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
#   50|           return CURLE_OUT_OF_MEMORY;
#   51|   
#   52|->       *input = curlx_dyn_ptr(&dyn);
#   53|       }
#   54|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
curl-8.15.0/src/tool_ipfs.c:52:16: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:234:3: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
#   50|           return CURLE_OUT_OF_MEMORY;
#   51|   
#   52|->       *input = curlx_dyn_ptr(&dyn);
#   53|       }
#   54|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def248]
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if 'curlx_dyn_init' throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#   95|       int c;
#   96|       struct dynbuf dyn;
#   97|->     curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def249]
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if ‘curlx_dyn_init’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#   95|       int c;
#   96|       struct dynbuf dyn;
#   97|->     curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if 'curlx_dyn_init' throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#   95|       int c;
#   96|       struct dynbuf dyn;
#   97|->     curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
curl-8.15.0/src/tool_ipfs.c:97:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:97:5: throw: if ‘curlx_dyn_init’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:97:5: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#   95|       int c;
#   96|       struct dynbuf dyn;
#   97|->     curlx_dyn_init(&dyn, MAX_GATEWAY_URL_LEN);
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def252]
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */
#  100|->     while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
#  101|         char c_char = (char)c;
#  102|         if(curlx_dyn_addn(&dyn, &c_char, 1))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def253]
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_resource: opened here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */
#  100|->     while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
#  101|         char c_char = (char)c;
#  102|         if(curlx_dyn_addn(&dyn, &c_char, 1))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")'
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: 'fopen(curl_maprintf("%sgateway", ipfs_path), "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */
#  100|->     while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
#  101|         char c_char = (char)c;
#  102|         if(curlx_dyn_addn(&dyn, &c_char, 1))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
curl-8.15.0/src/tool_ipfs.c:100:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’
curl-8.15.0/src/tool_ipfs.c:67:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:74:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:83:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:88:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:91:18: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:91:18: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:94:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:97:5: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:100:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:102:10: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:100:46: danger: ‘fopen(curl_maprintf("%sgateway", ipfs_path), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#   98|   
#   99|       /* get the first line of the gateway file, ignore the rest */
#  100|->     while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
#  101|         char c_char = (char)c;
#  102|         if(curlx_dyn_addn(&dyn, &c_char, 1))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
curl-8.15.0/src/tool_ipfs.c:199:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:199:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
#  197|   
#  198|     /* check for unsupported gateway parts */
#  199|->   if(curl_url_get(gatewayurl, CURLUPART_QUERY, &gwquery, 0)
#  200|                     != CURLUE_NO_QUERY) {
#  201|       result = CURLE_URL_MALFORMAT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
curl-8.15.0/src/tool_ipfs.c:199:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:199:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
#  197|   
#  198|     /* check for unsupported gateway parts */
#  199|->   if(curl_url_get(gatewayurl, CURLUPART_QUERY, &gwquery, 0)
#  200|                     != CURLUE_NO_QUERY) {
#  201|       result = CURLE_URL_MALFORMAT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
curl-8.15.0/src/tool_ipfs.c:206:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:206:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
#  204|   
#  205|     /* get gateway parts */
#  206|->   if(curl_url_get(gatewayurl, CURLUPART_HOST,
#  207|                     &gwhost, CURLU_URLDECODE)) {
#  208|       goto clean;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
curl-8.15.0/src/tool_ipfs.c:206:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:206:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
#  204|   
#  205|     /* get gateway parts */
#  206|->   if(curl_url_get(gatewayurl, CURLUPART_HOST,
#  207|                     &gwhost, CURLU_URLDECODE)) {
#  208|       goto clean;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
curl-8.15.0/src/tool_ipfs.c:211:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:6: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:211:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
#  209|     }
#  210|   
#  211|->   if(curl_url_get(gatewayurl, CURLUPART_SCHEME,
#  212|                     &gwscheme, CURLU_URLDECODE)) {
#  213|       goto clean;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
curl-8.15.0/src/tool_ipfs.c:211:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:6: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:211:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
#  209|     }
#  210|   
#  211|->   if(curl_url_get(gatewayurl, CURLUPART_SCHEME,
#  212|                     &gwscheme, CURLU_URLDECODE)) {
#  213|       goto clean;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
curl-8.15.0/src/tool_ipfs.c:216:3: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:216:3: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:216:3: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
#  214|     }
#  215|   
#  216|->   curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
#  217|     curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
#  218|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
curl-8.15.0/src/tool_ipfs.c:216:3: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:216:3: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:216:3: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
#  214|     }
#  215|   
#  216|->   curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
#  217|     curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
#  218|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
curl-8.15.0/src/tool_ipfs.c:217:3: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:217:3: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:217:3: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
#  215|   
#  216|     curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
#  217|->   curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
#  218|   
#  219|     /* get the path from user input */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
curl-8.15.0/src/tool_ipfs.c:217:3: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:217:3: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:217:3: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
#  215|   
#  216|     curl_url_get(gatewayurl, CURLUPART_PORT, &gwport, CURLU_URLDECODE);
#  217|->   curl_url_get(gatewayurl, CURLUPART_PATH, &gwpath, CURLU_URLDECODE);
#  218|   
#  219|     /* get the path from user input */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
curl-8.15.0/src/tool_ipfs.c:220:3: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:220:3: throw: if 'curl_url_get' throws an exception...
curl-8.15.0/src/tool_ipfs.c:220:3: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/16)
#  218|   
#  219|     /* get the path from user input */
#  220|->   curl_url_get(uh, CURLUPART_PATH, &inputpath, CURLU_URLDECODE);
#  221|     /* inputpath might be NULL or a valid pointer now */
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
curl-8.15.0/src/tool_ipfs.c:220:3: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:220:3: throw: if ‘curl_url_get’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:220:3: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/16)
#  218|   
#  219|     /* get the path from user input */
#  220|->   curl_url_get(uh, CURLUPART_PATH, &inputpath, CURLU_URLDECODE);
#  221|     /* inputpath might be NULL or a valid pointer now */
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
curl-8.15.0/src/tool_ipfs.c:236:16: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:236:16: throw: if 'curl_maprintf' throws an exception...
curl-8.15.0/src/tool_ipfs.c:236:16: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/16)
#  234|     ensure_trailing_slash(&gwpath);
#  235|   
#  236|->   pathbuffer = aprintf("%s%s/%s%s", gwpath, protocol, cid,
#  237|                          inputpath ? inputpath : "");
#  238|     if(!pathbuffer) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
curl-8.15.0/src/tool_ipfs.c:236:16: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:236:16: throw: if ‘curl_maprintf’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:236:16: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/16)
#  234|     ensure_trailing_slash(&gwpath);
#  235|   
#  236|->   pathbuffer = aprintf("%s%s/%s%s", gwpath, protocol, cid,
#  237|                          inputpath ? inputpath : "");
#  238|     if(!pathbuffer) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
curl-8.15.0/src/tool_ipfs.c:242:6: warning[-Wanalyzer-malloc-leak]: leak of 'gateway'
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling 'ensure_trailing_slash' from 'ipfs_url_rewrite'
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to 'ipfs_url_rewrite' from 'ensure_trailing_slash'
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following 'false' branch (when 'gateway' is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:238:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ipfs.c:242:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:242:6: throw: if 'curl_url_set' throws an exception...
curl-8.15.0/src/tool_ipfs.c:242:6: danger: 'gateway' leaks here; was allocated at [(17)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/16)
#  240|     }
#  241|   
#  242|->   if(curl_url_set(uh, CURLUPART_PATH, pathbuffer, CURLU_URLENCODE)) {
#  243|       goto clean;
#  244|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
curl-8.15.0/src/tool_ipfs.c:242:6: warning[-Wanalyzer-malloc-leak]: leak of ‘gateway’
curl-8.15.0/src/tool_ipfs.c:134:10: enter_function: entry to ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:151:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:156:15: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:157:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:163:5: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:165:8: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:165:8: call_function: calling ‘ensure_trailing_slash’ from ‘ipfs_url_rewrite’
curl-8.15.0/src/tool_ipfs.c:165:8: return_function: returning to ‘ipfs_url_rewrite’ from ‘ensure_trailing_slash’
curl-8.15.0/src/tool_ipfs.c:165:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:170:49: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:170:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_ipfs.c:172:24: branch_true: ...to here
curl-8.15.0/src/tool_ipfs.c:172:17: acquire_memory: allocated here
curl-8.15.0/src/tool_ipfs.c:173:9: branch_false: following ‘false’ branch (when ‘gateway’ is non-NULL)...
curl-8.15.0/src/tool_ipfs.c:199:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:199:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:206:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:206:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:211:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:211:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:216:3: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:225:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:226:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:224:6: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:230:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:238:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ipfs.c:242:6: branch_false: ...to here
curl-8.15.0/src/tool_ipfs.c:242:6: throw: if ‘curl_url_set’ throws an exception...
curl-8.15.0/src/tool_ipfs.c:242:6: danger: ‘gateway’ leaks here; was allocated at [(17)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/16)
#  240|     }
#  241|   
#  242|->   if(curl_url_set(uh, CURLUPART_PATH, pathbuffer, CURLU_URLENCODE)) {
#  243|       goto clean;
#  244|     }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def272]
curl-8.15.0/src/tool_msgs.c:47:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to 'warnf'
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling 'voutf' from 'warnf'
#   45|                     va_list ap)
#   46|   {
#   47|->   size_t width = (get_terminal_columns() - strlen(prefix));
#   48|     DEBUGASSERT(!strchr(fmt, '\n'));
#   49|     if(!global->silent) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def273]
curl-8.15.0/src/tool_msgs.c:47:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to ‘warnf’
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling ‘voutf’ from ‘warnf’
#   45|                     va_list ap)
#   46|   {
#   47|->   size_t width = (get_terminal_columns() - strlen(prefix));
#   48|     DEBUGASSERT(!strchr(fmt, '\n'));
#   49|     if(!global->silent) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def274]
curl-8.15.0/src/tool_msgs.c:54:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to 'warnf'
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling 'voutf' from 'warnf'
#   52|       char *print_buffer;
#   53|   
#   54|->     print_buffer = vaprintf(fmt, ap);
#   55|       if(!print_buffer)
#   56|         return;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def275]
curl-8.15.0/src/tool_msgs.c:54:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_msgs.c:106:6: enter_function: entry to ‘warnf’
curl-8.15.0/src/tool_msgs.c:109:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_msgs.c:110:3: call_function: calling ‘voutf’ from ‘warnf’
#   52|       char *print_buffer;
#   53|   
#   54|->     print_buffer = vaprintf(fmt, ap);
#   55|       if(!print_buffer)
#   56|         return;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def276]
curl-8.15.0/src/tool_msgs.c:125:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_msgs.c:120:5: branch_true: following 'true' branch (when 'fmt' is non-NULL)...
curl-8.15.0/src/tool_msgs.c:122:5: branch_true: ...to here
curl-8.15.0/src/tool_msgs.c:122:5: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_msgs.c:125:5: throw: if 'curl_mvfprintf' throws an exception...
curl-8.15.0/src/tool_msgs.c:125:5: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  123|       DEBUGASSERT(!strchr(fmt, '\n'));
#  124|       fputs("curl: ", errors); /* prefix it */
#  125|->     vfprintf(errors, fmt, ap);
#  126|       va_end(ap);
#  127|       fputs("\n", errors); /* newline it */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def277]
curl-8.15.0/src/tool_msgs.c:125:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_msgs.c:120:5: branch_true: following ‘true’ branch (when ‘fmt’ is non-NULL)...
curl-8.15.0/src/tool_msgs.c:122:5: branch_true: ...to here
curl-8.15.0/src/tool_msgs.c:122:5: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_msgs.c:125:5: throw: if ‘curl_mvfprintf’ throws an exception...
curl-8.15.0/src/tool_msgs.c:125:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  123|       DEBUGASSERT(!strchr(fmt, '\n'));
#  124|       fputs("curl: ", errors); /* prefix it */
#  125|->     vfprintf(errors, fmt, ap);
#  126|       va_end(ap);
#  127|       fputs("\n", errors); /* newline it */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
curl-8.15.0/src/tool_operate.c:743:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.cert_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
#  741|       if(config->cert && !config->cert_type && is_pkcs11_uri(config->cert)) {
#  742|         config->cert_type = strdup("ENG");
#  743|->       if(!config->cert_type)
#  744|           return CURLE_OUT_OF_MEMORY;
#  745|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
curl-8.15.0/src/tool_operate.c:743:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cert_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
#  741|       if(config->cert && !config->cert_type && is_pkcs11_uri(config->cert)) {
#  742|         config->cert_type = strdup("ENG");
#  743|->       if(!config->cert_type)
#  744|           return CURLE_OUT_OF_MEMORY;
#  745|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
curl-8.15.0/src/tool_operate.c:751:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.key_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
#  749|       if(config->key && !config->key_type && is_pkcs11_uri(config->key)) {
#  750|         config->key_type = strdup("ENG");
#  751|->       if(!config->key_type)
#  752|           return CURLE_OUT_OF_MEMORY;
#  753|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
curl-8.15.0/src/tool_operate.c:751:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.key_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
#  749|       if(config->key && !config->key_type && is_pkcs11_uri(config->key)) {
#  750|         config->key_type = strdup("ENG");
#  751|->       if(!config->key_type)
#  752|           return CURLE_OUT_OF_MEMORY;
#  753|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
curl-8.15.0/src/tool_operate.c:760:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_cert_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
#  758|          is_pkcs11_uri(config->proxy_cert)) {
#  759|         config->proxy_cert_type = strdup("ENG");
#  760|->       if(!config->proxy_cert_type)
#  761|           return CURLE_OUT_OF_MEMORY;
#  762|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
curl-8.15.0/src/tool_operate.c:760:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_cert_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
#  758|          is_pkcs11_uri(config->proxy_cert)) {
#  759|         config->proxy_cert_type = strdup("ENG");
#  760|->       if(!config->proxy_cert_type)
#  761|           return CURLE_OUT_OF_MEMORY;
#  762|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
curl-8.15.0/src/tool_operate.c:769:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.proxy_key_type'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
#  767|          is_pkcs11_uri(config->proxy_key)) {
#  768|         config->proxy_key_type = strdup("ENG");
#  769|->       if(!config->proxy_key_type)
#  770|           return CURLE_OUT_OF_MEMORY;
#  771|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
curl-8.15.0/src/tool_operate.c:769:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.proxy_key_type’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
#  767|          is_pkcs11_uri(config->proxy_key)) {
#  768|         config->proxy_key_type = strdup("ENG");
#  769|->       if(!config->proxy_key_type)
#  770|           return CURLE_OUT_OF_MEMORY;
#  771|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def286]
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*config.etag_compare_file, "r")'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
#  821|             strerror(errno));
#  822|   
#  823|->   if((PARAM_OK == file2string(&etag_from_file, file)) &&
#  824|        etag_from_file) {
#  825|       header = aprintf("If-None-Match: %s", etag_from_file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def287]
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*config.etag_compare_file, "r")’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
#  821|             strerror(errno));
#  822|   
#  823|->   if((PARAM_OK == file2string(&etag_from_file, file)) &&
#  824|        etag_from_file) {
#  825|       header = aprintf("If-None-Match: %s", etag_from_file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*config.etag_compare_file, "r")'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
#  821|             strerror(errno));
#  822|   
#  823|->   if((PARAM_OK == file2string(&etag_from_file, file)) &&
#  824|        etag_from_file) {
#  825|       header = aprintf("If-None-Match: %s", etag_from_file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
curl-8.15.0/src/tool_operate.c:823:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*config.etag_compare_file, "r")’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
#  821|             strerror(errno));
#  822|   
#  823|->   if((PARAM_OK == file2string(&etag_from_file, file)) &&
#  824|        etag_from_file) {
#  825|       header = aprintf("If-None-Match: %s", etag_from_file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
curl-8.15.0/src/tool_operate.c:1174:9: warning[-Wanalyzer-malloc-leak]: leak of '*config.state.outfiles'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1172|       if(urlnode->outfile && !state->outfiles) {
# 1173|         state->outfiles = strdup(urlnode->outfile);
# 1174|->       if(!state->outfiles) {
# 1175|           errorf(global, "out of memory");
# 1176|           result = CURLE_OUT_OF_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
curl-8.15.0/src/tool_operate.c:1174:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.state.outfiles’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1172|       if(urlnode->outfile && !state->outfiles) {
# 1173|         state->outfiles = strdup(urlnode->outfile);
# 1174|->       if(!state->outfiles) {
# 1175|           errorf(global, "out of memory");
# 1176|           result = CURLE_OUT_OF_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def292]
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-file-leak]: leak of FILE 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1251|         }
# 1252|   
# 1253|->       curl = curl_easy_init();
# 1254|         if(curl)
# 1255|           result = add_per_transfer(&per);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def293]
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1251|         }
# 1252|   
# 1253|->       curl = curl_easy_init();
# 1254|         if(curl)
# 1255|           result = add_per_transfer(&per);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-malloc-leak]: leak of 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1251|         }
# 1252|   
# 1253|->       curl = curl_easy_init();
# 1254|         if(curl)
# 1255|           result = add_per_transfer(&per);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
curl-8.15.0/src/tool_operate.c:1253:14: warning[-Wanalyzer-malloc-leak]: leak of ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1251|         }
# 1252|   
# 1253|->       curl = curl_easy_init();
# 1254|         if(curl)
# 1255|           result = add_per_transfer(&per);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def296]
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-file-leak]: leak of FILE 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1257|           result = CURLE_OUT_OF_MEMORY;
# 1258|         if(result) {
# 1259|->         curl_easy_cleanup(curl);
# 1260|           if(etag_save->fopened)
# 1261|             fclose(etag_save->stream);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def297]
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1257|           result = CURLE_OUT_OF_MEMORY;
# 1258|         if(result) {
# 1259|->         curl_easy_cleanup(curl);
# 1260|           if(etag_save->fopened)
# 1261|             fclose(etag_save->stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-malloc-leak]: leak of 'etag_first.stream'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1257|           result = CURLE_OUT_OF_MEMORY;
# 1258|         if(result) {
# 1259|->         curl_easy_cleanup(curl);
# 1260|           if(etag_save->fopened)
# 1261|             fclose(etag_save->stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
curl-8.15.0/src/tool_operate.c:1259:9: warning[-Wanalyzer-malloc-leak]: leak of ‘etag_first.stream’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1257|           result = CURLE_OUT_OF_MEMORY;
# 1258|         if(result) {
# 1259|->         curl_easy_cleanup(curl);
# 1260|           if(etag_save->fopened)
# 1261|             fclose(etag_save->stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
curl-8.15.0/src/tool_operate.c:1493:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1491|       /* parallel connect means that we do not set PIPEWAIT since pipewait
# 1492|          will make libcurl prefer multiplexing */
# 1493|->     (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494|                              global->parallel_connect ? 0L : 1L);
# 1495|       (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
curl-8.15.0/src/tool_operate.c:1493:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1491|       /* parallel connect means that we do not set PIPEWAIT since pipewait
# 1492|          will make libcurl prefer multiplexing */
# 1493|->     (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494|                              global->parallel_connect ? 0L : 1L);
# 1495|       (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
curl-8.15.0/src/tool_operate.c:1495:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1493|       (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494|                              global->parallel_connect ? 0L : 1L);
# 1495|->     (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496|       /* curl does not use signals, switching this on saves some system calls */
# 1497|       (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
curl-8.15.0/src/tool_operate.c:1495:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1493|       (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT,
# 1494|                              global->parallel_connect ? 0L : 1L);
# 1495|->     (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496|       /* curl does not use signals, switching this on saves some system calls */
# 1497|       (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
curl-8.15.0/src/tool_operate.c:1497:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1495|       (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496|       /* curl does not use signals, switching this on saves some system calls */
# 1497|->     (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
curl-8.15.0/src/tool_operate.c:1497:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1495|       (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per);
# 1496|       /* curl does not use signals, switching this on saves some system calls */
# 1497|->     (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
curl-8.15.0/src/tool_operate.c:1498:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1496|       /* curl does not use signals, switching this on saves some system calls */
# 1497|       (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|->     (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|       (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
curl-8.15.0/src/tool_operate.c:1498:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1496|       /* curl does not use signals, switching this on saves some system calls */
# 1497|       (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|->     (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|       (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
curl-8.15.0/src/tool_operate.c:1499:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1497|       (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|->     (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|       (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501|   #ifdef DEBUGBUILD

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
curl-8.15.0/src/tool_operate.c:1499:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1497|       (void)curl_easy_setopt(per->curl, CURLOPT_NOSIGNAL, 1L);
# 1498|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|->     (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|       (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501|   #ifdef DEBUGBUILD

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
curl-8.15.0/src/tool_operate.c:1500:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1498|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|->     (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501|   #ifdef DEBUGBUILD
# 1502|       if(getenv("CURL_FORBID_REUSE"))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
curl-8.15.0/src/tool_operate.c:1500:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1498|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb);
# 1499|       (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per);
# 1500|->     (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L);
# 1501|   #ifdef DEBUGBUILD
# 1502|       if(getenv("CURL_FORBID_REUSE"))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
curl-8.15.0/src/tool_operate.c:1506:13: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 1504|   #endif
# 1505|   
# 1506|->     mcode = curl_multi_add_handle(multi, per->curl);
# 1507|       if(mcode) {
# 1508|         DEBUGASSERT(mcode == CURLM_OUT_OF_MEMORY);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
curl-8.15.0/src/tool_operate.c:1506:13: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 1504|   #endif
# 1505|   
# 1506|->     mcode = curl_multi_add_handle(multi, per->curl);
# 1507|       if(mcode) {
# 1508|         DEBUGASSERT(mcode == CURLM_OUT_OF_MEMORY);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
curl-8.15.0/src/tool_operate.c:2054:21: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2052|                                        1 = yes */
# 2053|     if(using_schannel == -1) {
# 2054|->     CURL *curltls = curl_easy_init();
# 2055|       /* The TLS backend remains, so keep the info */
# 2056|       struct curl_tlssessioninfo *tls_backend_info = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
curl-8.15.0/src/tool_operate.c:2054:21: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2052|                                        1 = yes */
# 2053|     if(using_schannel == -1) {
# 2054|->     CURL *curltls = curl_easy_init();
# 2055|       /* The TLS backend remains, so keep the info */
# 2056|       struct curl_tlssessioninfo *tls_backend_info = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
curl-8.15.0/src/tool_operate.c:2061:16: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2059|         result = CURLE_OUT_OF_MEMORY;
# 2060|       else {
# 2061|->       result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR,
# 2062|                                    &tls_backend_info);
# 2063|         if(!result)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
curl-8.15.0/src/tool_operate.c:2061:16: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2059|         result = CURLE_OUT_OF_MEMORY;
# 2060|       else {
# 2061|->       result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR,
# 2062|                                    &tls_backend_info);
# 2063|         if(!result)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
curl-8.15.0/src/tool_operate.c:2067:5: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2065|             (tls_backend_info->backend == CURLSSLBACKEND_SCHANNEL);
# 2066|       }
# 2067|->     curl_easy_cleanup(curltls);
# 2068|       if(result)
# 2069|         return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
curl-8.15.0/src/tool_operate.c:2067:5: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2065|             (tls_backend_info->backend == CURLSSLBACKEND_SCHANNEL);
# 2066|       }
# 2067|->     curl_easy_cleanup(curltls);
# 2068|       if(result)
# 2069|         return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
curl-8.15.0/src/tool_operate.c:2087:15: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2085|   {
# 2086|     CURLcode result = CURLE_OUT_OF_MEMORY;
# 2087|->   char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088|     if(env) {
# 2089|       config->cacert = strdup(env);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
curl-8.15.0/src/tool_operate.c:2087:15: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2085|   {
# 2086|     CURLcode result = CURLE_OUT_OF_MEMORY;
# 2087|->   char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088|     if(env) {
# 2089|       config->cacert = strdup(env);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
curl-8.15.0/src/tool_operate.c:2089:5: warning[-Wanalyzer-malloc-leak]: leak of '*config.cacert'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2087|     char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088|     if(env) {
# 2089|->     config->cacert = strdup(env);
# 2090|       curl_free(env);
# 2091|       if(!config->cacert)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
curl-8.15.0/src/tool_operate.c:2089:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cacert’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2087|     char *env = curl_getenv("CURL_CA_BUNDLE");
# 2088|     if(env) {
# 2089|->     config->cacert = strdup(env);
# 2090|       curl_free(env);
# 2091|       if(!config->cacert)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
curl-8.15.0/src/tool_operate.c:2090:5: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2088|     if(env) {
# 2089|       config->cacert = strdup(env);
# 2090|->     curl_free(env);
# 2091|       if(!config->cacert)
# 2092|         goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
curl-8.15.0/src/tool_operate.c:2090:5: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2088|     if(env) {
# 2089|       config->cacert = strdup(env);
# 2090|->     curl_free(env);
# 2091|       if(!config->cacert)
# 2092|         goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
curl-8.15.0/src/tool_operate.c:2095:11: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2093|     }
# 2094|     else {
# 2095|->     env = curl_getenv("SSL_CERT_DIR");
# 2096|       if(env) {
# 2097|         config->capath = strdup(env);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
curl-8.15.0/src/tool_operate.c:2095:11: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2093|     }
# 2094|     else {
# 2095|->     env = curl_getenv("SSL_CERT_DIR");
# 2096|       if(env) {
# 2097|         config->capath = strdup(env);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
curl-8.15.0/src/tool_operate.c:2097:7: warning[-Wanalyzer-malloc-leak]: leak of '*config.capath'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2095|       env = curl_getenv("SSL_CERT_DIR");
# 2096|       if(env) {
# 2097|->       config->capath = strdup(env);
# 2098|         curl_free(env);
# 2099|         if(!config->capath)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
curl-8.15.0/src/tool_operate.c:2097:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.capath’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2095|       env = curl_getenv("SSL_CERT_DIR");
# 2096|       if(env) {
# 2097|->       config->capath = strdup(env);
# 2098|         curl_free(env);
# 2099|         if(!config->capath)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
curl-8.15.0/src/tool_operate.c:2098:7: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2096|       if(env) {
# 2097|         config->capath = strdup(env);
# 2098|->       curl_free(env);
# 2099|         if(!config->capath)
# 2100|           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
curl-8.15.0/src/tool_operate.c:2098:7: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2096|       if(env) {
# 2097|         config->capath = strdup(env);
# 2098|->       curl_free(env);
# 2099|         if(!config->capath)
# 2100|           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
curl-8.15.0/src/tool_operate.c:2104:7: warning[-Wanalyzer-malloc-leak]: leak of '*config.cacert'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2102|       env = curl_getenv("SSL_CERT_FILE");
# 2103|       if(env) {
# 2104|->       config->cacert = strdup(env);
# 2105|         curl_free(env);
# 2106|         if(!config->cacert)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
curl-8.15.0/src/tool_operate.c:2104:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*config.cacert’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2102|       env = curl_getenv("SSL_CERT_FILE");
# 2103|       if(env) {
# 2104|->       config->cacert = strdup(env);
# 2105|         curl_free(env);
# 2106|         if(!config->cacert)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
curl-8.15.0/src/tool_operate.c:2145:5: warning[-Wanalyzer-malloc-leak]: leak of 'errorbuf'
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to 'operate'
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following 'false' branch (when 'first_arg' is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following 'true' branch (when 'result == 0')...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling 'run_all_transfers' from 'operate'
# 2143|     /* Check we have a url */
# 2144|     if(!config->url_list || !config->url_list->url) {
# 2145|->     helpf(tool_stderr, "(%d) no URL specified", CURLE_FAILED_INIT);
# 2146|       return CURLE_FAILED_INIT;
# 2147|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
curl-8.15.0/src/tool_operate.c:2145:5: warning[-Wanalyzer-malloc-leak]: leak of ‘errorbuf’
curl-8.15.0/src/tool_operate.c:2243:10: enter_function: entry to ‘operate’
curl-8.15.0/src/tool_operate.c:2260:6: branch_false: following ‘false’ branch (when ‘first_arg’ is NULL)...
curl-8.15.0/src/tool_operate.c:2276:26: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2318:9: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2320:33: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2322:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_operate.c:2331:11: branch_false: ...to here
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: following ‘true’ branch (when ‘result == 0’)...
curl-8.15.0/src/tool_operate.c:2345:13: branch_true: ...to here
curl-8.15.0/src/tool_operate.c:2357:22: call_function: calling ‘run_all_transfers’ from ‘operate’
# 2143|     /* Check we have a url */
# 2144|     if(!config->url_list || !config->url_list->url) {
# 2145|->     helpf(tool_stderr, "(%d) no URL specified", CURLE_FAILED_INIT);
# 2146|       return CURLE_FAILED_INIT;
# 2147|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
curl-8.15.0/src/tool_paramhlp.c:425:21: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:424:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:425:21: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:425:21: throw: if 'proto_token' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:425:21: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  423|     protoset[0] = NULL;
#  424|     for(; *val; val++) {
#  425|->     const char *p = proto_token(*val);
#  426|   
#  427|       if(p)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
curl-8.15.0/src/tool_paramhlp.c:425:21: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:424:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:425:21: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:425:21: throw: if ‘proto_token’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:425:21: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  423|     protoset[0] = NULL;
#  424|     for(; *val; val++) {
#  425|->     const char *p = proto_token(*val);
#  426|   
#  427|       if(p)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
curl-8.15.0/src/tool_paramhlp.c:464:23: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:7: branch_true: following 'true' branch (when 'plen == 3')...
curl-8.15.0/src/tool_paramhlp.c:464:23: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:23: throw: if 'curl_strnequal' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:464:23: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  462|       }
#  463|   
#  464|->     if((plen == 3) && curl_strnequal(str, "all", 3)) {
#  465|         switch(action) {
#  466|         case deny:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
curl-8.15.0/src/tool_paramhlp.c:464:23: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:7: branch_true: following ‘true’ branch (when ‘plen == 3’)...
curl-8.15.0/src/tool_paramhlp.c:464:23: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:464:23: throw: if ‘curl_strnequal’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:464:23: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  462|       }
#  463|   
#  464|->     if((plen == 3) && curl_strnequal(str, "all", 3)) {
#  465|         switch(action) {
#  466|         case deny:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
curl-8.15.0/src/tool_paramhlp.c:479:7: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:479:7: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:479:7: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  477|         char buffer[32];
#  478|         const char *p;
#  479|->       msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
#  480|   
#  481|         p = proto_token(buffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
curl-8.15.0/src/tool_paramhlp.c:479:7: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:479:7: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:479:7: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  477|         char buffer[32];
#  478|         const char *p;
#  479|->       msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
#  480|   
#  481|         p = proto_token(buffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
curl-8.15.0/src/tool_paramhlp.c:481:11: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:481:11: throw: if 'proto_token' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:481:11: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  479|         msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
#  480|   
#  481|->       p = proto_token(buffer);
#  482|   
#  483|         if(p)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
curl-8.15.0/src/tool_paramhlp.c:481:11: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:481:11: throw: if ‘proto_token’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:481:11: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  479|         msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
#  480|   
#  481|->       p = proto_token(buffer);
#  482|   
#  483|         if(p)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
curl-8.15.0/src/tool_paramhlp.c:500:9: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following 'false' branch (when 'next' is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:483:9: branch_false: following 'false' branch...
curl-8.15.0/src/tool_paramhlp.c:498:11: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:500:9: throw: if 'warnf' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:500:9: danger: 'protoset' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  498|           if(action == set)
#  499|             protoset[0] = NULL;
#  500|->         warnf(config->global, "unrecognized protocol '%s'", buffer);
#  501|         }
#  502|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
curl-8.15.0/src/tool_paramhlp.c:500:9: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:431:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_paramhlp.c:432:24: branch_true: ...to here
curl-8.15.0/src/tool_paramhlp.c:436:7: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
curl-8.15.0/src/tool_paramhlp.c:444:14: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:483:9: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_paramhlp.c:498:11: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:500:9: throw: if ‘warnf’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:500:9: danger: ‘protoset’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  498|           if(action == set)
#  499|             protoset[0] = NULL;
#  500|->         warnf(config->global, "unrecognized protocol '%s'", buffer);
#  501|         }
#  502|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
curl-8.15.0/src/tool_paramhlp.c:510:3: warning[-Wanalyzer-malloc-leak]: leak of 'protoset'
curl-8.15.0/src/tool_paramhlp.c:408:16: enter_function: entry to 'proto2num'
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following 'false' branch (when 'protoset' is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:510:3: call_function: inlined call to 'protoset_index' from 'proto2num'
curl-8.15.0/src/tool_paramhlp.c:510:3: throw: if 'qsort' throws an exception...
curl-8.15.0/src/tool_paramhlp.c:510:3: danger: 'protoset' leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  508|   
#  509|     /* We need the protocols in alphabetic order for CI tests requirements. */
#  510|->   qsort((char *) protoset, protoset_index(protoset, NULL), sizeof(*protoset),
#  511|           struplocompare4sort);
#  512|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
curl-8.15.0/src/tool_paramhlp.c:510:3: warning[-Wanalyzer-malloc-leak]: leak of ‘protoset’
curl-8.15.0/src/tool_paramhlp.c:408:16: enter_function: entry to ‘proto2num’
curl-8.15.0/src/tool_paramhlp.c:418:14: acquire_memory: allocated here
curl-8.15.0/src/tool_paramhlp.c:419:5: branch_false: following ‘false’ branch (when ‘protoset’ is non-NULL)...
curl-8.15.0/src/tool_paramhlp.c:423:3: branch_false: ...to here
curl-8.15.0/src/tool_paramhlp.c:510:3: call_function: inlined call to ‘protoset_index’ from ‘proto2num’
curl-8.15.0/src/tool_paramhlp.c:510:3: throw: if ‘qsort’ throws an exception...
curl-8.15.0/src/tool_paramhlp.c:510:3: danger: ‘protoset’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  508|   
#  509|     /* We need the protocols in alphabetic order for CI tests requirements. */
#  510|->   qsort((char *) protoset, protoset_index(protoset, NULL), sizeof(*protoset),
#  511|           struplocompare4sort);
#  512|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def348]
curl-8.15.0/src/tool_setopt.c:642:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
curl-8.15.0/src/tool_setopt.c:631:3: acquire_resource: 'va_start' called here
curl-8.15.0/src/tool_setopt.c:642:9: throw: if 'curl_easy_setopt' throws an exception...
curl-8.15.0/src/tool_setopt.c:642:9: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  640|     pval = va_arg(arg, void *);
#  641|   
#  642|->   ret = curl_easy_setopt(curl, tag, pval);
#  643|   
#  644|     va_end(arg);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def349]
curl-8.15.0/src/tool_setopt.c:642:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
curl-8.15.0/src/tool_setopt.c:631:3: acquire_resource: ‘va_start’ called here
curl-8.15.0/src/tool_setopt.c:642:9: throw: if ‘curl_easy_setopt’ throws an exception...
curl-8.15.0/src/tool_setopt.c:642:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  640|     pval = va_arg(arg, void *);
#  641|   
#  642|->   ret = curl_easy_setopt(curl, tag, pval);
#  643|   
#  644|     va_end(arg);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def350]
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-file-leak]: leak of FILE 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
#   47|     result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|->     my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|       my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def351]
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
#   47|     result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|->     my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|       my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-malloc-leak]: leak of 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
#   47|     result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|->     my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|       my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
curl-8.15.0/src/tool_ssls.c:49:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
#   47|     result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|->     my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|       my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def354]
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-file-leak]: leak of FILE 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|       my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|->     my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
#   52|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def355]
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_resource: opened here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|       my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|->     my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
#   52|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of 'ctx.fp'
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to 'tool_ssls_save'
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling 'tool_ssls_easy' from 'tool_ssls_save'
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|       my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|->     my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
#   52|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
curl-8.15.0/src/tool_ssls.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.fp’
curl-8.15.0/src/tool_ssls.c:190:10: enter_function: entry to ‘tool_ssls_save’
curl-8.15.0/src/tool_ssls.c:199:12: acquire_memory: allocated here
curl-8.15.0/src/tool_ssls.c:200:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_ssls.c:206:7: branch_false: ...to here
curl-8.15.0/src/tool_ssls.c:206:7: call_function: calling ‘tool_ssls_easy’ from ‘tool_ssls_save’
#   48|     if(!result && (global->tracetype != TRACE_NONE)) {
#   49|       my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
#   50|->     my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
#   51|       my_setopt_long(*peasy, CURLOPT_VERBOSE, 1L);
#   52|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
#  332|       return FALSE;
#  333|   
#  334|->   u = curl_url();
#  335|     if(!u)
#  336|       return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
#  332|       return FALSE;
#  333|   
#  334|->   u = curl_url();
#  335|     if(!u)
#  336|       return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
#  332|       return FALSE;
#  333|   
#  334|->   u = curl_url();
#  335|     if(!u)
#  336|       return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
curl-8.15.0/src/tool_urlglob.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
#  332|       return FALSE;
#  333|   
#  334|->   u = curl_url();
#  335|     if(!u)
#  336|       return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
#  340|   
#  341|     /* ask to "guess scheme" as then it works without an https:// prefix */
#  342|->   rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|     curl_url_cleanup(u);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
#  340|   
#  341|     /* ask to "guess scheme" as then it works without an https:// prefix */
#  342|->   rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|     curl_url_cleanup(u);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
#  340|   
#  341|     /* ask to "guess scheme" as then it works without an https:// prefix */
#  342|->   rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|     curl_url_cleanup(u);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
curl-8.15.0/src/tool_urlglob.c:342:8: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
#  340|   
#  341|     /* ask to "guess scheme" as then it works without an https:// prefix */
#  342|->   rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|     curl_url_cleanup(u);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
#  342|     rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|->   curl_url_cleanup(u);
#  345|     if(!rc)
#  346|       *skip = hlen;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
#  342|     rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|->   curl_url_cleanup(u);
#  345|     if(!rc)
#  346|       *skip = hlen;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
#  342|     rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|->   curl_url_cleanup(u);
#  345|     if(!rc)
#  346|       *skip = hlen;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
curl-8.15.0/src/tool_urlglob.c:344:3: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
#  342|     rc = curl_url_set(u, CURLUPART_URL, hostname, CURLU_GUESS_SCHEME);
#  343|   
#  344|->   curl_url_cleanup(u);
#  345|     if(!rc)
#  346|       *skip = hlen;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
curl-8.15.0/src/tool_urlglob.c:422:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
curl-8.15.0/src/tool_urlglob.c:350:17: enter_function: entry to 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:361:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:364:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:367:16: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:368:13: call_function: calling 'peek_ipv6' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:368:13: return_function: returning to 'glob_parse' from 'peek_ipv6'
curl-8.15.0/src/tool_urlglob.c:368:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:370:12: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:370:11: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:371:11: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:364:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:396:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:396:7: branch_true: following 'true' branch (when 'sublen != 0')...
curl-8.15.0/src/tool_urlglob.c:398:7: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:399:13: call_function: calling 'glob_fixed' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:399:13: return_function: returning to 'glob_parse' from 'glob_fixed'
curl-8.15.0/src/tool_urlglob.c:422:7: danger: '<unknown>' leaks here; was allocated at [(32)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/31)
#  420|       }
#  421|   
#  422|->     if(++glob->size >= GLOB_PATTERN_NUM)
#  423|         return GLOBERROR("too many globs", pos, CURLE_URL_MALFORMAT);
#  424|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
curl-8.15.0/src/tool_urlglob.c:422:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
curl-8.15.0/src/tool_urlglob.c:350:17: enter_function: entry to ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:361:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:364:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:365:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:367:16: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:368:13: call_function: calling ‘peek_ipv6’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:368:13: return_function: returning to ‘glob_parse’ from ‘peek_ipv6’
curl-8.15.0/src/tool_urlglob.c:368:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:370:12: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:370:11: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:371:11: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:364:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:396:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:396:7: branch_true: following ‘true’ branch (when ‘sublen != 0’)...
curl-8.15.0/src/tool_urlglob.c:398:7: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:399:13: call_function: calling ‘glob_fixed’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:399:13: return_function: returning to ‘glob_parse’ from ‘glob_fixed’
curl-8.15.0/src/tool_urlglob.c:422:7: danger: ‘<unknown>’ leaks here; was allocated at [(32)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/31)
#  420|       }
#  421|   
#  422|->     if(++glob->size >= GLOB_PATTERN_NUM)
#  423|         return GLOBERROR("too many globs", pos, CURLE_URL_MALFORMAT);
#  424|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: 'glob_buffer' leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#  461|         const char *t;
#  462|         if(glob_expand->pos) {
#  463|->         msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
#  464|                     glob_expand->error,
#  465|                     glob_expand->pos, url, (int)glob_expand->pos - 1, " ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if 'curl_msnprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: 'glob_expand' leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
#  461|         const char *t;
#  462|         if(glob_expand->pos) {
#  463|->         msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
#  464|                     glob_expand->error,
#  465|                     glob_expand->pos, url, (int)glob_expand->pos - 1, " ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: ‘glob_buffer’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#  461|         const char *t;
#  462|         if(glob_expand->pos) {
#  463|->         msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
#  464|                     glob_expand->error,
#  465|                     glob_expand->pos, url, (int)glob_expand->pos - 1, " ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
curl-8.15.0/src/tool_urlglob.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:463:9: throw: if ‘curl_msnprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:463:9: danger: ‘glob_expand’ leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
#  461|         const char *t;
#  462|         if(glob_expand->pos) {
#  463|->         msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
#  464|                     glob_expand->error,
#  465|                     glob_expand->pos, url, (int)glob_expand->pos - 1, " ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_buffer'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: 'glob_buffer' leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
#  470|   
#  471|         /* send error description to the error-stream */
#  472|->       fprintf(error, "curl: (%d) %s\n", res, t);
#  473|       }
#  474|       /* it failed, we cleanup */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of 'glob_expand'
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to 'glob_url'
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following 'false' branch (when 'glob_buffer' is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling 'glob_parse' from 'glob_url'
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to 'glob_url' from 'glob_parse'
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following 'false' branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: 'glob_expand' leaks here; was allocated at [(4)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/3)
#  470|   
#  471|         /* send error description to the error-stream */
#  472|->       fprintf(error, "curl: (%d) %s\n", res, t);
#  473|       }
#  474|       /* it failed, we cleanup */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_buffer’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:442:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: ‘glob_buffer’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
#  470|   
#  471|         /* send error description to the error-stream */
#  472|->       fprintf(error, "curl: (%d) %s\n", res, t);
#  473|       }
#  474|       /* it failed, we cleanup */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
curl-8.15.0/src/tool_urlglob.c:472:7: warning[-Wanalyzer-malloc-leak]: leak of ‘glob_expand’
curl-8.15.0/src/tool_urlglob.c:428:10: enter_function: entry to ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:443:5: branch_false: following ‘false’ branch (when ‘glob_buffer’ is non-NULL)...
curl-8.15.0/src/tool_urlglob.c:445:3: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:447:17: acquire_memory: allocated here
curl-8.15.0/src/tool_urlglob.c:448:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:452:25: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:455:9: call_function: calling ‘glob_parse’ from ‘glob_url’
curl-8.15.0/src/tool_urlglob.c:455:9: return_function: returning to ‘glob_url’ from ‘glob_parse’
curl-8.15.0/src/tool_urlglob.c:456:5: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_urlglob.c:459:7: branch_false: ...to here
curl-8.15.0/src/tool_urlglob.c:459:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:462:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_urlglob.c:465:42: branch_true: ...to here
curl-8.15.0/src/tool_urlglob.c:472:7: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_urlglob.c:472:7: danger: ‘glob_expand’ leaks here; was allocated at [(4)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/3)
#  470|   
#  471|         /* send error description to the error-stream */
#  472|->       fprintf(error, "curl: (%d) %s\n", res, t);
#  473|       }
#  474|       /* it failed, we cleanup */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def380]
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following 'false' branch (when 'writeinfo' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following 'true' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following 'true' branch (when 'flen <= 511')...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_resource: opened here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following 'false' branch (when 'fclose_stream == 0')...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following 'false' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: 'stream' leaks here; was opened at [(20)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/19)
#  613|             }
#  614|             else {
#  615|->             fprintf(tool_stderr,
#  616|                       "curl: unknown --write-out variable: '%.*s'\n",
#  617|                       (int)vlen, ptr);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def381]
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘stream’
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following ‘false’ branch (when ‘writeinfo’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following ‘true’ branch (when ‘flen <= 511’)...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_resource: opened here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following ‘false’ branch (when ‘fclose_stream == 0’)...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following ‘false’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: ‘stream’ leaks here; was opened at [(20)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/19)
#  613|             }
#  614|             else {
#  615|->             fprintf(tool_stderr,
#  616|                       "curl: unknown --write-out variable: '%.*s'\n",
#  617|                       (int)vlen, ptr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following 'false' branch (when 'writeinfo' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following 'false' branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following 'true' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following 'true' branch (when 'flen <= 511')...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_memory: allocated here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following 'false' branch (when 'fclose_stream == 0')...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following 'true' branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following 'false' branch (when 'done == 0')...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following 'false' branch (when 'end' is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if 'curl_mfprintf' throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: 'stream' leaks here; was allocated at [(20)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/19)
#  613|             }
#  614|             else {
#  615|->             fprintf(tool_stderr,
#  616|                       "curl: unknown --write-out variable: '%.*s'\n",
#  617|                       (int)vlen, ptr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
curl-8.15.0/src/tool_writeout.c:615:13: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
curl-8.15.0/src/tool_writeout.c:549:5: branch_false: following ‘false’ branch (when ‘writeinfo’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:552:3: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:554:7: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:564:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:621:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:621:16: branch_false: following ‘false’ branch...
curl-8.15.0/src/tool_writeout.c:640:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:640:16: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:642:11: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:648:13: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:650:27: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:651:15: branch_true: following ‘true’ branch (when ‘flen <= 511’)...
curl-8.15.0/src/tool_writeout.c:653:15: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:655:25: acquire_memory: allocated here
curl-8.15.0/src/tool_writeout.c:657:17: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:659:19: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:659:19: branch_false: following ‘false’ branch (when ‘fclose_stream == 0’)...
curl-8.15.0/src/tool_writeout.c:665:13: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/tool_writeout.c:553:9: branch_true: ...to here
curl-8.15.0/src/tool_writeout.c:553:9: branch_false: following ‘false’ branch (when ‘done == 0’)...
curl-8.15.0/src/tool_writeout.c:554:7: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:569:13: branch_false: following ‘false’ branch (when ‘end’ is non-NULL)...
curl-8.15.0/src/tool_writeout.c:573:18: branch_false: ...to here
curl-8.15.0/src/tool_writeout.c:615:13: throw: if ‘curl_mfprintf’ throws an exception...
curl-8.15.0/src/tool_writeout.c:615:13: danger: ‘stream’ leaks here; was allocated at [(20)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/19)
#  613|             }
#  614|             else {
#  615|->             fprintf(tool_stderr,
#  616|                       "curl: unknown --write-out variable: '%.*s'\n",
#  617|                       (int)vlen, ptr);

Error: COMPILER_WARNING (CWE-704): [#def384]
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  647 |           end = strchr(ptr, '}');
#      |               ^
#  645|               ptr += 2;
#  646|             }
#  647|->           end = strchr(ptr, '}');
#  648|             if(end) {
#  649|               char fname[512]; /* holds the longest filename */

Error: COMPILER_WARNING (CWE-704): [#def385]
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  645|               ptr += 2;
#  646|             }
#  647|->           end = strchr(ptr, '}');
#  648|             if(end) {
#  649|               char fname[512]; /* holds the longest filename */

Error: COMPILER_WARNING (CWE-704): [#def386]
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  647 |           end = strchr(ptr, '}');
#      |               ^
#  645|               ptr += 2;
#  646|             }
#  647|->           end = strchr(ptr, '}');
#  648|             if(end) {
#  649|               char fname[512]; /* holds the longest filename */

Error: COMPILER_WARNING (CWE-704): [#def387]
curl-8.15.0/src/tool_writeout.c:647:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  645|               ptr += 2;
#  646|             }
#  647|->           end = strchr(ptr, '}');
#  648|             if(end) {
#  649|               char fname[512]; /* holds the longest filename */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
curl-8.15.0/src/var.c:133:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:133:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:133:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#  131|       else if(FUNCMATCH(f, FUNC_JSON, FUNC_JSON_LEN)) {
#  132|         f += FUNC_JSON_LEN;
#  133|->       curlx_dyn_reset(out);
#  134|         if(clen) {
#  135|           if(jsonquoted(c, clen, out, FALSE)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
curl-8.15.0/src/var.c:133:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:133:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:133:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#  131|       else if(FUNCMATCH(f, FUNC_JSON, FUNC_JSON_LEN)) {
#  132|         f += FUNC_JSON_LEN;
#  133|->       curlx_dyn_reset(out);
#  134|         if(clen) {
#  135|           if(jsonquoted(c, clen, out, FALSE)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
curl-8.15.0/src/var.c:135:12: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:135:12: throw: if 'jsonquoted' throws an exception...
curl-8.15.0/src/var.c:135:12: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#  133|         curlx_dyn_reset(out);
#  134|         if(clen) {
#  135|->         if(jsonquoted(c, clen, out, FALSE)) {
#  136|             err = PARAM_NO_MEM;
#  137|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
curl-8.15.0/src/var.c:135:12: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:135:12: throw: if ‘jsonquoted’ throws an exception...
curl-8.15.0/src/var.c:135:12: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#  133|         curlx_dyn_reset(out);
#  134|         if(clen) {
#  135|->         if(jsonquoted(c, clen, out, FALSE)) {
#  136|             err = PARAM_NO_MEM;
#  137|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
curl-8.15.0/src/var.c:143:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:143:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:143:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  141|       else if(FUNCMATCH(f, FUNC_URL, FUNC_URL_LEN)) {
#  142|         f += FUNC_URL_LEN;
#  143|->       curlx_dyn_reset(out);
#  144|         if(clen) {
#  145|           char *enc = curl_easy_escape(NULL, c, (int)clen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
curl-8.15.0/src/var.c:143:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:143:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:143:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  141|       else if(FUNCMATCH(f, FUNC_URL, FUNC_URL_LEN)) {
#  142|         f += FUNC_URL_LEN;
#  143|->       curlx_dyn_reset(out);
#  144|         if(clen) {
#  145|           char *enc = curl_easy_escape(NULL, c, (int)clen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
curl-8.15.0/src/var.c:145:21: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:145:21: throw: if 'curl_easy_escape' throws an exception...
curl-8.15.0/src/var.c:145:21: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#  143|         curlx_dyn_reset(out);
#  144|         if(clen) {
#  145|->         char *enc = curl_easy_escape(NULL, c, (int)clen);
#  146|           if(!enc) {
#  147|             err = PARAM_NO_MEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
curl-8.15.0/src/var.c:145:21: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:145:21: throw: if ‘curl_easy_escape’ throws an exception...
curl-8.15.0/src/var.c:145:21: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#  143|         curlx_dyn_reset(out);
#  144|         if(clen) {
#  145|->         char *enc = curl_easy_escape(NULL, c, (int)clen);
#  146|           if(!enc) {
#  147|             err = PARAM_NO_MEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
curl-8.15.0/src/var.c:152:12: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:152:12: throw: if 'curlx_dyn_add' throws an exception...
curl-8.15.0/src/var.c:152:12: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#  150|   
#  151|           /* put it in the output */
#  152|->         if(curlx_dyn_add(out, enc))
#  153|             err = PARAM_NO_MEM;
#  154|           curl_free(enc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
curl-8.15.0/src/var.c:152:12: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:152:12: throw: if ‘curlx_dyn_add’ throws an exception...
curl-8.15.0/src/var.c:152:12: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#  150|   
#  151|           /* put it in the output */
#  152|->         if(curlx_dyn_add(out, enc))
#  153|             err = PARAM_NO_MEM;
#  154|           curl_free(enc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
curl-8.15.0/src/var.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:154:9: throw: if 'curl_free' throws an exception...
curl-8.15.0/src/var.c:154:9: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/9)
#  152|           if(curlx_dyn_add(out, enc))
#  153|             err = PARAM_NO_MEM;
#  154|->         curl_free(enc);
#  155|           if(err)
#  156|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
curl-8.15.0/src/var.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:146:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:152:12: branch_false: ...to here
curl-8.15.0/src/var.c:154:9: throw: if ‘curl_free’ throws an exception...
curl-8.15.0/src/var.c:154:9: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/9)
#  152|           if(curlx_dyn_add(out, enc))
#  153|             err = PARAM_NO_MEM;
#  154|->         curl_free(enc);
#  155|           if(err)
#  156|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
curl-8.15.0/src/var.c:161:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:161:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:161:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
#  159|       else if(FUNCMATCH(f, FUNC_B64, FUNC_B64_LEN)) {
#  160|         f += FUNC_B64_LEN;
#  161|->       curlx_dyn_reset(out);
#  162|         if(clen) {
#  163|           char *enc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
curl-8.15.0/src/var.c:161:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:161:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:161:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
#  159|       else if(FUNCMATCH(f, FUNC_B64, FUNC_B64_LEN)) {
#  160|         f += FUNC_B64_LEN;
#  161|->       curlx_dyn_reset(out);
#  162|         if(clen) {
#  163|           char *enc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
curl-8.15.0/src/var.c:165:27: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:165:27: throw: if 'curlx_base64_encode' throws an exception...
curl-8.15.0/src/var.c:165:27: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
#  163|           char *enc;
#  164|           size_t elen;
#  165|->         CURLcode result = curlx_base64_encode(c, clen, &enc, &elen);
#  166|           if(result) {
#  167|             err = PARAM_NO_MEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
curl-8.15.0/src/var.c:165:27: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:165:27: throw: if ‘curlx_base64_encode’ throws an exception...
curl-8.15.0/src/var.c:165:27: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
#  163|           char *enc;
#  164|           size_t elen;
#  165|->         CURLcode result = curlx_base64_encode(c, clen, &enc, &elen);
#  166|           if(result) {
#  167|             err = PARAM_NO_MEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
curl-8.15.0/src/var.c:172:12: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:172:12: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/var.c:172:12: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
#  170|   
#  171|           /* put it in the output */
#  172|->         if(curlx_dyn_addn(out, enc, elen))
#  173|             err = PARAM_NO_MEM;
#  174|           curl_free(enc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
curl-8.15.0/src/var.c:172:12: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:172:12: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/var.c:172:12: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
#  170|   
#  171|           /* put it in the output */
#  172|->         if(curlx_dyn_addn(out, enc, elen))
#  173|             err = PARAM_NO_MEM;
#  174|           curl_free(enc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
curl-8.15.0/src/var.c:174:9: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:174:9: throw: if 'curl_free' throws an exception...
curl-8.15.0/src/var.c:174:9: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/9)
#  172|           if(curlx_dyn_addn(out, enc, elen))
#  173|             err = PARAM_NO_MEM;
#  174|->         curl_free(enc);
#  175|           if(err)
#  176|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
curl-8.15.0/src/var.c:174:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:166:11: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:172:12: branch_false: ...to here
curl-8.15.0/src/var.c:174:9: throw: if ‘curl_free’ throws an exception...
curl-8.15.0/src/var.c:174:9: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/9)
#  172|           if(curlx_dyn_addn(out, enc, elen))
#  173|             err = PARAM_NO_MEM;
#  174|->         curl_free(enc);
#  175|           if(err)
#  176|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
curl-8.15.0/src/var.c:181:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:181:7: throw: if 'curlx_dyn_reset' throws an exception...
curl-8.15.0/src/var.c:181:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
#  179|       else if(FUNCMATCH(f, FUNC_64DEC, FUNC_64DEC_LEN)) {
#  180|         f += FUNC_64DEC_LEN;
#  181|->       curlx_dyn_reset(out);
#  182|         if(clen) {
#  183|           unsigned char *enc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
curl-8.15.0/src/var.c:181:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:181:7: throw: if ‘curlx_dyn_reset’ throws an exception...
curl-8.15.0/src/var.c:181:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
#  179|       else if(FUNCMATCH(f, FUNC_64DEC, FUNC_64DEC_LEN)) {
#  180|         f += FUNC_64DEC_LEN;
#  181|->       curlx_dyn_reset(out);
#  182|         if(clen) {
#  183|           unsigned char *enc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
curl-8.15.0/src/var.c:185:27: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:185:27: throw: if 'curlx_base64_decode' throws an exception...
curl-8.15.0/src/var.c:185:27: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
#  183|           unsigned char *enc;
#  184|           size_t elen;
#  185|->         CURLcode result = curlx_base64_decode(c, &enc, &elen);
#  186|           /* put it in the output */
#  187|           if(result) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
curl-8.15.0/src/var.c:185:27: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:185:27: throw: if ‘curlx_base64_decode’ throws an exception...
curl-8.15.0/src/var.c:185:27: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
#  183|           unsigned char *enc;
#  184|           size_t elen;
#  185|->         CURLcode result = curlx_base64_decode(c, &enc, &elen);
#  186|           /* put it in the output */
#  187|           if(result) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
curl-8.15.0/src/var.c:188:14: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:188:14: throw: if 'curlx_dyn_add' throws an exception...
curl-8.15.0/src/var.c:188:14: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
#  186|           /* put it in the output */
#  187|           if(result) {
#  188|->           if(curlx_dyn_add(out, "[64dec-fail]"))
#  189|               err = PARAM_NO_MEM;
#  190|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
curl-8.15.0/src/var.c:188:14: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:188:14: throw: if ‘curlx_dyn_add’ throws an exception...
curl-8.15.0/src/var.c:188:14: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
#  186|           /* put it in the output */
#  187|           if(result) {
#  188|->           if(curlx_dyn_add(out, "[64dec-fail]"))
#  189|               err = PARAM_NO_MEM;
#  190|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
curl-8.15.0/src/var.c:192:14: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:192:14: throw: if 'curlx_dyn_addn' throws an exception...
curl-8.15.0/src/var.c:192:14: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
#  190|           }
#  191|           else {
#  192|->           if(curlx_dyn_addn(out, enc, elen))
#  193|               err = PARAM_NO_MEM;
#  194|             curl_free(enc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
curl-8.15.0/src/var.c:192:14: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:192:14: throw: if ‘curlx_dyn_addn’ throws an exception...
curl-8.15.0/src/var.c:192:14: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
#  190|           }
#  191|           else {
#  192|->           if(curlx_dyn_addn(out, enc, elen))
#  193|               err = PARAM_NO_MEM;
#  194|             curl_free(enc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
curl-8.15.0/src/var.c:194:11: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:194:11: throw: if 'curl_free' throws an exception...
curl-8.15.0/src/var.c:194:11: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
#  192|             if(curlx_dyn_addn(out, enc, elen))
#  193|               err = PARAM_NO_MEM;
#  194|->           curl_free(enc);
#  195|           }
#  196|           if(err)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
curl-8.15.0/src/var.c:194:11: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:179:12: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:194:11: throw: if ‘curl_free’ throws an exception...
curl-8.15.0/src/var.c:194:11: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
#  192|             if(curlx_dyn_addn(out, enc, elen))
#  193|               err = PARAM_NO_MEM;
#  194|->           curl_free(enc);
#  195|           }
#  196|           if(err)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
curl-8.15.0/src/var.c:202:7: warning[-Wanalyzer-malloc-leak]: leak of 'c'
curl-8.15.0/src/var.c:92:23: enter_function: entry to 'varfunc'
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following 'false' branch (when 'alloc == 0')...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling 'Memdup' from 'varfunc'
curl-8.15.0/src/var.c:211:9: return_function: returning to 'varfunc' from 'Memdup'
curl-8.15.0/src/var.c:212:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following 'true' branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following 'false' branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:202:7: throw: if 'errorf' throws an exception...
curl-8.15.0/src/var.c:202:7: danger: 'c' leaks here; was allocated at [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
#  200|       else {
#  201|         /* unsupported function */
#  202|->       errorf(global, "unknown variable function in '%.*s'",
#  203|                (int)flen, finput);
#  204|         err = PARAM_EXPAND_ERROR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
curl-8.15.0/src/var.c:202:7: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
curl-8.15.0/src/var.c:92:23: enter_function: entry to ‘varfunc’
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:207:7: branch_false: following ‘false’ branch (when ‘alloc == 0’)...
curl-8.15.0/src/var.c:210:12: branch_false: ...to here
curl-8.15.0/src/var.c:211:9: call_function: calling ‘Memdup’ from ‘varfunc’
curl-8.15.0/src/var.c:211:9: return_function: returning to ‘varfunc’ from ‘Memdup’
curl-8.15.0/src/var.c:212:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:212:7: branch_false: ...to here
curl-8.15.0/src/var.c:104:9: branch_true: following ‘true’ branch...
curl-8.15.0/src/var.c:105:7: branch_true: ...to here
curl-8.15.0/src/var.c:105:7: branch_false: following ‘false’ branch...
curl-8.15.0/src/var.c:111:5: branch_false: ...to here
curl-8.15.0/src/var.c:202:7: throw: if ‘errorf’ throws an exception...
curl-8.15.0/src/var.c:202:7: danger: ‘c’ leaks here; was allocated at [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
#  200|       else {
#  201|         /* unsupported function */
#  202|->       errorf(global, "unknown variable function in '%.*s'",
#  203|                (int)flen, finput);
#  204|         err = PARAM_EXPAND_ERROR;

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-129.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecurl-8.18.0-1.fc44
diffbase-store-results-to/tmp/tmp3em2bcj2/curl-8.18.0-1.fc44.tar.xz
diffbase-time-created2026-01-08 15:48:26
diffbase-time-finished2026-01-08 15:53:22
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp3em2bcj2/curl-8.18.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3em2bcj2/curl-8.18.0-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-129.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-x86_64
project-namecurl-8.15.0-2.fc43
store-results-to/tmp/tmptwcrszat/curl-8.15.0-2.fc43.tar.xz
time-created2026-01-08 15:42:17
time-finished2026-01-08 15:47:36
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmptwcrszat/curl-8.15.0-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptwcrszat/curl-8.15.0-2.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9