Commit f3fb4dc0 authored by Petri Hintukainen's avatar Petri Hintukainen

Cosmetics

For some reason coverity thinks old version leaked memory
parent c2da5a49
...@@ -350,7 +350,7 @@ int decode_allocation_extent(struct file_entry **p_fe, const uint8_t *p, size_t ...@@ -350,7 +350,7 @@ int decode_allocation_extent(struct file_entry **p_fe, const uint8_t *p, size_t
return 0; 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) { if (!fe) {
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment