1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/lib
Ravi Pokala 3945141fa2 popen() requires check for fdopen() failure
Move fdopen() up near other resource allocation like malloc(); do proper
deallocation on failure later on in the function.

Submitted by:	Ramachandra Topannavar <rtopannavar@panasas.com>
Reviewed by:	jilles
Approved by:	jhb (mentor)
MFC after:	2 weeks
Sponsored by:	Panasas, Inc.
Differential Revision:	https://reviews.freebsd.org/D4126

M    lib/libc/gen/popen.c
2015-11-20 22:36:41 +00:00
..
atf Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
clang Switch the default OpenMP runtime for clang to libomp (from the LLVM 2015-10-18 17:18:19 +00:00
csu Annotate arm userspace assembler sources stating their tolerance to 2015-09-29 16:09:58 +00:00
libalias
libarchive Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in to 2015-10-12 18:31:21 +00:00
libauditd
libbegemot
libblocksruntime META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libbluetooth
libbsdstat
libbsm
libbsnmp
libbz2
libc popen() requires check for fdopen() failure 2015-11-20 22:36:41 +00:00
libc_nonshared
libc++ Stop linking libc++.so verbosely, there is no need to. 2015-10-06 21:28:54 +00:00
libcalendar
libcam Set dev->fd to -1 when calling cam_close_spec_device with a valid dev->fd 2015-10-17 09:07:53 +00:00
libcapsicum
libcasper
libclang_rt Amend 287626 by adding lib/libclang_rt/safestack. 2015-09-10 20:37:00 +00:00
libcom_err
libcompat
libcompiler_rt Merge ^/head r288197 through r288456. 2015-10-01 19:02:45 +00:00
libcrypt Temporarily comment out the libcrypt tests. 2015-11-18 13:19:34 +00:00
libcuse META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libcxxrt Add std::uncaught_exceptions() to libcxxrt (C++17, see N4152 and N4259). 2015-10-05 17:47:23 +00:00
libdevctl
libdevinfo
libdevstat
libdpv Make figpar(3) types/macros [more] unique (s/fp_/figpar_/gi) 2015-11-02 20:03:59 +00:00
libdwarf
libedit Revert r290298. Per discussion on tech-userlevel@netbsd.org this change 2015-11-05 17:00:38 +00:00
libefi
libelf
libelftc
libevent META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libexecinfo
libexpat
libfetch Use fopen()'s newfangled "e" flag instead of explicit fcntl() calls. 2015-10-16 12:53:22 +00:00
libfigpar Make figpar(3) types/macros [more] unique (s/fp_/figpar_/gi) 2015-11-02 20:03:59 +00:00
libgeom Plug memory leaks when running out of memory. 2015-08-28 06:41:40 +00:00
libgpio
libgssapi
libiconv_modules Add more SUBDIR_PARALLEL. 2015-10-15 22:55:08 +00:00
libipsec
libjail
libkiconv
libkvm Add support to libkvm for reading minidumps on arm64. The kernel side is 2015-08-20 11:07:51 +00:00
libldns
liblzma Replace beforeinstall: handling with FILES. 2015-09-18 23:49:32 +00:00
libmagic MFV r288140: update file to 5.25. 2015-09-23 05:39:20 +00:00
libmd
libmemstat
libmilter META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libmp Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
libmt
libnandfs
libnetbsd Fix spelling error. 2015-11-05 01:54:38 +00:00
libnetgraph
libngatm
libnv Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
libopenbsd Fix bootstrapping of libopenbsd on build hosts where KERN_PROC_NFDS 2015-11-14 23:43:59 +00:00
libopie
libpam Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
libpcap
libpjdlog
libpmc Change the driver stats to what they really are: unsigned values. 2015-11-16 15:16:09 +00:00
libproc Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
libprocstat Fix core corruption caused by race in note_procstat_vmmap 2015-10-06 18:07:00 +00:00
libradius
librpcsec_gss META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
librpcsvc
librt Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
librtld_db
libsbuf
libsdp
libsm Update META_MODE dependencies. 2015-09-17 05:06:34 +00:00
libsmb META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libsmdb
libsmutil
libsqlite3
libstand If we can't open the file, skip devclose() for the exclusive_file_system 2015-10-08 17:59:05 +00:00
libstdbuf META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libstdthreads META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libtacplus
libtelnet
libthr Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
libthread_db
libucl Update libucl to latest git snapshot (20151027) 2015-10-27 21:24:09 +00:00
libufs
libugidfw Fix 'ugidfw remove' after r284251 incorrectly changed it. 2015-09-29 18:48:12 +00:00
libulog
libunbound META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libusb Remove redundant COMPAT_32BIT guard on pkgconfig files. This is already handled 2015-10-03 16:34:21 +00:00
libusbhid
libutil Correct posix_openpt reference in pty(3) 2015-11-06 12:02:24 +00:00
libvgl META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
libvmmapi
libwrap
libxo Make libxo depend on libutil because it uses humanize_number after r287111 2015-10-18 07:30:50 +00:00
liby
libypclnt
libz Remove redundant COMPAT_32BIT guard on pkgconfig files. This is already handled 2015-10-03 16:34:21 +00:00
msun Bump .Dd 2015-11-09 10:41:27 +00:00
ncurses Add missing CLEANFILES. 2015-09-26 01:04:52 +00:00
tests Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
Makefile Rename libohash to libopenbsd. 2015-11-04 07:20:55 +00:00
Makefile.inc