* gdbserver/server.c (handle_v_run): Free alloced buffer on early
return.
+2011-03-10 Michael Snyder <msnyder@vmware.com>
+
+ * gdbserver/server.c (handle_v_run): Free alloced buffer on early
+ return.
+
2011-03-10 Tom Tromey <tromey@redhat.com>
* tracepoint.c (trace_actions_command): Update.
if (program_argv == NULL)
{
- /* FIXME: new_argv memory leak */
write_enn (own_buf);
+ freeargv (new_argv);
return 0;
}
new_argv[0] = strdup (program_argv[0]);
if (new_argv[0] == NULL)
{
- /* FIXME: new_argv memory leak */
write_enn (own_buf);
+ freeargv (new_argv);
return 0;
}
}