lkml.org 
[lkml]   [2018]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 7/8] perf report: Remove the time slices number limitation
Em Wed, Jan 10, 2018 at 11:00:32PM +0800, Jin Yao escreveu:
> error:
> + if (report.ptime_range)
> + free(report.ptime_range);
> +

You don't need to check if it is NULL, free(NULL) is ok and more
compact, I'm fixing this.

- Arnaldo

\
 
 \ /
  Last update: 2018-01-16 15:45    [W:0.387 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site