diff options
author | Alistair Delva <adelva@google.com> | 2024-04-10 14:15:29 -0700 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2024-04-11 12:58:28 -0700 |
commit | d0f0f90be16c2ac553b5fa08512045273135147a (patch) | |
tree | 5d9ebb7a04807ea8a609ddd18b0162bc87530e4b /Examples/xml/example_apply.expected-xml | |
parent | 6ffc1dbf29ba98c4d8aa71ebc9b484e973fe1030 (diff) | |
download | swig-master.tar.gz |
Change-Id: I47cef2be94299220d80265d949a95b58eee2c23b
Diffstat (limited to 'Examples/xml/example_apply.expected-xml')
-rw-r--r-- | Examples/xml/example_apply.expected-xml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Examples/xml/example_apply.expected-xml b/Examples/xml/example_apply.expected-xml index 6118ef1f2..26cf5df2f 100644 --- a/Examples/xml/example_apply.expected-xml +++ b/Examples/xml/example_apply.expected-xml @@ -409,7 +409,7 @@ static void _ptrset(SV *_PTRVALUE, SV *value, int index, char *type) { } else if (strcmp(type,"char *") == 0) { char *c = SvPV(value,PL_na); char **ca = (char **) ptr; - if (ca[index]) free(ca[index]); + free(ca[index]); if (strcmp(c,"NULL") == 0) { ca[index] = 0; } else { @@ -500,8 +500,7 @@ void _ptrfree(SV *_PTRVALUE) { } } } - if (ptr) - free((char *) ptr); + free((char *) ptr); } </swigxml:code> |