diff --git a/sourcepawn/jit/engine2.cpp b/sourcepawn/jit/engine2.cpp index eeae092e4..25957f052 100644 --- a/sourcepawn/jit/engine2.cpp +++ b/sourcepawn/jit/engine2.cpp @@ -119,10 +119,13 @@ IPluginRuntime *SourcePawnEngine2::LoadPlugin(ICompilation *co, const char *file pRuntime->ApplyCompilationOptions(co); + fclose(fp); + return pRuntime; return_error: *err = error; + fclose(fp); return NULL; }