Revision 035f6acb proto/ospf/topology.c

View differences:

proto/ospf/topology.c
284 284
    ifa->nlsa->lsa.age=LSA_MAXAGE;
285 285
    flood_lsa(NULL,NULL,&ifa->nlsa->lsa,po,NULL,ifa->oa,0);
286 286
    s_rem_node(SNODE ifa->nlsa);
287
    if(ifa->nlsa->lsa_body!=NULL) mb_free(ifa->nlsa->lsa_body);
288
    ifa->nlsa->lsa_body=NULL;
287 289
    ospf_hash_delete(ifa->oa->gr, ifa->nlsa);
288 290
    schedule_rtcalc(ifa->oa);
289 291
    ifa->nlsa=NULL;
......
511 513
 * its used in @ospf_area structure.
512 514
 */
513 515
struct top_graph *
514
ospf_top_new(struct proto_ospf *p)
516
ospf_top_new(pool *pool, struct proto_ospf *p)
515 517
{
516 518
  struct top_graph *f;
517 519

  
518
  f = mb_allocz(p->proto.pool, sizeof(struct top_graph));
519
  f->pool = p->proto.pool;
520
  f = mb_allocz(pool, sizeof(struct top_graph));
521
  f->pool = pool;
520 522
  f->hash_slab = sl_new(f->pool, sizeof(struct top_hash_entry));
521 523
  f->hash_order = HASH_DEF_ORDER;
522 524
  ospf_top_ht_alloc(f);

Also available in: Unified diff