|
From: <sm...@us...> - 2009-02-12 20:45:43
|
Revision: 9516
http://plplot.svn.sourceforge.net/plplot/?rev=9516&view=rev
Author: smekal
Date: 2009-02-12 20:45:32 +0000 (Thu, 12 Feb 2009)
Log Message:
-----------
Bug fix where unallocated memory was freed.
Modified Paths:
--------------
trunk/bindings/lua/plplotluac.i
Modified: trunk/bindings/lua/plplotluac.i
===================================================================
--- trunk/bindings/lua/plplotluac.i 2009-02-12 20:44:18 UTC (rev 9515)
+++ trunk/bindings/lua/plplotluac.i 2009-02-12 20:45:32 UTC (rev 9516)
@@ -367,7 +367,7 @@
if (*ny!=SWIG_itable_size(L,-1)) {
lua_pop(L,1);
lua_pushstring(L,"inconsistent table sizes");
- for (j = 0; j < *ny; j++)
+ for (j = 0; j < i; j++)
LUA_FREE_ARRAY(matrix[j]);
LUA_FREE_ARRAY(matrix);
return NULL;
@@ -380,7 +380,7 @@
} else {
lua_pop(L,1);
lua_pushstring(L,"table must contain numbers");
- for (j = 0; j < *ny; j++)
+ for (j = 0; j < i+1; j++)
LUA_FREE_ARRAY(matrix[j]);
LUA_FREE_ARRAY(matrix);
return NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|