Fixed use after free.

This commit is contained in:
irungentoo 2015-01-10 22:24:17 -05:00
parent 90f68f578c
commit 3b991212b7
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -170,6 +170,7 @@ void logger_kill(logger *log)
void logger_kill_global(void) void logger_kill_global(void)
{ {
logger_kill(global); logger_kill(global);
global = NULL;
} }
void logger_set_global(logger *log) void logger_set_global(logger *log)