Skip to content

Commit

Permalink
[SWIG][mmlspark] fix seg fault in LGBM_BoosterGetEvalNamesSWIG (#2958)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Apr 1, 2020
1 parent dbc3d05 commit 6ba84d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swig/StringArray_API_extensions.i
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
API_OK_OR_NULL(LGBM_BoosterGetEvalNames(handle,
0, &eval_counts,
0, &string_size,
strings->data()));
nullptr));

try {
strings.reset(new StringArray(eval_counts, string_size));
Expand Down

0 comments on commit 6ba84d5

Please sign in to comment.