[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5164: Updated doc/HACKING code example on freeing memory.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Wed, 17 Nov 2010 04:58:31 -0000

------------------------------------------------------------
revno: 5164
committer: Miika Komu <miika@xxxxxx>
branch nick: trunk
timestamp: Wed 2010-11-17 06:57:15 +0200
message:
  Updated doc/HACKING code example on freeing memory.
  
  According to revision 5156, NULL checks for free() are optional.
modified:
  doc/HACKING


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'doc/HACKING'
--- doc/HACKING 2010-11-09 09:07:47 +0000
+++ doc/HACKING 2010-11-17 04:57:15 +0000
@@ -627,9 +627,7 @@
       HIP_IFEL(!(mem = HIP_ALLOC(256, 0)), -1, "alloc\n");
 
   out_err:
-      if (mem) {
-          free(mem);
-      }
+      free(mem);
       return err;
   }
 

Other related posts:

  • » [hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5164: Updated doc/HACKING code example on freeing memory. - noreply