Skip to content

Commit fa3a91c

Browse files
committed
update the 4th argument for calling freeargStoreMultiPut()
1 parent 30c41d8 commit fa3a91c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gstype_js_v8.i

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ size_t sizeTmp = 0, int* alloc = 0, char* v = 0) {
15551555
// Get container name
15561556
res = SWIG_AsCharPtrAndSize(keys->Get(i), &v, &sizeTmp, &alloc[i]);
15571557
if (!SWIG_IsOK(res)) {
1558-
freeargStoreMultiPut($1, $2, $3, $4, alloc);
1558+
freeargStoreMultiPut($1, $2, $3, i, alloc);
15591559
%variable_fail(res, "String", "containerName");
15601560
}
15611561
if (v) {
@@ -1566,7 +1566,7 @@ size_t sizeTmp = 0, int* alloc = 0, char* v = 0) {
15661566
}
15671567
// Get row
15681568
if (!(obj->Get(keys->Get(i)))->IsArray()) {
1569-
freeargStoreMultiPut($1, $2, $3, $4, alloc);
1569+
freeargStoreMultiPut($1, $2, $3, i, alloc);
15701570
SWIG_V8_Raise("Expected an array as rowList");
15711571
SWIG_fail;
15721572
}
@@ -1595,7 +1595,7 @@ size_t sizeTmp = 0, int* alloc = 0, char* v = 0) {
15951595
sprintf(errorMsg, "Invalid value for column %d, type should be : %d", k, typeArr[k]);
15961596
delete containerInfoTmp;
15971597
free((void *) typeArr);
1598-
freeargStoreMultiPut($1, $2, $3, $4, alloc);
1598+
freeargStoreMultiPut($1, $2, $3, i, alloc);
15991599
SWIG_V8_Raise(errorMsg);
16001600
SWIG_fail;
16011601
}

0 commit comments

Comments
 (0)