ECC-435: CRASH: Python keys iterator on GRIB message

This commit is contained in:
Shahram Najm 2017-07-21 18:34:22 +01:00
parent 74840461a7
commit bdb3321519
1 changed files with 2 additions and 1 deletions

View File

@ -996,8 +996,9 @@ def grib_get_string_array(msgid, key):
GRIB_CHECK(_internal.grib_c_get_string_array(msgid, key, a, s))
newsize = s.value()
result = list()
for i in range(nval):
for i in range(newsize):
result.append(_internal.stringArray_getitem(a, i))
_internal.delete_stringArray(a)