[hackers] [libixp] Fix allocation bug. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Wed, 23 Feb 2011 19:36:39 +0000 (UTC)

changeset: 141:339db5c6d2c9
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Wed Feb 23 14:36:34 2011 -0500
files: lib/libixp/srv_util.c
description:
Fix allocation bug.

diff -r 1a2224d70672 -r 339db5c6d2c9 lib/libixp/srv_util.c
--- a/lib/libixp/srv_util.c Sat Feb 05 23:03:09 2011 -0500
+++ b/lib/libixp/srv_util.c Wed Feb 23 14:36:34 2011 -0500
@@ -91,7 +91,7 @@
 ixp_srv_clonefiles(IxpFileId *fileid) {
         IxpFileId *r;
 
- r = emalloc(sizeof *r);
+ r = ixp_srv_getfile();
         memcpy(r, fileid, sizeof *r);
         r->tab.name = estrdup(r->tab.name);
         r->nref = 1;
Received on Wed Feb 23 2011 - 20:36:39 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 23 2011 - 20:48:05 CET