Author: paultcochrane
Date: Thu Oct  4 23:33:39 2007
New Revision: 21875

Modified:
   trunk/src/pmc/class.pmc

Log:
[pmc] Fixing a resource leak from not freeing a variable.  Found by Coverity
in CID 129 (run 0.4.16).


Modified: trunk/src/pmc/class.pmc
==============================================================================
--- trunk/src/pmc/class.pmc     (original)
+++ trunk/src/pmc/class.pmc     Thu Oct  4 23:33:39 2007
@@ -714,6 +714,9 @@
                 break;
             }
         }
+
+        string_cstring_free(c_name);
+
         if (!found)
             real_exception(interp, NULL, METH_NOT_FOUND,
                 "'%S' is not a valid vtable function name.", name);

Reply via email to