[hackers] [skvm] Memory leak fix. || Dimitrios Papastamos

From: <hg_AT_suckless.org>
Date: Sun, 21 Jun 2009 13:08:17 +0000 (UTC)

changeset: 21:37f94265b4cc
tag: tip
user: Dimitrios Papastamos <stateless [at] archlinux.us>
date: Sun Jun 21 14:08:17 2009 -0700
files: skvm.c
description:
Memory leak fix.

diff -r af1609807ff7 -r 37f94265b4cc skvm.c
--- a/skvm.c Sun Jun 21 14:06:26 2009 -0700
+++ b/skvm.c Sun Jun 21 14:08:17 2009 -0700
@@ -301,8 +301,9 @@
          locked_reason = libhal_device_get_property_string(
                             context, did, "info.locked.reason",
                             (DBusError *)NULL);
- if (locked_reason && debug_mode_flag) {
- printf("%s%d: %s\n", __FILE__, __LINE__, locked_reason);
+ if (locked_reason) {
+ if (debug_mode_flag)
+ printf("%s%d: %s\n", __FILE__, __LINE__, locked_reason);
             libhal_free_string(locked_reason);
          }
       }
Received on Sun Jun 21 2009 - 13:08:17 UTC

This archive was generated by hypermail 2.2.0 : Sun Jun 21 2009 - 13:12:06 UTC