diff options
author | paul <paul> | 2004-11-15 12:48:37 +0100 |
---|---|---|
committer | paul <paul> | 2004-11-15 12:48:37 +0100 |
commit | 788dab10f51f55670dd49f990a016b838e92b9da (patch) | |
tree | 594089dd7e3f0dfaf529d66a847f44a613e069f3 /ospfd/ospf_apiserver.c | |
parent | 2004-11-15 Paul Jakma <paul@dishone.st> (diff) | |
download | frr-788dab10f51f55670dd49f990a016b838e92b9da.tar.xz frr-788dab10f51f55670dd49f990a016b838e92b9da.zip |
2004-11-15 Paul Jakma <paul@dishone.st>
* ospf_{apiserver,te}.c: ospf_lsa_free's should be ospf_lsa_unlock.
Diffstat (limited to 'ospfd/ospf_apiserver.c')
-rw-r--r-- | ospfd/ospf_apiserver.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index 96fb91793..8bc16dc32 100644 --- a/ospfd/ospf_apiserver.c +++ b/ospfd/ospf_apiserver.c @@ -1529,8 +1529,7 @@ ospf_apiserver_opaque_lsa_new (struct ospf_area *area, if ((new->data = ospf_lsa_data_new (length)) == NULL) { zlog_warn ("ospf_apiserver_opaque_lsa_new: ospf_lsa_data_new() ?"); - ospf_lsa_free (new); - new = NULL; + ospf_lsa_unlock (new); stream_free (s); return NULL; } @@ -1895,7 +1894,7 @@ ospf_apiserver_lsa_refresher (struct ospf_lsa *lsa) if (ospf_lsa_install (ospf, new->oi, new) == NULL) { zlog_warn ("ospf_apiserver_lsa_refresher: ospf_lsa_install failed"); - ospf_lsa_free (new); + ospf_lsa_unlock (new); goto out; } |