Closed Zard-C closed 1 year ago
Merging #386 (3a1d6cb) into humble (27703c2) will decrease coverage by
0.08%
. Report is 2 commits behind head on humble. The diff coverage isn/a
.
@@ Coverage Diff @@
## humble #386 +/- ##
==========================================
- Coverage 69.13% 69.06% -0.08%
==========================================
Files 16 16
Lines 2715 2715
Branches 765 765
==========================================
- Hits 1877 1875 -2
- Misses 451 452 +1
- Partials 387 388 +1
@Zard-C thank you for this pull request!
@mergifyio backport rolling
backport rolling
Fix bug: memory leaking while msg.data allocation.
This bug is caused by using malloc allocate memory for the std_msg.data.data, but we call std_msgsmsgString__init(), msg.data.data was allocated a block memory which size is 1, thus we should use allocator.reallocate to reallocate memory for msg.data.data.
Fixes #385
Signed-off-by: Zard-C patrick.zhang5233@gmail.com