Skip to content

Commit

Permalink
[CBRD-23734] Core dumped in cubbase::restrack_assert at src/base/reso…
Browse files Browse the repository at this point in the history
…urce_tracker.hpp:456

http://jira.cubrid.org/browse/CBRD-23734

add pr_clear_value() to prevent potential memory leak (#2423)
  • Loading branch information
shparkcubrid authored Aug 28, 2020
1 parent 7fc14b2 commit 8472482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -4562,9 +4562,9 @@ fetch_val_list (THREAD_ENTRY * thread_p, regu_variable_list_node * regu_list, va
rc = fetch_peek_dbval (thread_p, &regup->value, vd, class_oid, obj_oid, tpl, &tmp);
}

pr_clear_value (regup->value.vfetch_to);
if (rc != NO_ERROR)
{
pr_clear_value (regup->value.vfetch_to);
return ER_FAILED;
}

Expand Down

0 comments on commit 8472482

Please sign in to comment.