pull/10041/head
Brent Shaffer 3 years ago
parent 8b4837981c
commit c8fa2f1168
  1. 2
      php/ext/google/protobuf/names.c

@ -285,8 +285,10 @@ bool IsPreviouslyUnreservedClassName(const char* fullname) {
int j; int j;
for (j = 0; kPreviouslyUnreservedNames[j]; j++) { for (j = 0; kPreviouslyUnreservedNames[j]; j++) {
if (strcmp(kPreviouslyUnreservedNames[j], lower) == 0) { if (strcmp(kPreviouslyUnreservedNames[j], lower) == 0) {
free(lower);
return true; return true;
} }
} }
free(lower);
return false; return false;
} }

Loading…
Cancel
Save