From d0aafff0b85f38ed75af9dd11e56d47bd347a293 Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Thu, 18 Mar 2004 16:50:00 +0000 Subject: The string passed to putenv must not be freed during the lifetime of that entry. Using automatic varaibles was also wrong. CVS patchset: 6288 CVS date: 2004/03/18 16:50:00 --- src/xine-utils/xineutils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index f93854891..dbd1365ba 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.80 2004/03/03 19:59:43 mroi Exp $ + * $Id: xineutils.h,v 1.81 2004/03/18 16:50:00 komadori Exp $ * */ #ifndef XINEUTILS_H @@ -723,7 +723,7 @@ static inline void _private_setenv(const char *name, const char *val, int _xx) { sprintf(env, "%s%c%s", name, '=', val); putenv(env); - free(env); + /*free(env); The string passed to putenv must not be freed*/ } #define xine_setenv _private_setenv #endif -- cgit v1.2.3