mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
valgrind tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@600 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -85,7 +85,7 @@ static int switch_console_process(char *cmd)
|
||||
SWITCH_DECLARE(void) switch_console_printf(switch_text_channel channel, char *file, const char *func, int line,
|
||||
char *fmt, ...)
|
||||
{
|
||||
char *data;
|
||||
char *data = NULL;
|
||||
int ret = 0;
|
||||
va_list ap;
|
||||
FILE *handle;
|
||||
@@ -130,9 +130,11 @@ SWITCH_DECLARE(void) switch_console_printf(switch_text_channel channel, char *fi
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Log-Line", "%d", line);
|
||||
switch_event_fire(&event);
|
||||
}
|
||||
free(data);
|
||||
}
|
||||
}
|
||||
if(data) {
|
||||
free(data);
|
||||
}
|
||||
fflush(handle);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user