diff options
author | Sunmin Lee <sunm.lee@samsung.com> | 2016-12-22 17:58:58 +0900 |
---|---|---|
committer | Sunmin Lee <sunm.lee@samsung.com> | 2016-12-22 17:58:58 +0900 |
commit | 254636d7f4be7df048ec4c17cc9159da661a2d97 (patch) | |
tree | f255d0ab88458cdc50f6264d28c46854991e1fd0 /src/crash-stack | |
parent | e446d126daf8c708373ac89a36854e73af44888c (diff) | |
download | crash-worker-254636d7f4be7df048ec4c17cc9159da661a2d97.tar.gz crash-worker-254636d7f4be7df048ec4c17cc9159da661a2d97.tar.bz2 crash-worker-254636d7f4be7df048ec4c17cc9159da661a2d97.zip |
Fix handle leaksubmit/tizen_3.0/20161222.232700submit/tizen_3.0/20161222.092901accepted/tizen/3.0/wearable/20161223.082240accepted/tizen/3.0/tv/20161223.082234accepted/tizen/3.0/mobile/20161223.082230accepted/tizen/3.0/ivi/20161223.082249accepted/tizen/3.0/common/20161223.110758
Fix handle leak of file pointer at crash-stack
Change-Id: I2d68e04ad84ea7263e3c45cc91ef295557532bde
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Diffstat (limited to 'src/crash-stack')
-rw-r--r-- | src/crash-stack/crash-stack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crash-stack/crash-stack.c b/src/crash-stack/crash-stack.c index 71d2f15..82be10d 100644 --- a/src/crash-stack/crash-stack.c +++ b/src/crash-stack/crash-stack.c @@ -298,8 +298,10 @@ static int __attachable(pid_t pid, pid_t tid) return -1; /* check if status is D */ - if (fscanf(f, "%*d %*s %c", &status) != 1) + if (fscanf(f, "%*d %*s %c", &status) != 1) { + fclose(f); return -1; + } fclose(f); |