Commit 2babd879 authored by oharboe's avatar oharboe
Browse files

Frederik Kriewitz <frederik at kriewitz.eu> Segmentation fault fix.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1025 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent e8e59951
...@@ -75,7 +75,10 @@ int handle_trace_point_command(struct command_context_s *cmd_ctx, char *cmd, cha ...@@ -75,7 +75,10 @@ int handle_trace_point_command(struct command_context_s *cmd_ctx, char *cmd, cha
if (!strcmp(args[0], "clear")) if (!strcmp(args[0], "clear"))
{ {
if (trace->trace_points) if (trace->trace_points)
{
free(trace->trace_points); free(trace->trace_points);
trace->trace_points = NULL;
}
trace->num_trace_points = 0; trace->num_trace_points = 0;
trace->trace_points_size = 0; trace->trace_points_size = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment