Loading src/common/log.c +7 −7 Original line number Diff line number Diff line Loading @@ -116,14 +116,14 @@ void _log_fn(int severity, const char *fn, const char *format, ...) void close_logs() { logfile_t *next, *lf; for (lf = logfiles; lf; lf = lf->next) { if (lf->needs_close) fclose(lf->file); next = lf->next; free(lf); logfile_t *victim; while(logfiles) { victim = logfiles; logfiles = logfiles->next; if (victim->needs_close) fclose(victim->file); free(victim); } logfiles = NULL; } void reset_logs() Loading src/common/util.c +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ void *tor_malloc(size_t size) { log_fn(LOG_ERR, "Out of memory. Dying."); exit(1); } memset(result,'X',size); /* XXX deadbeef to encourage bugs */ // memset(result,'X',size); /* deadbeef to encourage bugs */ return result; } Loading Loading
src/common/log.c +7 −7 Original line number Diff line number Diff line Loading @@ -116,14 +116,14 @@ void _log_fn(int severity, const char *fn, const char *format, ...) void close_logs() { logfile_t *next, *lf; for (lf = logfiles; lf; lf = lf->next) { if (lf->needs_close) fclose(lf->file); next = lf->next; free(lf); logfile_t *victim; while(logfiles) { victim = logfiles; logfiles = logfiles->next; if (victim->needs_close) fclose(victim->file); free(victim); } logfiles = NULL; } void reset_logs() Loading
src/common/util.c +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ void *tor_malloc(size_t size) { log_fn(LOG_ERR, "Out of memory. Dying."); exit(1); } memset(result,'X',size); /* XXX deadbeef to encourage bugs */ // memset(result,'X',size); /* deadbeef to encourage bugs */ return result; } Loading