[xiph-cvs] cvs commit: vorbis/lib psy.c

Michael Smith msmith at xiph.org
Sun Sep 2 02:07:59 PDT 2001



msmith      01/09/02 02:07:58

  Modified:    lib      psy.c
  Log:
  Plug memory leak located by oddsock at oddsock.org.
  Should p->noisethresh just be removed completely? It doesn't appear to be used
  (currently, at least).

Revision  Changes    Path
1.53      +3 -2      vorbis/lib/psy.c

Index: psy.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/psy.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- psy.c	2001/09/01 06:14:50	1.52
+++ psy.c	2001/09/02 09:07:58	1.53
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: psychoacoustics not including preecho
- last mod: $Id: psy.c,v 1.52 2001/09/01 06:14:50 xiphmont Exp $
+ last mod: $Id: psy.c,v 1.53 2001/09/02 09:07:58 msmith Exp $
 
  ********************************************************************/
 
@@ -429,8 +429,9 @@
         _ogg_free(p->tonecurves[i]);
       }
       _ogg_free(p->tonecurves);
-      _ogg_free(p->noiseoffset);
     }
+    _ogg_free(p->noiseoffset);
+    _ogg_free(p->noisethresh);
     memset(p,0,sizeof(vorbis_look_psy));
   }
 }

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list