Skip to content

Commit

Permalink
utils: Release a heap memory for SID translation
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Jul 29, 2024
1 parent 797e3ce commit 9987636
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/winevt/winevt_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ render_system_event(EVT_HANDLE hEvent, BOOL preserve_qualifiers, BOOL expandSID_
ExpandSIDWString(pRenderedValues[EvtSystemUserID].SidVal,
&expandSID) == 0) {
rbstr = rb_utf8_str_new_cstr(expandSID);
free(expandSID);
} else {
rbstr = rb_utf8_str_new_cstr(pwsSid);
}
Expand Down

0 comments on commit 9987636

Please sign in to comment.