]> git.llucax.com Git - z.facultad/75.06/jacu.git/blobdiff - src/statichuff/main_bychunk.c
Zero Leaks
[z.facultad/75.06/jacu.git] / src / statichuff / main_bychunk.c
index f2fca8678b8ce371aa8538e8c9c221d97a2146c1..e0f1e2850601f4d4a9f6b436cee2f8046c872023 100644 (file)
@@ -74,8 +74,7 @@ int main(int argc, char* argv[])
                shuff_deinit_encoder(shuff);
                
                /* Free mem allocated by main */
-               free(shuff);
-               free(chunk);
+               free(shuff);            
                
                /* Close files opened by main */
                fclose(fp);
@@ -96,8 +95,10 @@ int main(int argc, char* argv[])
                
                /* Deinit decoder */
                shuff_deinit_decoder(shuff);
-               free(shuff);
+               free(shuff);            
        }
-               
+       
+       /* Free mem */
+       free(chunk);            
        return 0;
 }