title: deallocating shared memory segment
body: <p>I have code tht does</p>
  
  <pre><code> int shmId = shmget(key, shmBytes, IPC_CREAT | 0666 );
   shmAddress = (char *) shmat(shmId, NULL, 0);
   /* do some stuff */
   /* detach */
   shmdt(shmAddress);
  </code></pre>
  
  <p>My question is,  do I ever need to de-allocate the segment I got with shmget?   or does shmdt take care of this?</p>
  
  <p>Thanks!</p>