From 13c37ad39abb4ca3529f8ce56d1b0b9fe25d6d22 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 23 Nov 2009 21:56:50 +0000 Subject: 2009-11-23 Joel Sherrill * libmisc/shell/shell.c: Always duplicate the environment passed to us because we will delete it when the shell exits. If we do not duplicate it, we could end up freeing memory which was not allocated from the heap or double freeing it. --- cpukit/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/ChangeLog') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8c6836242a..a30f4d5436 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,10 @@ +2009-11-23 Joel Sherrill + + * libmisc/shell/shell.c: Always duplicate the environment passed to us + because we will delete it when the shell exits. If we do not + duplicate it, we could end up freeing memory which was not allocated + from the heap or double freeing it. + 2009-11-23 Joel Sherrill * libmisc/shell/login_prompt.c: Properly process EOF and do not depend -- cgit v1.2.3