Browse code

oss-fuzz - 16516 - Fix egg archive memory leak.

Micah Snyder (micasnyd) authored on 2020/01/24 11:17:36
Showing 1 changed files
... ...
@@ -2846,10 +2846,6 @@ void cli_egg_close(void* hArchive)
2846 2846
     }
2847 2847
 
2848 2848
     handle = (egg_handle*)hArchive;
2849
-    if (CL_SUCCESS != EGG_VALIDATE_HANDLE(handle)) {
2850
-        cli_errmsg("cli_egg_close: Invalid handle values!\n");
2851
-        return;
2852
-    }
2853 2849
 
2854 2850
     egg_free_egg_handle(handle);
2855 2851