Branch: Tag:

2010-05-31

2010-05-31 14:34:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported fix for leak of memory_usage callbacks from Pike 7.8.

Rev: src/backend.cmod:1.159
Rev: src/builtin_functions.c:1.565
Rev: src/builtin_functions.h:1.31
Rev: src/main.c:1.206

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: builtin_functions.c,v 1.564 2009/08/26 12:25:56 mast Exp $ + || $Id: builtin_functions.c,v 1.565 2010/05/31 14:34:24 grubba Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.564 2009/08/26 12:25:56 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.565 2010/05/31 14:34:24 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
9018:   #endif   #endif   } +  + void exit_builtin_efuns(void) + { +  free_callback_list(&memory_usage_callback); + } +