Revision: 55328
http://sourceforge.net/p/brlcad/code/55328
Author: bob1961
Date: 2013-05-08 15:05:59 +0000 (Wed, 08 May 2013)
Log Message:
-----------
Mods to annotate command ---> Check gedp before using. Also fixed a core dump
issue caused by freeing memory twice.
Modified Paths:
--------------
brlcad/trunk/src/libged/annotate.c
Modified: brlcad/trunk/src/libged/annotate.c
===================================================================
--- brlcad/trunk/src/libged/annotate.c 2013-05-08 14:56:01 UTC (rev 55327)
+++ brlcad/trunk/src/libged/annotate.c 2013-05-08 15:05:59 UTC (rev 55328)
@@ -127,6 +127,7 @@
int object_count = 0;
int i;
+ GED_CHECK_DATABASE_OPEN(gedp, GED_ERROR);
GED_CHECK_ARGC_GT_0(gedp, argc, GED_ERROR);
/* initialize result */
@@ -138,7 +139,6 @@
return GED_HELP;
}
- GED_CHECK_DATABASE_OPEN(gedp, GED_ERROR);
GED_CHECK_READ_ONLY(gedp, GED_ERROR);
/* stash objects, quoting them if they include spaces */
@@ -163,7 +163,7 @@
}
bu_vls_free(&objects);
- bu_free_argv(object_count+1, object_argv);
+ bu_free((genptr_t)object_argv, "ged_annotate");
return GED_OK;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits