Permalink
Browse files

avutil/buffer: remove redundant memory poisoning

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information...
1 parent 058c002 commit 8e944891ce95ec8cf9f492d41cb9dac869449210 @michaelni michaelni committed Mar 24, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 libavutil/buffer.c
View
@@ -71,9 +71,6 @@ AVBufferRef *av_buffer_alloc(int size)
if (!data)
return NULL;
- if(CONFIG_MEMORY_POISONING)
- memset(data, 0x2a, size);
-
ret = av_buffer_create(data, size, av_buffer_default_free, NULL, 0);
if (!ret)
av_freep(&data);

0 comments on commit 8e94489

Please sign in to comment.