diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 7321f512..9466e438 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -671,7 +671,7 @@ rip_real_if_add(struct object_lock *lock) add_head( &P->interfaces, NODE rif ); DBG("Adding object lock of %p for %p\n", lock, rif); rif->lock = lock; - } else { rfree(rif->lock); } + } else { rfree(lock); } } static void