Skip to content
Snippets Groups Projects
Commit 7a60540c authored by Moe Jette's avatar Moe Jette
Browse files

Plug a memory leak.

parent 346cc6c2
No related branches found
No related tags found
No related merge requests found
...@@ -190,6 +190,10 @@ static void _bg_list_del(void *x) ...@@ -190,6 +190,10 @@ static void _bg_list_del(void *x)
bg_update_t *bg_update_ptr = (bg_update_t *) x; bg_update_t *bg_update_ptr = (bg_update_t *) x;
if (bg_update_ptr) { if (bg_update_ptr) {
xfree(bg_update_ptr->blrtsimage);
xfree(bg_update_ptr->linuximage);
xfree(bg_update_ptr->mloaderimage);
xfree(bg_update_ptr->ramdiskimage);
xfree(bg_update_ptr->bg_block_id); xfree(bg_update_ptr->bg_block_id);
xfree(bg_update_ptr); xfree(bg_update_ptr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment