mem: free the allocated memory
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_binutils_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 |
success
|
Test passed
|
linaro-tcwg-bot/tcwg_binutils_check--master-arm |
success
|
Test passed
|
Commit Message
---
gas/config/tc-bfin.c | 4 ++++
gprofng/examples/mxv-pthreads/src/main.c | 1 +
2 files changed, 5 insertions(+)
@@ -1884,6 +1884,8 @@ bfin_gen_loop (Expr_Node *exp, REG_T reg, int rop, REG_T preg)
if (!S_IS_LOCAL (sym) || (S_IS_LOCAL (sym) && !symbol_used_p (sym)))
symbol_remove (sym, &symbol_rootP, &symbol_lastP);
+ free(lbeginsym);
+ free(lendsym);
return bfin_gen_loopsetup (lbegin, reg, rop, lend, preg);
}
@@ -1919,6 +1921,8 @@ bfin_loop_beginend (Expr_Node *exp, int begin)
Adjust label address. */
if (!begin)
*symbol_X_add_number (linelabel) -= last_insn_size;
+
+ free(label_name);
}
bool
@@ -370,5 +370,6 @@ int64_t check_results (int64_t m, int64_t n, double *c, double *ref)
printf (" %c c[%ld] = %f ref[%ld] = %f\n",marker[i],i,c[i],i,ref[i]);
}
+ free(marker);
return (errors);
}