Revision: 2845
http://tmux.svn.sourceforge.net/tmux/?rev=2845&view=rev
Author: tcunha
Date: 2012-07-11 19:50:46 +0000 (Wed, 11 Jul 2012)
Log Message:
-----------
Remove remaining xfree calls from the portable version.
Modified Paths:
--------------
trunk/compat/asprintf.c
trunk/osdep-linux.c
trunk/osdep-sunos.c
Modified: trunk/compat/asprintf.c
===================================================================
--- trunk/compat/asprintf.c 2012-07-11 19:37:32 UTC (rev 2844)
+++ trunk/compat/asprintf.c 2012-07-11 19:50:46 UTC (rev 2845)
@@ -53,7 +53,7 @@
*ret = xmalloc(n + 1);
if ((n = vsnprintf(*ret, n + 1, fmt, ap2)) < 0) {
- xfree(*ret);
+ free(*ret);
goto error;
}
Modified: trunk/osdep-linux.c
===================================================================
--- trunk/osdep-linux.c 2012-07-11 19:37:32 UTC (rev 2844)
+++ trunk/osdep-linux.c 2012-07-11 19:50:46 UTC (rev 2845)
@@ -40,10 +40,10 @@
xasprintf(&path, "/proc/%lld/cmdline", (long long) pgrp);
if ((f = fopen(path, "r")) == NULL) {
- xfree(path);
+ free(path);
return (NULL);
}
- xfree(path);
+ free(path);
len = 0;
buf = NULL;
@@ -69,7 +69,7 @@
xasprintf(&path, "/proc/%d/cwd", pid);
n = readlink(path, target, MAXPATHLEN);
- xfree(path);
+ free(path);
if (n > 0) {
target[n] = '\0';
return (target);
Modified: trunk/osdep-sunos.c
===================================================================
--- trunk/osdep-sunos.c 2012-07-11 19:37:32 UTC (rev 2844)
+++ trunk/osdep-sunos.c 2012-07-11 19:50:46 UTC (rev 2845)
@@ -49,7 +49,7 @@
xasprintf(&path, "/proc/%u/psinfo", (u_int) pgrp);
f = open(path, O_RDONLY);
- xfree(path);
+ free(path);
if (f < 0)
return (NULL);
@@ -73,7 +73,7 @@
xasprintf(&path, "/proc/%u/path/cwd", (u_int) pid);
n = readlink(path, target, MAXPATHLEN);
- xfree(path);
+ free(path);
if (n > 0) {
target[n] = '\0';
return (target);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs