emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/pq ca337173dd 08/63: Explicitly free the libpq result.


From: ELPA Syncer
Subject: [elpa] externals/pq ca337173dd 08/63: Explicitly free the libpq result.
Date: Mon, 14 Feb 2022 23:24:18 -0500 (EST)

branch: externals/pq
commit ca337173dd295159b57747e22ae24ba118695013
Author: Andreas Seltenreich <andreas+git@ansel.ydns.eu>
Commit: Andreas Seltenreich <andreas+git@ansel.ydns.eu>

    Explicitly free the libpq result.
    
    Now that the result is no longer exposed as a user-pointer, garbage
    collection cannot do that for us.
---
 pq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pq.c b/pq.c
index 06e1232632..94f7d64f1f 100644
--- a/pq.c
+++ b/pq.c
@@ -156,7 +156,7 @@ Fpq_query (emacs_env *env, int nargs, emacs_value args[], 
void *data)
     emacs_value args[2] = {tuple, list};
     list = env->funcall (env, Qcons, 2, args);
   }
-
+  PQclear(res);
   return list;
 }
 



reply via email to

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