diff options
author | kevlo <kevlo@FreeBSD.org> | 2011-11-28 05:34:16 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2011-11-28 05:34:16 +0000 |
commit | 6473db59df76b9aa589e199e2847c57a18da2ab2 (patch) | |
tree | c7afc4b69d9e9ba70b33ded78f534b09f5a465c9 /usr.sbin/bsdinstall/distfetch/distfetch.c | |
parent | eb7c1e5049be3381264012c77f7f4d2c998dd48f (diff) | |
download | FreeBSD-src-6473db59df76b9aa589e199e2847c57a18da2ab2.zip FreeBSD-src-6473db59df76b9aa589e199e2847c57a18da2ab2.tar.gz |
Plug memory leaks and fix open(2) error check.
Reviewed by: nwhitehorn
MFC after: 3 days
Diffstat (limited to 'usr.sbin/bsdinstall/distfetch/distfetch.c')
-rw-r--r-- | usr.sbin/bsdinstall/distfetch/distfetch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/distfetch/distfetch.c b/usr.sbin/bsdinstall/distfetch/distfetch.c index 0ced75c..bb72417 100644 --- a/usr.sbin/bsdinstall/distfetch/distfetch.c +++ b/usr.sbin/bsdinstall/distfetch/distfetch.c @@ -48,6 +48,7 @@ main(void) urls = calloc(ndists, sizeof(const char *)); if (urls == NULL) { fprintf(stderr, "Out of memory!\n"); + free(diststring); return (1); } |