Skip to content

Commit

Permalink
c: replace realloc with malloc.
Browse files Browse the repository at this point in the history
closes #191
  • Loading branch information
Luflosi authored and Dav1dde committed Dec 4, 2018
1 parent ea33861 commit 8dcc73c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions glad/lang/c/loader/gl.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@
num_exts_i = 0;
glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i);
if (num_exts_i > 0) {
char **tmp_exts_i = (char **)realloc((void *)exts_i, (size_t)num_exts_i * (sizeof *exts_i));
if (tmp_exts_i == NULL) {
return 0;
}
exts_i = tmp_exts_i;
exts_i = (char **)malloc((size_t)num_exts_i * (sizeof *exts_i));
}
if (exts_i == NULL) {
Expand Down

0 comments on commit 8dcc73c

Please sign in to comment.