mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-24 16:05:47 +01:00
Fix memory leak in xstrdup
This commit is contained in:
parent
36d225d71d
commit
39fcdffcfa
1 changed files with 0 additions and 2 deletions
2
st.c
2
st.c
|
@ -280,8 +280,6 @@ xrealloc(void *p, size_t len)
|
||||||
char *
|
char *
|
||||||
xstrdup(const char *s)
|
xstrdup(const char *s)
|
||||||
{
|
{
|
||||||
if ((s = strdup(s)) == NULL)
|
|
||||||
die("strdup: %s\n", strerror(errno));
|
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if ((p = strdup(s)) == NULL)
|
if ((p = strdup(s)) == NULL)
|
||||||
|
|
Loading…
Reference in a new issue