Skip to content

Commit

Permalink
Free the flow metadata post a flush
Browse files Browse the repository at this point in the history
Flow metadata, which is passed to the hold queue flusher, is not freed
post the flush.

Change-Id: I7764f39167403532fe01caa2b1285a183420893b
Closes-Bug: #1436798
  • Loading branch information
anandhk-juniper committed Mar 27, 2015
1 parent b6a64ec commit b041e68
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dp-core/vr_flow.c
Expand Up @@ -887,11 +887,11 @@ vr_flow_flush(void *arg)

router = flmd->flmd_router;
if (!router)
return;
goto exit_flush;

fe = vr_get_flow_entry(router, flmd->flmd_index);
if (!fe)
return;
goto exit_flush;

vr_init_forwarding_md(&fmd);
vr_flow_set_forwarding_md(router, fe, flmd->flmd_index, &fmd);
Expand All @@ -902,6 +902,9 @@ vr_flow_flush(void *arg)
vr_reset_flow_entry(router, fe, flmd->flmd_index);
}

exit_flush:
vr_free(flmd);

return;
}

Expand Down

0 comments on commit b041e68

Please sign in to comment.