mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Fix bug where a struct buf was free()'d back to the system malloc pool.
Quite amazing that the system runs at all with this bug. Also present in 2.2.5. The bug appears to have come in with changes in rev 1.53. PR: might fix PR#5313 Submitted by: bde
This commit is contained in:
parent
e3d099c303
commit
c7ce9e2634
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31774
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kern_exec.c,v 1.68 1997/11/06 19:29:08 phk Exp $
|
||||
* $Id: kern_exec.c,v 1.69 1997/12/06 04:11:09 sef Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -218,10 +218,9 @@ execve(p, uap)
|
||||
if (bp != NULL) {
|
||||
brelse(bp);
|
||||
bp = NULL;
|
||||
} else {
|
||||
} else
|
||||
free((void *)imgp->image_header, M_TEMP);
|
||||
imgp->image_header = NULL;
|
||||
}
|
||||
imgp->image_header = NULL;
|
||||
/* free old vnode and name buffer */
|
||||
vrele(ndp->ni_vp);
|
||||
zfree(namei_zone, ndp->ni_cnd.cn_pnbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user