Opened 19 years ago
Closed 19 years ago
Last modified 18 years ago
#3552 closed patch (fixed)
Fix erroneous usage of free() instead of delete
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | unknown |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
There are two arrays in libs/libmyth/jsmenu.cpp that were allocated with new, but get free'd using free() instead of delete. The results of using free() on a buffer allocated with new are undefined. The attached patch changes the two places in question to use delete, instead.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.

(In [13563]) Replace a couple free() calls with delete [].
Closes #3552 using patch by Russell Bryant.