[libbluray-devel] Cosmetics

Petri Hintukainen git at videolan.org
Mon Jun 12 22:48:58 CEST 2017


libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Mon Jun 12 21:21:05 2017 +0300| [f3fb4dc06f7df9c48fb1235fd833859f95776e50] | committer: Petri Hintukainen

Cosmetics

For some reason coverity thinks old version leaked memory

> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=f3fb4dc06f7df9c48fb1235fd833859f95776e50
---

 src/ecma167.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ecma167.c b/src/ecma167.c
index 9d16082..9cf0b3b 100644
--- a/src/ecma167.c
+++ b/src/ecma167.c
@@ -350,7 +350,7 @@ int decode_allocation_extent(struct file_entry **p_fe, const uint8_t *p, size_t
         return 0;
     }
 
-    fe = (struct file_entry *)realloc(fe, sizeof(struct file_entry) + sizeof(struct long_ad) * (fe->u.ads.num_ad + num_ad));
+    fe = (struct file_entry *)realloc(*p_fe, sizeof(struct file_entry) + sizeof(struct long_ad) * (fe->u.ads.num_ad + num_ad));
     if (!fe) {
         return -1;
     }



More information about the libbluray-devel mailing list