diff options
| author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-19 11:56:00 -0700 | 
|---|---|---|
| committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-19 11:56:00 -0700 | 
| commit | 3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3 (patch) | |
| tree | 8888abf5bfb3b666027746c78a7466e09fa3a557 /common/file.c | |
| parent | c64b1544752547cede30647bb03ab1bbbc06d079 (diff) | |
| download | xrdp-proprietary-3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3.tar.gz xrdp-proprietary-3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3.zip | |
coverity: fixed resolution leak issues
Diffstat (limited to 'common/file.c')
| -rw-r--r-- | common/file.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/common/file.c b/common/file.c index a9a06de9..b51a37cc 100644 --- a/common/file.c +++ b/common/file.c @@ -233,7 +233,7 @@ l_file_read_section(int fd, int max_file_size, const char *section,      int len;      int index;      int file_size; -     +      data = (char *) g_malloc(FILE_MAX_LINE_BYTES * 3, 0);      text = data;      name = text + FILE_MAX_LINE_BYTES; @@ -364,7 +364,7 @@ file_by_name_read_sections(const char *file_name, struct list *names)      fd = g_file_open(file_name); -    if (fd < 1) +    if (fd < 0)      {          return 1;      } @@ -405,7 +405,7 @@ file_by_name_read_section(const char *file_name, const char *section,      fd = g_file_open(file_name); -    if (fd < 1) +    if (fd < 0)      {          return 1;      } | 
