Skip to content

Commit

Permalink
Issue 5643 - Memory leak in entryrdn during delete (#5717)
Browse files Browse the repository at this point in the history
Bug description: Failure to delete temp key buffer

Fix description: Delete temp key buffer on exit

Fixes: #5643

Reviewed by: @mreynolds389  (Thank you)
  • Loading branch information
jchapma authored and mreynolds389 committed May 11, 2023
1 parent aa1d1a9 commit 09236fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2826,6 +2826,7 @@ entryrdn_delete_key(backend *be,
dblayer_value_free(be, &key);
dblayer_value_free(be, &data);
slapi_ch_free((void **)&elem);
slapi_ch_free_string(&keybuf);
slapi_log_err(SLAPI_LOG_TRACE, "entryrdn_delete_key",
"<-- entryrdn_delete_key\n");
return rc;
Expand Down

0 comments on commit 09236fb

Please sign in to comment.