diff options
Diffstat (limited to '')
-rw-r--r-- | scd/scdaemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index a8a3bcff5..68119f592 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -702,8 +702,8 @@ main (int argc, char **argv ) close (fd); /* create the info string: <name>:<pid>:<protocol_version> */ - if (asprintf (&infostr, "SCDAEMON_INFO=%s:%lu:1", - socket_name, (ulong)pid ) < 0) + if (estream_asprintf (&infostr, "SCDAEMON_INFO=%s:%lu:1", + socket_name, (ulong) pid) < 0) { log_error ("out of core\n"); kill (pid, SIGTERM); @@ -738,7 +738,7 @@ main (int argc, char **argv ) { printf ( "%s; export SCDAEMON_INFO;\n", infostr); } - free (infostr); + xfree (infostr); exit (0); } /* NOTREACHED */ |