Commit c40fc1d
Fix memory leak in redis_serialize().
redis_serialize() leaks the zend_string within z_copy in the
redis_sock->serializer == REDIS_SERIALIZER_NONE case when z is not an
IS_STRING. Instead, redis_serialize() should take a copy of the string, return
that with the flag telling the caller to free the string when it's done with
it, and destroy z_copy.1 parent b09e07b commit c40fc1d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2019 | 2019 | | |
2020 | 2020 | | |
2021 | 2021 | | |
2022 | | - | |
| 2022 | + | |
2023 | 2023 | | |
2024 | | - | |
| 2024 | + | |
| 2025 | + | |
2025 | 2026 | | |
2026 | 2027 | | |
2027 | 2028 | | |
| |||
0 commit comments