diff options
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> |