Revision: 56476
          http://sourceforge.net/p/brlcad/code/56476
Author:   mohitdaga
Date:     2013-08-02 17:00:47 +0000 (Fri, 02 Aug 2013)
Log Message:
-----------
Fix buffer freeing issue.

Modified Paths:
--------------
    brlcad/trunk/src/util/pixshrink.c

Modified: brlcad/trunk/src/util/pixshrink.c
===================================================================
--- brlcad/trunk/src/util/pixshrink.c   2013-08-02 15:50:46 UTC (rev 56475)
+++ brlcad/trunk/src/util/pixshrink.c   2013-08-02 17:00:47 UTC (rev 56476)
@@ -154,7 +154,6 @@
            p[2] = buffer[t+2];
        }
 
-    bu_free(p, "p");
 }
 
 
@@ -262,6 +261,7 @@
     }
 
     write_image(width/factor, height/factor, buffer);
+    bu_free(buffer, "pixshrink: buffer");      
     return 0;
 }
 

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


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to