[PD-dev] [ pure-data-Patches-1930769 ] 0.41-4 fix memory leak with array sinesum/cosinesum

SourceForge.net noreply at sourceforge.net
Wed Apr 16 01:51:07 CEST 2008


Patches item #1930769, was opened at 2008-03-31 22:09
Message generated for change (Comment added) made by eighthave
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1930769&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: puredata
Group: bugfix
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Thomas Grill (xovo)
Assigned to: Miller Puckette (millerpuckette)
Summary: 0.41-4 fix memory leak with array sinesum/cosinesum

Initial Comment:
svecs are allocated twice....



--- ../src.ori/g_array.c        2008-03-15 01:03:00.000000000 +0100
+++ g_array.c   2008-04-01 04:05:50.000000000 +0200
@@ -1221,7 +1221,7 @@
 
 static void garray_sinesum(t_garray *x, t_symbol *s, int argc, t_atom *argv)
 {    
-    t_float *svec = (t_float *)t_getbytes(sizeof(t_float) * argc);
+    t_float *svec;
     int npoints, i;
     if (argc < 2)
     {
@@ -1244,7 +1244,7 @@
 
 static void garray_cosinesum(t_garray *x, t_symbol *s, int argc, t_atom *argv)
 {
-    t_float *svec = (t_float *)t_getbytes(sizeof(t_float) * argc);
+    t_float *svec;
     int npoints, i;
     if (argc < 2)
     {



----------------------------------------------------------------------

>Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-04-15 19:51

Message:
Logged In: YES 
user_id=27104
Originator: NO

checked this into branches/pd-extended/0.40

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1930769&group_id=55736




More information about the Pd-dev mailing list