>From 2a52702b3af6bbf758d589d10935f39bbd1bb16a Mon Sep 17 00:00:00 2001
From: Karol Lewandowski <[email protected]>
Date: Fri, 28 Jan 2011 17:46:12 +0100
Subject: [PATCH 2/3] Fix: Free array allocated by backtrace_symbols()

Change-Id: I94c8569dd0d5016d2f072f15701e3efa5ae7051f
---
 luaif/paths.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/luaif/paths.c b/luaif/paths.c
index 639c436..fbdc0d7 100644
--- a/luaif/paths.c
+++ b/luaif/paths.c
@@ -1570,6 +1570,7 @@ static void sbox_map_path_internal(
 	strings = backtrace_symbols(buffer, nptrs);
 	for (i = 0; i < nptrs; i++)
 		SB_LOG(SB_LOGLEVEL_DEBUG, "%s\n", strings[i]);
+	free(strings);
 #endif
 	if (!virtual_orig_path || !*virtual_orig_path) {
 		/* an empty path shall always remain empty */
-- 
1.7.0.4

_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel

Reply via email to