Skip to content

Commit

Permalink
Issue 6442 - Fix latest covscan memory leaks (part 2)
Browse files Browse the repository at this point in the history
Description:

Missed part of the fix becuase of a rebase issue

Fixes: 389ds#6442

Reviewed by: progier & spichugi(Thanks!!)
  • Loading branch information
mreynolds389 committed Dec 19, 2024
1 parent fcd1cb7 commit 196a410
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ldap/servers/slapd/plugin_internal_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,6 @@ slapi_search_internal_set_pb(Slapi_PBlock *pb, const char *base, int scope, cons
return;
}

slapi_pblock_get(pb, SLAPI_OPERATION, &op);
operation_free(&op, NULL);
slapi_pblock_set(pb, SLAPI_OPERATION, NULL);
slapi_pblock_get(pb, SLAPI_SEARCH_ATTRS, &tmp_attrs);
slapi_ch_array_free(tmp_attrs);
slapi_pblock_set(pb, SLAPI_SEARCH_ATTRS, NULL);

op = internal_operation_new(SLAPI_OPERATION_SEARCH, operation_flags);
slapi_pblock_set(pb, SLAPI_OPERATION, op);
slapi_pblock_set(pb, SLAPI_ORIGINAL_TARGET_DN, (void *)base);
Expand Down

0 comments on commit 196a410

Please sign in to comment.