]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Malloc() changed to cfg_alloc().
authorOndrej Filip <feela@network.cz>
Tue, 8 Feb 2000 19:12:42 +0000 (19:12 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 8 Feb 2000 19:12:42 +0000 (19:12 +0000)
proto/ospf/ospf.c

index e8704a7f11e9a7f95c1212e977b78ff058d62120..1805ac3f8d65f59629d55cf9784380d5aed302c9 100644 (file)
@@ -18,7 +18,7 @@ ospf_start(struct proto *p)
 
   /* Create graph of LSA's */
   po->areano=1;                /* FIXME should respect config! */
-  po->firstarea=(struct ospf_area *)malloc(sizeof(struct ospf_area));
+  po->firstarea=(struct ospf_area *)cfg_alloc(sizeof(struct ospf_area));
   po->firstarea->gr=ospf_top_new(po);
   po->firstarea->next=NULL;
   po->firstarea->areaid=0;