ref: 9a33c5c346c758d430fee33358c3a95b39bd4348
parent: e2d5b337800a4be47950bd7f0c7ca1e480d65dc6
author: Jean-Marc Valin <[email protected]>
date: Tue Jun 8 17:01:41 EDT 2010
Remove unnecessary free of global stack on error
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -280,10 +280,7 @@
ALLOC_STACK;
#if !defined(VAR_ARRAYS) && !defined(USE_ALLOCA)
if (global_stack==NULL)
- {
- celt_free(global_stack);
goto failure;
- }
#endif
for (i=0;i<TOTAL_MODES;i++)
{
@@ -314,10 +311,7 @@
ALLOC_STACK;
#if !defined(VAR_ARRAYS) && !defined(USE_ALLOCA)
if (global_stack==NULL)
- {
- celt_free(global_stack);
goto failure;
- }
#endif
/* The good thing here is that permutation of the arguments will automatically be invalid */