Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [OB] Add cleanup, source.c
@ 2007-06-28 22:35 msnyder
  2007-06-28 22:49 ` Daniel Jacobowitz
  0 siblings, 1 reply; 15+ messages in thread
From: msnyder @ 2007-06-28 22:35 UTC (permalink / raw)
  To: gdb-patches

A missed opportunity for cleanup, flagged by Coverity.

I'm cut'and'pasting the patch to avoid my browser turning it into a
binary stream.  This may eliminate tabs, but I don't expect anybody
to actually apply this with 'patch'...

2007-06-28  Michael Snyder  <msnyder@access-company.com>

        * source.c (unset_substitute_path_command): Plug leak (Coverity).

Index: source.c
===================================================================
RCS file: /cvs/src/src/gdb/source.c,v
retrieving revision 1.79
diff -p -r1.79 source.c
*** source.c    24 Jan 2007 00:03:15 -0000      1.79
--- source.c    28 Jun 2007 22:12:36 -0000
*************** unset_substitute_path_command (char *arg
*** 1852,1857 ****
--- 1852,1858 ----

    /* This function takes either 0 or 1 argument.  */

+   make_cleanup_freeargv (argv);
    if (argv != NULL && argv[0] != NULL && argv[1] != NULL)
      error (_("Incorrect usage, too many arguments in command"));




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-07-04 17:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-28 22:35 [OB] Add cleanup, source.c msnyder
2007-06-28 22:49 ` Daniel Jacobowitz
2007-06-28 23:12   ` msnyder
     [not found]   ` <655C3D4066B7954481633935A40BB36F041427@ussunex02.svl.access-company.com>
2007-06-29  0:24     ` Daniel Jacobowitz
2007-06-29  2:05       ` msnyder
2007-06-29 11:37         ` Daniel Jacobowitz
2007-06-29 17:02           ` Joel Brobecker
2007-06-29 20:34             ` Michael Snyder
2007-06-30 10:19           ` Michael Snyder
2007-06-30 14:17             ` Eli Zaretskii
2007-06-30 16:39               ` Michael Snyder
2007-06-30 16:40                 ` Daniel Jacobowitz
2007-06-30 18:25                 ` Eli Zaretskii
2007-07-03 18:13                   ` Jim Blandy
2007-07-04 17:35                     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox