Revision: 65105
http://sourceforge.net/p/brlcad/code/65105
Author: starseeker
Date: 2015-05-29 21:46:21 +0000 (Fri, 29 May 2015)
Log Message:
-----------
fix bu_free strings
Modified Paths:
--------------
brlcad/trunk/src/libbu/opt.c
Modified: brlcad/trunk/src/libbu/opt.c
===================================================================
--- brlcad/trunk/src/libbu/opt.c 2015-05-29 20:54:18 UTC (rev 65104)
+++ brlcad/trunk/src/libbu/opt.c 2015-05-29 21:46:21 UTC (rev 65105)
@@ -520,10 +520,10 @@
{
if (!d) return;
if (d->shortopt) bu_free((char *)d->shortopt, "shortopt");
- if (d->longopt) bu_free((char *)d->longopt, "shortopt");
- if (d->shortopt_doc) bu_free((char *)d->shortopt_doc, "shortopt");
- if (d->longopt_doc) bu_free((char *)d->longopt_doc, "shortopt");
- if (d->help_string) bu_free((char *)d->help_string, "shortopt");
+ if (d->longopt) bu_free((char *)d->longopt, "longopt");
+ if (d->shortopt_doc) bu_free((char *)d->shortopt_doc, "shortopt_doc");
+ if (d->longopt_doc) bu_free((char *)d->longopt_doc, "longopt_doc");
+ if (d->help_string) bu_free((char *)d->help_string, "help_string");
}
void
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits