qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 10/13] qerror: deref once in qerror_report()


From: Wenchao Xia
Subject: Re: [Qemu-devel] [PATCH 10/13] qerror: deref once in qerror_report()
Date: Mon, 21 Oct 2013 11:35:03 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

于 2013/10/18 17:46, Paolo Bonzini 写道:
Il 18/10/2013 03:11, Wenchao Xia ha scritto:
Signed-off-by: Wenchao Xia <address@hidden>
---
  qobject/qerror.c |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/qobject/qerror.c b/qobject/qerror.c
index 5b487f3..685167a 100644
--- a/qobject/qerror.c
+++ b/qobject/qerror.c
@@ -77,7 +77,6 @@ static void qerror_print(QError *qerror)
      loc_push_restore(&qerror->loc);
      error_report("%s", qstring_get_str(qstring));
      loc_pop(&qerror->loc);
-    QDECREF(qstring);
  }
void qerror_report(ErrorClass eclass, const char *fmt, ...)

Why isn't this a memory leak?

Paolo

My bad, I mistake QDECREF(qstring) as QDECREF(qerror), will drop this path, sorry to disturb.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]