diff options
author | Shirish Kalele <kalele@samba.org> | 2000-05-26 22:37:08 +0000 |
---|---|---|
committer | Shirish Kalele <kalele@samba.org> | 2000-05-26 22:37:08 +0000 |
commit | 590d9ece8449b1feecfe1aa13e61bcd8fea4e5bf (patch) | |
tree | d9f58a60f9779e0243a1e9ca7cc02c8d2db8c3a0 /source/lib/util_unixsd.c | |
parent | 80a0079b2f993159ef35b02ba5c70ce9d8096879 (diff) | |
download | samba-590d9ece8449b1feecfe1aa13e61bcd8fea4e5bf.tar.gz samba-590d9ece8449b1feecfe1aa13e61bcd8fea4e5bf.tar.xz samba-590d9ece8449b1feecfe1aa13e61bcd8fea4e5bf.zip |
Fixed memory leak in RPC parsing code.
Problem in prs_set_buffer_size() was Realloc returns a NULL when newsize is zero (equivalent to a free()). We were returning a failure here without resetting the buffer_size or the data_p pointer in the prs_struct. And we weren't checking for a failure from prs_set_buffer_size(). So realloc's to zero size were not reflected in the prs_struct: memory leak.
Diffstat (limited to 'source/lib/util_unixsd.c')
0 files changed, 0 insertions, 0 deletions