seed r699 - in trunk: . libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r699 - in trunk: . libseed
- Date: Fri, 9 Jan 2009 13:42:12 +0000 (UTC)
Author: racarr
Date: Fri Jan 9 13:42:11 2009
New Revision: 699
URL: http://svn.gnome.org/viewvc/seed?rev=699&view=rev
Log:
Tiiiiny leaks in builtins.
Modified:
trunk/libseed/seed-builtins.c
trunk/ltmain.sh
Modified: trunk/libseed/seed-builtins.c
==============================================================================
--- trunk/libseed/seed-builtins.c (original)
+++ trunk/libseed/seed-builtins.c Fri Jan 9 13:42:11 2009
@@ -33,7 +33,7 @@
const JSValueRef arguments[], JSValueRef * exception)
{
JSStringRef file_contents, file_name;
- const gchar *import_file;
+ gchar *import_file;
gchar *buffer, *walk;
if (argumentCount != 1)
@@ -53,6 +53,9 @@
{
gchar *mes = g_strdup_printf("File not found: %s.\n", import_file);
seed_make_exception(ctx, exception, "FileNotFound", mes);
+
+ g_free(import_file);
+ g_free(buffer);
g_free(mes);
return JSValueMakeNull(ctx);
}
@@ -66,7 +69,7 @@
walk++;
}
- walk = strdup(walk);
+ walk = g_strdup(walk);
g_free(buffer);
file_contents = JSStringCreateWithUTF8CString(walk);
@@ -76,6 +79,8 @@
JSStringRelease(file_contents);
JSStringRelease(file_name);
+ g_free(import_file);
+ g_free(walk);
return JSValueMakeNull(ctx);
}
Modified: trunk/ltmain.sh
==============================================================================
--- trunk/ltmain.sh (original)
+++ trunk/ltmain.sh Fri Jan 9 13:42:11 2009
@@ -65,7 +65,7 @@
# compiler: $LTCC
# compiler flags: $LTCFLAGS
# linker: $LD (gnu? $with_gnu_ld)
-# $progname: (GNU libtool) 2.2.4 Debian-2.2.4-0ubuntu4
+# $progname: (GNU libtool) 2.2.4 Debian-2.2.4-0ubuntu5
# automake: $automake_version
# autoconf: $autoconf_version
#
@@ -73,7 +73,7 @@
PROGRAM=ltmain.sh
PACKAGE=libtool
-VERSION="2.2.4 Debian-2.2.4-0ubuntu4"
+VERSION="2.2.4 Debian-2.2.4-0ubuntu5"
TIMESTAMP=""
package_revision=1.2976
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]