malloc: solve dead code issue in memalign()
[platform/kernel/u-boot.git] / common / dlmalloc.c
index 2b964d1..5ea37df 100644 (file)
@@ -2848,7 +2848,7 @@ Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;
       return m;
     /* Otherwise, fail */
     fREe(m);
-    return NULL;
+    m = NULL;
   }
 
   if (m == NULL) return NULL; /* propagate failure */