Revision: 48490
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48490&view=rev
Author:   erikgreenwald
Date:     2012-01-12 14:21:43 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
close colorfile after reading it (resource leak Cov462)

Modified Paths:
--------------
    brlcad/trunk/src/burst/ui.c

Modified: brlcad/trunk/src/burst/ui.c
===================================================================
--- brlcad/trunk/src/burst/ui.c 2012-01-12 14:21:15 UTC (rev 48489)
+++ brlcad/trunk/src/burst/ui.c 2012-01-12 14:21:43 UTC (rev 48490)
@@ -734,6 +734,7 @@
     };
     Input *ip = input;
     FILE *colorfp;
+
     if (getInput(ip))
        bu_strlcpy(colorfile, ip->buffer, LNBUFSZ);
     else
@@ -751,6 +752,7 @@
     logCmd(scrbuf);
     notify("Reading ident-to-color mappings", NOTIFY_APPEND);
     readColors(&colorids, colorfp);
+    fclose(colorfp);
     notify(NULL, NOTIFY_DELETE);
     return;
 }

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


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to