Skip to content

Commit

Permalink
update the 4th argument for calling freeargStoreMultiPut()
Browse files Browse the repository at this point in the history
  • Loading branch information
knonomura committed Feb 20, 2019
1 parent 30c41d8 commit fa3a91c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gstype_js_v8.i
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ size_t sizeTmp = 0, int* alloc = 0, char* v = 0) {
// Get container name
res = SWIG_AsCharPtrAndSize(keys->Get(i), &v, &sizeTmp, &alloc[i]);
if (!SWIG_IsOK(res)) {
freeargStoreMultiPut($1, $2, $3, $4, alloc);
freeargStoreMultiPut($1, $2, $3, i, alloc);
%variable_fail(res, "String", "containerName");
}
if (v) {
Expand All @@ -1566,7 +1566,7 @@ size_t sizeTmp = 0, int* alloc = 0, char* v = 0) {
}
// Get row
if (!(obj->Get(keys->Get(i)))->IsArray()) {
freeargStoreMultiPut($1, $2, $3, $4, alloc);
freeargStoreMultiPut($1, $2, $3, i, alloc);
SWIG_V8_Raise("Expected an array as rowList");
SWIG_fail;
}
Expand Down Expand Up @@ -1595,7 +1595,7 @@ size_t sizeTmp = 0, int* alloc = 0, char* v = 0) {
sprintf(errorMsg, "Invalid value for column %d, type should be : %d", k, typeArr[k]);
delete containerInfoTmp;
free((void *) typeArr);
freeargStoreMultiPut($1, $2, $3, $4, alloc);
freeargStoreMultiPut($1, $2, $3, i, alloc);
SWIG_V8_Raise(errorMsg);
SWIG_fail;
}
Expand Down

0 comments on commit fa3a91c

Please sign in to comment.