Revision: 41339
http://brlcad.svn.sourceforge.net/brlcad/?rev=41339&view=rev
Author: brlcad
Date: 2010-11-12 21:45:35 +0000 (Fri, 12 Nov 2010)
Log Message:
-----------
alloc AND free.. and pass the right params.
Modified Paths:
--------------
brlcad/trunk/src/libtclcad/ged_obj.c
Modified: brlcad/trunk/src/libtclcad/ged_obj.c
===================================================================
--- brlcad/trunk/src/libtclcad/ged_obj.c 2010-11-12 21:41:43 UTC (rev
41338)
+++ brlcad/trunk/src/libtclcad/ged_obj.c 2010-11-12 21:45:35 UTC (rev
41339)
@@ -8255,7 +8255,7 @@
/* initialize result */
bu_vls_trunc(&gedp->ged_result_str, 0);
- av = bu_calloc(argc+1, sizeof(char *));
+ av = bu_calloc(argc+1, sizeof(char *), "alloc av copy");
/* must be wanting help */
if (argc == 1) {
@@ -8288,6 +8288,8 @@
av[i-1] = (char *)0;
ret = (*func)(gedp, ac, (const char **)av);
+ bu_free(av, "free av copy");
+
/* Keep the view's perspective in sync with its corresponding display
manager */
gdvp->gdv_dmp->dm_perspective = gdvp->gdv_view->gv_perspective;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits