Skip to content

Commit

Permalink
Removed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
pasetti committed May 4, 2019
1 parent 84b6cc1 commit c09163a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/OutRegistry/CrFwOutRegistry.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@ static void OutRegistryShutdownAction(FwSmDesc_t smDesc) {
for (i=0; i<CR_FW_OUTREGISTRY_NSERV; i++) {
servDesc[i].isServTypeEnabled = 1;
servDesc[i].isServSubTypeEnabled = 1;
if (servDesc[i].upperBoundDisc != 0)
free(servDesc[i].isDiscriminantEnabled);
free(servDesc[i].isDiscriminantEnabled);
}

for (k=0; k<CR_FW_OUTREGISTRY_N; k++)
Expand Down

0 comments on commit c09163a

Please sign in to comment.