switch malloc/free for new/delete
Bug #1094633 reported by
Andrew Hutchings
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle Client & Protocol Library |
Fix Released
|
High
|
Andrew Hutchings |
Bug Description
Request from Brian:
things like:
con= new (std::nothrow) drizzle_st;
We get constructors... but don't take the hit with throw.
The one thing about it... we don't have throw... which means that we have to make sure that construction always happens. So either we have to do init() methods for failure... or just design objects to be simple.
Related branches
lp:~linuxjedi/libdrizzle/5.1-malloc-replace
- Drizzle Trunk: Pending requested
-
Diff: 735 lines (+180/-159)12 files modifiedlibdrizzle-5.1/constants.h (+4/-3)
libdrizzle/binlog.cc (+1/-1)
libdrizzle/column.cc (+3/-22)
libdrizzle/command.cc (+1/-1)
libdrizzle/common.h (+1/-0)
libdrizzle/conn.cc (+24/-4)
libdrizzle/drizzle.cc (+3/-51)
libdrizzle/field.cc (+1/-1)
libdrizzle/handshake.cc (+2/-2)
libdrizzle/result.cc (+5/-37)
libdrizzle/statement.cc (+21/-29)
libdrizzle/structs.h (+114/-8)
Changed in libdrizzle: | |
status: | Triaged → Fix Committed |
Changed in libdrizzle: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
needed to fix bug #1098886