Ignore:
Timestamp:
Mar 22, 2008, 10:39:25 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of jmalloc and replace it with standard malloc. Modern operating systems certainly perform a lot better than this custom implementation, and we have superior tools (eg. valgrind) to debug and profile memory usage without interfering with the code itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/gamma.cpp

    r123 r129  
    167167            FILE *fp;
    168168
    169             gammapath = (char *)jmalloc(strlen(get_save_filename_prefix()) + 10, "gammapath");
     169            gammapath = (char *)malloc(strlen(get_save_filename_prefix()) + 10);
    170170            sprintf(gammapath, "%sgamma.lsp", get_save_filename_prefix());
    171171            fp = open_FILE(gammapath, "wb");
     
    184184                dprintf("Unable to write to file gamma.lsp\n");
    185185            }
    186             jfree(gammapath);
     186            free(gammapath);
    187187        }
    188188    }
Note: See TracChangeset for help on using the changeset viewer.