argp: avoid memory leak
authorEric Blake <ebb9@byu.net>
Thu, 29 Oct 2009 19:38:52 +0000 (13:38 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 30 Oct 2009 00:39:36 +0000 (18:39 -0600)
commitce2d0d6e770dbf138ed4fb7649b593412b22122a
tree4eb469b7910d1d1d4d24ce5a3c50b6d6c62d47fe
parent90cff1db2d712f9be51a68bae04fec75e7c23b8a
argp: avoid memory leak

argp has been leaking memory since commit 79c0a43, in Jul 2006.

* modules/argp (Depends-on): Use dirname-lgpl, not dirname.
* lib/argp-namefrob.h (__argp_base_name): Use last_component, not
base_name, since the latter malloc()s and can call exit().

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/argp-namefrob.h
modules/argp