lkml.org 
[lkml]   [2014]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/13] perf script: Fix possible memory leaks
Em Wed, Aug 13, 2014 at 04:05:24PM +0900, Namhyung Kim escreveu:
> On Wed, 13 Aug 2014 09:21:31 +0300, Adrian Hunter wrote:
> > On 08/12/2014 09:40 AM, Namhyung Kim wrote:
> >> input = open(file.path, O_RDONLY); /* input_name */
> >> if (input < 0) {
> >> perror("failed to open file");
> >> - return -1;
> >> + err = -errno;
> >
> > Need to get errno before calling perror().
>
> Argh, right.

I'll fix this up, no need to resubmit.

- Arnaldo


\
 
 \ /
  Last update: 2014-08-13 21:41    [W:0.065 / U:4.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site