Branch: Tag:

2005-10-19

2005-10-19 12:41:20 by Martin Nilsson <mani@lysator.liu.se>

Fixed memory leak when module load fails on init error.

Rev: src/dynamic_load.c:1.84

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dynamic_load.c,v 1.83 2004/04/18 02:19:38 mast Exp $ + || $Id: dynamic_load.c,v 1.84 2005/10/19 12:41:20 nilsson Exp $   */      #ifdef TESTING
24:   # include "lex.h"   # include "object.h"    - RCSID("$Id: dynamic_load.c,v 1.83 2004/04/18 02:19:38 mast Exp $"); + RCSID("$Id: dynamic_load.c,v 1.84 2005/10/19 12:41:20 nilsson Exp $");      #else /* TESTING */   
612:    new_module->exit();    dlclose(module);    dynamic_module_list = new_module->next; +  free_string(new_module->name);    free(new_module);    if (strlen(module_name->str) < 1024) {    Pike_error("Failed to initialize dynamic module \"%s\".\n",