Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <87v840z11t.fsf@fuzy.me>
Deutsch   English   Français   Italiano  
<87v840z11t.fsf@fuzy.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: i@fuzy.me
Newsgroups: comp.lang.c
Subject: Re: avoiding strdup()
Date: Mon, 29 Apr 2024 22:38:38 +0800
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <87v840z11t.fsf@fuzy.me>
References: <us0brl$246bf$1@dont-email.me>
	<pan$4fc39$61bdfbef$3ca9a71a$af842694@invalid.invalid>
	<87y1ayj6hs.fsf_-_@bsb.me.uk>
	<pan$e9f7e$d6f7a386$31c353e8$a08c13cf@invalid.invalid>
	<usc845$10v6e$1@dont-email.me>
	<pan$89aca$33d2df8c$9e2c232f$d767db40@invalid.invalid>
	<ushea7$28prq$2@dont-email.me> <ushnkb$1rnlb$4@dont-email.me>
	<87r0gizzuo.fsf@nosuchdomain.example.com>
	<20240310101101.00001fd4@yahoo.com> <20240310100715.866@kylheku.com>
	<ifnHN.386274$vFZa.250421@fx13.iad> <v0mr1e$1bfnq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 29 Apr 2024 16:38:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="df4013f5469e99cf5ca97c0ea1790a5a";
	logging-data="1899331"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18jXRL7InOWRQF1Gz3OYQWd"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:/5t0hFrxanxSKmcncIyNkKc2ua8=
	sha1:FYIGSQyeN3Fdc5ULLqEzxCiwjDE=
Autocrypt: addr=i@fuzy.me; prefer-encrypt=mutual; keydata=
 mDMEZd/p6xYJKwYBBAHaRw8BAQdAgfxm2J8gGxjf4AdWV2tbEeyvKgwJXzqM8YP+94TCVpC0Flpo
 ZW5neWkgRnUgPGlAZnV6eS5tZT6IlAQTFgoAPBYhBKvlCzHi8MlKxFhbx42Xvz9r+gvaBQJl3+nr
 AhsDBQkB4TOABAsJCAcEFQoJCAUWAgMBAAIeBQIXgAAKCRCNl78/a/oL2pUpAQCK73vpSpFmZCnW
 8uSjF5oPX7o4vF0ZyE402niPCDgokAEAiQAd9Zatc3d1wut9k/hu35IWSRTGYrjpHAXxHQofhge4
 OARl3+nrEgorBgEEAZdVAQUBAQdAEhCj39QK+6jFSqUC2BbRkdtqRk2mQ/Vsmc1LkCGhQWQDAQgH
 iH4EGBYKACYWIQSr5Qsx4vDJSsRYW8eNl78/a/oL2gUCZd/p6wIbDAUJAeEzgAAKCRCNl78/a/oL
 2nA4AQCHPVWH59hKZywHRETK0RGzM0EPoZXcAQgODXO+UTCZMgD9FH2WPMfr6qtWwfE6bTPbLr3m
 c4e3XtgnBlhDyokwoAK4MwRl5Y0qFgkrBgEEAdpHDwEBB0A5XU/3jujthG0KBIaTJONjeJxyWYvB
 V6bMEA17KBFYgIh+BBgWCAAmFiEEq+ULMeLwyUrEWFvHjZe/P2v6C9oFAmXljSoCGyAFCQDtTgAA
 CgkQjZe/P2v6C9qvpQD+MhFoxnZUUsFTNJWQhDcgtsXtTza89Wifd1Eshl5M1FYA/jqNr4FXv4b7
 GVC3MYKbwKPqS0OElnfn/kCHWK2BIH0O
Bytes: 2666

Lawrence D'Oliveiro <ldo@nz.invalid> writes:

> I was looking at the systemd source code the other day, and came across a 
> lot of this sort of thing:
>
>     _cleanup_free_ char *link = NULL;
>
> Now, what do you suppose “_cleanup_free_” does?

It's a dark magic of GCC to automatically free the memory when pointer
goes out of scope.