Skip to content

Commit

Permalink
don't need to check arg to free against null
Browse files Browse the repository at this point in the history
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: Ifd3c51df52b1678981c79eb8ce79d718ee04c862
  • Loading branch information
caolanm authored and vmiklos committed Dec 5, 2024
1 parent 847ef7d commit 7c21504
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kit/ChildSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2131,8 +2131,7 @@ bool ChildSession::renderSearchResult(const char* buffer, int length, const Stri
sendTextFrameAndLogError("error: cmd=rendersearchresult kind=failure");
}

if (bitmapBuffer)
free(bitmapBuffer);
free(bitmapBuffer);

return true;
}
Expand Down

0 comments on commit 7c21504

Please sign in to comment.