Module Name: src
Committed By: christos
Date: Sun Aug 15 10:06:32 UTC 2021
Modified Files:
src/lib/libedit: readline.c
Log Message:
Add a LINTED comment... Why doesn't NOTREACHED work?
To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/lib/libedit/readline.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libedit/readline.c
diff -u src/lib/libedit/readline.c:1.159 src/lib/libedit/readline.c:1.160
--- src/lib/libedit/readline.c:1.159 Wed Oct 9 10:31:07 2019
+++ src/lib/libedit/readline.c Sun Aug 15 06:06:32 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: readline.c,v 1.159 2019/10/09 14:31:07 christos Exp $ */
+/* $NetBSD: readline.c,v 1.160 2021/08/15 10:06:32 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.159 2019/10/09 14:31:07 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.160 2021/08/15 10:06:32 christos Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@@ -952,8 +952,10 @@ history_expand(char *str, char **output)
(size += len + 1) * sizeof(*nresult)); \
if (nresult == NULL) { \
el_free(*output); \
- if (/*CONSTCOND*/fr) \
+ if (/*CONSTCOND*/fr) { \
+ /*LINTED*/ \
el_free(tmp); \
+ } \
return 0; \
} \
result = nresult; \