summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7b74af1)
logging mallocs.
git-svn-id: svn://svn.tartarus.org/sgt/putty@1564
cda61777-01e9-0310-a592-
d414129be87e
#ifdef MALLOC_LOG
sprintf(str, "Out of memory! (%s:%d, size=%d)",
mlog_file, mlog_line, size);
#ifdef MALLOC_LOG
sprintf(str, "Out of memory! (%s:%d, size=%d)",
mlog_file, mlog_line, size);
+ fprintf(fp, "*** %s\n", str);
+ fclose(fp);
#else
strcpy(str, "Out of memory!");
#endif
#else
strcpy(str, "Out of memory!");
#endif
#ifdef MALLOC_LOG
sprintf(str, "Out of memory! (%s:%d, size=%d)",
mlog_file, mlog_line, size);
#ifdef MALLOC_LOG
sprintf(str, "Out of memory! (%s:%d, size=%d)",
mlog_file, mlog_line, size);
+ fprintf(fp, "*** %s\n", str);
+ fclose(fp);
#else
strcpy(str, "Out of memory!");
#endif
#else
strcpy(str, "Out of memory!");
#endif