You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include <memory.h>
- #include <stdlib.h>
- #include <stdio.h>
-
- int main(void) {
- int* i_ptr = malloc(sizeof(int));
- if (i_ptr) {
- (void)printf("malloc() success...\n");
- // Double free
- free(i_ptr);
- free(i_ptr);
- }
- }
|