diff options
Diffstat (limited to 'odk/source/unoapploader/unx/unoapploader.c')
-rw-r--r-- | odk/source/unoapploader/unx/unoapploader.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/odk/source/unoapploader/unx/unoapploader.c b/odk/source/unoapploader/unx/unoapploader.c index 90c1cd1493c0..e744f1be009f 100644 --- a/odk/source/unoapploader/unx/unoapploader.c +++ b/odk/source/unoapploader/unx/unoapploader.c @@ -148,15 +148,13 @@ int main( int argc, char *argv[] ) libpath = NULL; for (;;) { size_t m; - char * test = realloc(libpath, n); - if (test == NULL) { + libpath = realloc(libpath, n); + if (libpath == NULL) { fprintf( stderr, "Error: out of memory reading unoinfo output!\n"); - free(libpath); exit(EXIT_FAILURE); } - libpath = test; m = fread(libpath + old, 1, n - old - 1, f); if (m != n - old - 1) { if (ferror(f)) { |