From e4654b57ca19118277219b6b430c6e0dc7b7984f Mon Sep 17 00:00:00 2001 From: Laxmikant Rashinkar Date: Sun, 27 Jul 2014 15:29:12 -0700 Subject: coverity: Resource leak (2nd round) --- xrdp/xrdp_bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xrdp/xrdp_bitmap.c') 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; } -- cgit v1.2.3