codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

can't mix g_ and non-g_ memory management #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
glib lets you substitute in an alternate allocator (via
g_mem_set_vtable()), if your app wants to do something funky with memory.
Although this is not widely used, it's still considered wrong to use free()
on memory returned from g_malloc(), or g_free() on memory returned
malloc(), since they might not be equivalent. plugins/gnome.c is very
careless about this.

the patch also fixes a use of "strdup" in lib/misc.c to use px_strdup
instead, to clean up a warning

Original issue reported on code.google.com by dan.wins...@gmail.com on 6 Oct 2008 at 5:09

Attachments:

GoogleCodeExporter commented 9 years ago
Dan,

Thank you very much for your patch.
-> Submitted as r269

Original comment by dominiqu...@gmail.com on 6 Oct 2008 at 6:14