From 3bc866b62391d4427c098ca62e1d7962a769fdca Mon Sep 17 00:00:00 2001 From: Pan7 Date: Tue, 21 Feb 2017 18:45:49 +0100 Subject: [PATCH] Don't free buffer of another scope (#401) --- libs/picomodel/picomodel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/picomodel/picomodel.c b/libs/picomodel/picomodel.c index b8f185cd..8fad3383 100644 --- a/libs/picomodel/picomodel.c +++ b/libs/picomodel/picomodel.c @@ -151,7 +151,6 @@ picoModel_t *PicoModuleLoadModel( const picoModule_t* pm, char* fileName, picoBy /* use loader provided by module to read the model data */ picoModel_t* model = pm->load( fileName, frameNum, buffer, bufSize ); if ( model == NULL ) { - _pico_free_file( buffer ); return NULL; }