From 9a33c5c346c758d430fee33358c3a95b39bd4348 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Tue, 8 Jun 2010 21:01:41 -0400 Subject: [PATCH] Remove unnecessary free of global stack on error --- libcelt/modes.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libcelt/modes.c b/libcelt/modes.c index cba93435..85a87535 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c @@ -280,10 +280,7 @@ CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error) ALLOC_STACK; #if !defined(VAR_ARRAYS) && !defined(USE_ALLOCA) if (global_stack==NULL) - { - celt_free(global_stack); goto failure; - } #endif for (i=0;i