mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-14 21:20:28 +01:00
Fix probable crash
This commit is contained in:
parent
bf2bf6f7c2
commit
ebe5137382
1 changed files with 3 additions and 1 deletions
|
|
@ -671,10 +671,12 @@ end:
|
|||
// Remove temporary file if ubus upgrade failed and file exists
|
||||
if (!json_obj && file_exists(fw_image_path) && strncmp(url, FILE_URI, strlen(FILE_URI))) {
|
||||
remove(fw_image_path);
|
||||
json_object_put(json_obj);
|
||||
res = -1;
|
||||
}
|
||||
|
||||
if (json_obj != NULL)
|
||||
json_object_put(json_obj);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue