tools: Add O_CLOEXEC to open()
[framework/connectivity/connman.git] / tools / iptables-test.c
index 7eeebea..35c6300 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  Connection Manager
  *
- *  Copyright (C) 2007-2010  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2011  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -1149,6 +1149,7 @@ static struct connman_iptables *connman_iptables_init(const char *table_name)
                goto err;
 
        g_free(module);
+       module = NULL;
 
        table =  g_try_new0(struct connman_iptables, 1);
        if (table == NULL)