gnome-terminal r2639 - trunk/src/skey
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2639 - trunk/src/skey
- Date: Thu, 29 May 2008 19:40:58 +0000 (UTC)
Author: chpe
Date: Thu May 29 19:40:58 2008
New Revision: 2639
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2639&view=rev
Log:
Fix mem leak.
Modified:
trunk/src/skey/test.c
Modified: trunk/src/skey/test.c
==============================================================================
--- trunk/src/skey/test.c (original)
+++ trunk/src/skey/test.c Thu May 29 19:40:58 2008
@@ -1,5 +1,7 @@
#include <config.h>
+#include <stdlib.h>
+
#include <glib.h>
#include "skey.h"
@@ -13,7 +15,7 @@
const char *btoe;
} TestEntry;
-static TestEntry tests[] = {
+static const TestEntry tests[] = {
{ MD4, "This is a test.", "TeSt", 0, "D185 4218 EBBB 0B51", "ROME MUG FRED SCAN LIVE LACE" },
{ MD4, "This is a test.", "TeSt", 1, "6347 3EF0 1CD0 B444", "CARD SAD MINI RYE COL KIN" },
{ MD4, "This is a test.", "TeSt", 99, "C5E6 1277 6E6C 237A", "NOTE OUT IBIS SINK NAVE MODE" },
@@ -61,6 +63,7 @@
test->passphrase);
g_assert (key != NULL);
g_assert (strcmp (key, test->btoe) == 0);
+ free (key);
}
int main(int argc, char *argv[])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]