Commit 6c169c2f authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '67e285ce'

* commit '67e285ce':
  mem: Handle av_reallocp(..., 0) properly
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 5b153f81 67e285ce
......@@ -185,6 +185,10 @@ int av_reallocp(void *ptr, size_t size)
void **ptrptr = ptr;
void *ret;
if (!size) {
av_freep(ptr);
return 0;
}
ret = av_realloc(*ptrptr, size);
if (!ret) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment