Commit 62e4f35
Fix memory management in RawPacket (#1709)
Ensure that the destructor and assignment operator correctly handle the
deletion of raw data based on the m_DeleteRawDataAtDestructor flag by using
the updated clear() method.
Update comments to reflect these changes.
Co-authored-by: seladb <pcapplusplus@gmail.com>1 parent 49ac8ef commit 62e4f35
2 files changed
+8
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 314 | + | |
| 315 | + | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
| |||
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
426 | | - | |
427 | | - | |
| 425 | + | |
428 | 426 | | |
429 | 427 | | |
430 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| |||
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 57 | + | |
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
| |||
104 | 98 | | |
105 | 99 | | |
106 | 100 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 101 | + | |
114 | 102 | | |
| 103 | + | |
115 | 104 | | |
116 | 105 | | |
117 | 106 | | |
| |||
129 | 118 | | |
130 | 119 | | |
131 | 120 | | |
132 | | - | |
| 121 | + | |
133 | 122 | | |
134 | 123 | | |
135 | 124 | | |
| |||
0 commit comments