Sha256: e49d6bc4e81dc650d1ed390eaf13e6a2f510c9e13d04808cfb0b3807af97f274

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define SZ 61

volatile char *volatile var;

int main() {
  for (size_t i = 0; i < 200000000; i++) {
    var = malloc(SZ);
    /* memset((char *)var, 0, SZ); */
    free((void *)var);
    var = NULL;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mesh-rb-0.0.1 ext/mesh/mesh/src/testing/local-alloc.c