This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Free memory used by optimization/target options


On 11/5/19 11:40 AM, Jan Hubicka wrote:
+	print "  if (ptr->" name")";
+	print "    free (const_cast <char *>(ptr->" name"));";

If I'm correct, you can call free even for a NULL pointer.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]