From dd946fdcd5ced05aad0b64c797df0c1ca78320e5 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 12 May 2006 22:51:49 +0000 Subject: [ospfd] Fix leak in area-range-cost command, CID #46. 2006-05-11 Paul Jakma * ospf_abr.c: (ospf_area_range_cost_set) Shouldn't create a new range, should just lookup to see if one exists, the new range is just leaked. Fixes CID #46. --- ospfd/ospf_abr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ospfd/ospf_abr.c') diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c index 8f365da7..225cf6ed 100644 --- a/ospfd/ospf_abr.c +++ b/ospfd/ospf_abr.c @@ -244,7 +244,7 @@ ospf_area_range_cost_set (struct ospf *ospf, struct in_addr area_id, if (area == NULL) return 0; - range = ospf_area_range_new (p); + range = ospf_area_range_lookup (area, p); if (range == NULL) return 0; -- cgit v1.2.3