Why does free crash here?
<p>The following crashes when it gets to free: (there is reasoning for using void*).</p>

<pre><code>bool s = true;

void* arg = &amp;s;
argument = malloc(sizeof(arg));
memcpy(argument,arg,sizeof(arg));
free(argument);
</code></pre>

<p>argument here is a void*</p>

<p>why does free crash the application?</p>

<p>Thanks</p>
