Commit f722f64
Jaideep Karande
BUG#36532199: There is a memory leak defect at line 560 in the file /xcom/gcs_xcom_networking
Description: Fixed a memory leak in Gcs_ip_allowlist_entry_hostname::get_value. Previously, the function returned nullptr on error without freeing the allocated memory for a vector. This commit modifies Gcs_ip_allowlist_entry_hostname::get_value to properly delete the vector before returning nullptr in error cases. Change-Id: Iab0076839cccb6c4af7feb3640788ee977f0e9ce1 parent 678c193 commit f722f64
File tree
1 file changed
+4
-1
lines changed- plugin/group_replication/libmysqlgcs/src/bindings/xcom
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
562 | 565 | | |
563 | 566 | | |
564 | 567 | | |
| |||
0 commit comments