Branch: Tag:

2000-03-18

2000-03-18 03:02:15 by Martin Stjernholm <mast@lysator.liu.se>

It's necessary to destruct the id object clone explicitly in try_get_file()
to avoid garbage piling.

Rev: server/base_server/configuration.pike:1.278

3:   //   // German translation by Kai Voigt    - constant cvs_version = "$Id: configuration.pike,v 1.277 2000/03/17 17:45:55 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.278 2000/03/18 03:02:15 mast Exp $";   constant is_configuration = 1;   #include <module.h>   #include <roxen.h>
2086:    fake_id->raw_url=s;    fake_id->not_query=s;    -  if(!(m = get_file(fake_id,0,!not_internal))) +  if(!(m = get_file(fake_id,0,!not_internal))) { +  destruct (fake_id);    return 0; -  +  }    -  +  destruct (fake_id); +     if (!mappingp(m) && !objectp(m)) {    report_error("try_get_file(%O, %O, %O, %O): m = %O is not a mapping.\n",    s, id, status, nocache, m);