title: Do I need to free constant memory assigned using cudaMemcpyToSymbol?
body: <p>I am pretty sure the answer is no, but I just wanted to make sure as I don't want memory leaks.</p>
  
  <p>I am using the following code</p>
  
  <pre><code>__constant__ void* VERTEX_NO_CONSTANT_PARAMETER;
  HANDLE_ERROR( cudaMemcpyToSymbol( VERTEX_NO_CONSTANT_PARAMETER, &amp;vertexNo, sizeof( int ) ) );
  HANDLE_ERROR( cudaFree( VERTEX_NO_CONSTANT_PARAMETER ) );
  </code></pre>
  
  <p>It does not throw any errors at me which is putting doubt in my mind (I was hoping that cudaFree would error).</p>
  
  <p>Thank you!</p>
  
  <p>Kevin</p>