]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/mapread.c
Bump into issue with allocating pcx file buffer~ ><; but file reading is good but...
[16.git] / src / lib / mapread.c
index 6a947d67bbe7e27c6300607c82952e4b89629d45..cd4f5c30222df31186c55e183dff1a1360934a6a 100644 (file)
@@ -164,14 +164,14 @@ again:
                        }
                } else {
                        //printf("================================================================================%s================================================================================", js);
-                       js_sv=malloc(sizeof(char)*10);
+                       //js_sv=malloc(sizeof(char)*10);
                        dump(js, tok, p.toknext, 0, map, 0);
                        eof_expected = 1;
                }
        }
 
-       //free(js);
-       //free(tok);
+       free(js);
+       free(tok);
        fclose(fh);
 
        return 0;