Skip to content

Commit

Permalink
smb: remove redundant null check in DetectSmbCmdFree
Browse files Browse the repository at this point in the history
  • Loading branch information
zer1t0 committed May 4, 2022
1 parent c218349 commit 1d8ec73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/detect-smb-cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ static void DetectSmbCmdFree(DetectEngineCtx *de_ctx, void *ptr)

SCLogDebug("smb_cmd: DetectSmbCmdFree");

if (ptr != NULL) {
rs_smb_cmd_free(ptr);
}
rs_smb_cmd_free(ptr);
SCReturn;
}

Expand Down

0 comments on commit 1d8ec73

Please sign in to comment.