Ticket #1900 (closed enhancement: wontfix)
replacing-free-by-g_free
| Reported by: | vit_r | Owned by: | vit_r |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | mc-core | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Branch state: | Votes for changeset: |
Description
Look patchname
Attachments
Change History
comment:1 follow-up: ↓ 3 Changed 16 years ago by vit_r
( src/util.h: #define MC_PTR_FREE(ptr) do { g_free(ptr); (ptr) = NULL; } while (0) )
Suggestion:
Lets replace all g_free by MC_PTR_FREE
comment:2 Changed 16 years ago by andrew_b
Please, don't fill the "Assign to:" field when you create a new ticket.
Don't fix the Samba codebase -- it will be removed soon.
Lets replace all g_free by MC_PTR_FREE
Often no need to set pointer to NULL after memory deallocation.
Note: See
TracTickets for help on using
tickets.
