diff options
author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-27 15:29:12 -0700 |
---|---|---|
committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-27 15:29:12 -0700 |
commit | e4654b57ca19118277219b6b430c6e0dc7b7984f (patch) | |
tree | 2fd0e16d43096619faf208105f91ab33a1c1acf5 /xrdp | |
parent | a9d7c13147419532cc668e797d949413de895be5 (diff) | |
download | xrdp-proprietary-e4654b57ca19118277219b6b430c6e0dc7b7984f.tar.gz xrdp-proprietary-e4654b57ca19118277219b6b430c6e0dc7b7984f.zip |
coverity: Resource leak (2nd round)
Diffstat (limited to 'xrdp')
-rw-r--r-- | xrdp/xrdp_bitmap.c | 2 | ||||
-rw-r--r-- | xrdp/xrdp_login_wnd.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/xrdp/xrdp_bitmap.c b/xrdp/xrdp_bitmap.c index 3bbebfd9..8265f167 100644 --- a/xrdp/xrdp_bitmap.c +++ b/xrdp/xrdp_bitmap.c @@ -413,7 +413,6 @@ xrdp_bitmap_load(struct xrdp_bitmap *self, const char *filename, int *palette) return 1; } - s = (struct stream *)NULL; fd = g_file_open(filename); if (fd != -1) @@ -445,6 +444,7 @@ xrdp_bitmap_load(struct xrdp_bitmap *self, const char *filename, int *palette) { log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: seek error in file %s\n", filename); + free_stream(s); g_file_close(fd); return 1; } diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index b519f913..6fe47c3f 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -462,6 +462,9 @@ xrdp_wm_login_fill_in_combo(struct xrdp_wm *self, struct xrdp_bitmap *b) if (fd < 0) { log_message(LOG_LEVEL_ERROR, "Could not read xrdp ini file %s", cfg_file); + list_delete(sections); + list_delete(section_names); + list_delete(section_values); return 1; } |