Module Name: src
Committed By: joerg
Date: Fri Nov 16 02:11:05 UTC 2012
Modified Files:
src/lib/libresolv: dst_internal.h
Log Message:
Use the size of the object pointed to, not the size of the pointer.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libresolv/dst_internal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libresolv/dst_internal.h
diff -u src/lib/libresolv/dst_internal.h:1.1 src/lib/libresolv/dst_internal.h:1.2
--- src/lib/libresolv/dst_internal.h:1.1 Thu Nov 15 18:48:48 2012
+++ src/lib/libresolv/dst_internal.h Fri Nov 16 02:11:05 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: dst_internal.h,v 1.1 2012/11/15 18:48:48 christos Exp $ */
+/* $NetBSD: dst_internal.h,v 1.2 2012/11/16 02:11:05 joerg Exp $ */
#ifndef DST_INTERNAL_H
#define DST_INTERNAL_H
@@ -83,7 +83,7 @@ typedef struct dst_key {
#endif
#ifndef SAFE_FREE
-#define SAFE_FREE(a) SAFE_FREE2((a), sizeof(a))
+#define SAFE_FREE(a) SAFE_FREE2((a), sizeof(*(a)))
#endif
typedef struct dst_func {