title: split malloc mem space
body: <p>I am using MS VS 2010, C++, unmanaged. I would like to split allocated area if possible. For example let's say I allocated a 1KB space in memory:</p>
  
  <pre><code>void* space = malloc(1024);
  </code></pre>
  
  <p>later, I decided to have this block as seperate 512B and 512B spaces:</p>
  
  <pre><code>space1 = 512B and space2 = 512B
  </code></pre>
  
  <p>and finally when I want to get rid of these spaces I wanna free them seperately:</p>
  
  <pre><code>free(space1);
  free(space2);
  </code></pre>
  
  <p>is this possible without reallocation/expanding/shrinking memory?</p>
  
  <p>Thank you all..</p>