summaryrefslogtreecommitdiffstats
path: root/edify/expr.c
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-02-18 03:31:48 +0100
committerKenny Root <kroot@google.com>2010-02-18 03:33:44 +0100
commit21854ccdb250e6e81311b4317934e8c953b252a8 (patch)
treee6f8048de230914aaaf65f7ddb72a41b460b4ac9 /edify/expr.c
parentam da846fcf: am 4c382b13: reconcile main tree with open-source eclair (diff)
downloadandroid_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.gz
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.bz2
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.lz
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.xz
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.tar.zst
android_bootable_recovery-21854ccdb250e6e81311b4317934e8c953b252a8.zip
Diffstat (limited to 'edify/expr.c')
-rw-r--r--edify/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/edify/expr.c b/edify/expr.c
index 72e5100f3..df3c1ab76 100644
--- a/edify/expr.c
+++ b/edify/expr.c
@@ -67,6 +67,7 @@ char* ConcatFn(const char* name, State* state, int argc, Expr* argv[]) {
for (i = 0; i < argc; ++i) {
free(strings[i]);
}
+ free(strings);
return result;
}
@@ -389,11 +390,13 @@ int ReadArgs(State* state, Expr* argv[], int count, ...) {
for (j = 0; j < i; ++j) {
free(args[j]);
}
+ free(args);
return -1;
}
*(va_arg(v, char**)) = args[i];
}
va_end(v);
+ free(args);
return 0;
}