ext/stack_trace/argument.c in stack_trace-0.6.0 vs ext/stack_trace/argument.c in stack_trace-0.7.0
- old
+ new
@@ -2,10 +2,10 @@
void free_arguments(Argument *arguments, int count) {
int i;
for(i = 0; i < count; i++) {
- free(arguments[i].value);
+ if(arguments[i].value != NULL) free(arguments[i].value);
}
free(arguments);
}