projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sim: Call freeargv() when failure occurs
[deliverable/binutils-gdb.git]
/
sim
/
common
/
sim-options.c
diff --git
a/sim/common/sim-options.c
b/sim/common/sim-options.c
index c49220e6de6c70a5e8ae3904589478a1810bdedd..814edcf5f22a32a6f3f47c650e271b65721dfa05 100644
(file)
--- a/
sim/common/sim-options.c
+++ b/
sim/common/sim-options.c
@@
-993,7
+993,10
@@
sim_args_command (SIM_DESC sd, const char *cmd)
sim_cpu *cpu;
if (argv [0] == NULL)
- return SIM_RC_OK; /* FIXME - perhaps help would be better */
+ {
+ freeargv (argv);
+ return SIM_RC_OK; /* FIXME - perhaps help would be better */
+ }
/* First check for a cpu selector. */
{
This page took
0.022496 seconds
and
4
git commands to generate.