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 30, 2015
1 parent 2bd8ce5 commit 225b4e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dp-core/vr_flow.c
Expand Up @@ -1303,11 +1303,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 @@ -1318,6 +1318,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 225b4e7

Please sign in to comment.