Revision: 54550
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54550&view=rev
Author:   brlcad
Date:     2013-03-07 03:05:25 +0000 (Thu, 07 Mar 2013)
Log Message:
-----------
NMG allocations are wrapped in get/put allocations, so release with put, not 
with bu_free

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c

Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c    2013-03-07 02:56:02 UTC 
(rev 54549)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c    2013-03-07 03:05:25 UTC 
(rev 54550)
@@ -3388,7 +3388,7 @@
     bu_ptbl_free(&shell_tbl);
     while (BU_LIST_WHILE(rad, nmg_radial, &list1)) {
        BU_LIST_DEQUEUE(&rad->l);
-       bu_free((char *)rad, "nmg_radial");
+       BU_PUT(rad, struct nmg_radial);
     }
     return;
 }
@@ -3494,7 +3494,7 @@
        /* Release the storage */
        while (BU_LIST_WHILE(rad, nmg_radial, &list)) {
            BU_LIST_DEQUEUE(&rad->l);
-           bu_free((char *)rad, "nmg_radial");
+           BU_PUT(rad, struct nmg_radial);
        }
     }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to