Revision: 44751
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44751&view=rev
Author:   erikgreenwald
Date:     2011-06-06 20:10:25 +0000 (Mon, 06 Jun 2011)

Log Message:
-----------
free "tmp_basename" instead of stack allocated "buffer".

Modified Paths:
--------------
    brlcad/trunk/src/libbu/brlcad_path.c

Modified: brlcad/trunk/src/libbu/brlcad_path.c
===================================================================
--- brlcad/trunk/src/libbu/brlcad_path.c        2011-06-06 20:09:41 UTC (rev 
44750)
+++ brlcad/trunk/src/libbu/brlcad_path.c        2011-06-06 20:10:25 UTC (rev 
44751)
@@ -212,7 +212,7 @@
     if (bu_progname[0] != '\0') {
        tmp_basename = bu_basename(bu_progname);
        bu_strlcpy(buffer, tmp_basename, strlen(tmp_basename)+1);
-       bu_free(buffer, "tmp_basename free");
+       bu_free(tmp_basename, "tmp_basename free");
        return buffer;
     }
 


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

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to