librecovery_updater_msm: Properly free allocated memory
Free updater ReadArgs allocated memory. CRs-Fixed: 553376 Change-Id: Id92723a51a82830b8ba845df96a246a5708c7c3c
This commit is contained in:
parent
28f2694942
commit
5aaef42ece
|
@ -28,6 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "edify/expr.h"
|
||||
#include "dec.h"
|
||||
|
@ -45,6 +46,9 @@ Value* DecryptFn(const char* name, State* state, int argc, Expr* argv[]) {
|
|||
|
||||
rc = decrypt_image(src_file, dst_file);
|
||||
|
||||
free(src_file);
|
||||
free(dst_file);
|
||||
|
||||
return StringValue(strdup(rc >= 0 ? "t" : ""));
|
||||
}
|
||||
|
||||
|
@ -71,6 +75,8 @@ Value* BootUpdateFn(const char* name, State* state, int argc, Expr* argv[])
|
|||
rc = -1;
|
||||
}
|
||||
|
||||
free(stageStr);
|
||||
|
||||
if (!rc)
|
||||
rc = prepare_boot_update(stage);
|
||||
|
||||
|
|
Loading…
Reference in New Issue